@teez-sdk/teez-b2c-api 3.0.0 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (790) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +228 -114
  3. package/dist/_virtual/_rolldown/runtime.cjs +23 -0
  4. package/dist/api/auth/check-token/index.d.cts +2 -0
  5. package/dist/api/auth/check-token/index.d.mts +2 -0
  6. package/dist/api/auth/check-token/operation.cjs +25 -0
  7. package/dist/api/auth/check-token/operation.cjs.map +1 -0
  8. package/dist/api/auth/check-token/operation.d.cts +44 -0
  9. package/dist/api/auth/check-token/operation.d.mts +44 -0
  10. package/dist/api/auth/check-token/operation.mjs +25 -0
  11. package/dist/api/auth/check-token/operation.mjs.map +1 -0
  12. package/dist/api/auth/check-token/responses.cjs +19 -0
  13. package/dist/api/auth/check-token/responses.cjs.map +1 -0
  14. package/dist/api/auth/check-token/responses.mjs +17 -0
  15. package/dist/api/auth/check-token/responses.mjs.map +1 -0
  16. package/dist/api/auth/check-token/types.d.cts +17 -0
  17. package/dist/api/auth/check-token/types.d.mts +17 -0
  18. package/dist/api/auth/index.d.cts +7 -0
  19. package/dist/api/auth/index.d.mts +7 -0
  20. package/dist/api/auth/login/index.d.cts +2 -0
  21. package/dist/api/auth/login/index.d.mts +2 -0
  22. package/dist/api/auth/login/operation.cjs +27 -0
  23. package/dist/api/auth/login/operation.cjs.map +1 -0
  24. package/dist/api/auth/login/operation.d.cts +34 -0
  25. package/dist/api/auth/login/operation.d.mts +34 -0
  26. package/dist/api/auth/login/operation.mjs +27 -0
  27. package/dist/api/auth/login/operation.mjs.map +1 -0
  28. package/dist/api/auth/login/request.cjs +9 -0
  29. package/dist/api/auth/login/request.cjs.map +1 -0
  30. package/dist/api/auth/login/request.mjs +7 -0
  31. package/dist/api/auth/login/request.mjs.map +1 -0
  32. package/dist/api/auth/login/types.d.cts +17 -0
  33. package/dist/api/auth/login/types.d.mts +17 -0
  34. package/dist/api/auth/operations.cjs +13 -0
  35. package/dist/api/auth/operations.cjs.map +1 -0
  36. package/dist/api/auth/operations.d.cts +118 -0
  37. package/dist/api/auth/operations.d.mts +118 -0
  38. package/dist/api/auth/operations.mjs +13 -0
  39. package/dist/api/auth/operations.mjs.map +1 -0
  40. package/dist/api/auth/verify/index.d.cts +2 -0
  41. package/dist/api/auth/verify/index.d.mts +2 -0
  42. package/dist/api/auth/verify/operation.cjs +27 -0
  43. package/dist/api/auth/verify/operation.cjs.map +1 -0
  44. package/dist/api/auth/verify/operation.d.cts +54 -0
  45. package/dist/api/auth/verify/operation.d.mts +54 -0
  46. package/dist/api/auth/verify/operation.mjs +27 -0
  47. package/dist/api/auth/verify/operation.mjs.map +1 -0
  48. package/dist/api/auth/verify/request.cjs +12 -0
  49. package/dist/api/auth/verify/request.cjs.map +1 -0
  50. package/dist/api/auth/verify/request.mjs +10 -0
  51. package/dist/api/auth/verify/request.mjs.map +1 -0
  52. package/dist/api/auth/verify/responses.cjs +19 -0
  53. package/dist/api/auth/verify/responses.cjs.map +1 -0
  54. package/dist/api/auth/verify/responses.mjs +17 -0
  55. package/dist/api/auth/verify/responses.mjs.map +1 -0
  56. package/dist/api/auth/verify/types.d.cts +17 -0
  57. package/dist/api/auth/verify/types.d.mts +17 -0
  58. package/dist/api/banners/index.d.cts +3 -0
  59. package/dist/api/banners/index.d.mts +3 -0
  60. package/dist/api/banners/list/index.d.cts +2 -0
  61. package/dist/api/banners/list/index.d.mts +2 -0
  62. package/dist/api/banners/list/operation.cjs +23 -0
  63. package/dist/api/banners/list/operation.cjs.map +1 -0
  64. package/dist/api/banners/list/operation.d.cts +71 -0
  65. package/dist/api/banners/list/operation.d.mts +71 -0
  66. package/dist/api/banners/list/operation.mjs +23 -0
  67. package/dist/api/banners/list/operation.mjs.map +1 -0
  68. package/dist/api/banners/list/request.cjs +9 -0
  69. package/dist/api/banners/list/request.cjs.map +1 -0
  70. package/dist/api/banners/list/request.mjs +7 -0
  71. package/dist/api/banners/list/request.mjs.map +1 -0
  72. package/dist/api/banners/list/responses.cjs +30 -0
  73. package/dist/api/banners/list/responses.cjs.map +1 -0
  74. package/dist/api/banners/list/responses.mjs +28 -0
  75. package/dist/api/banners/list/responses.mjs.map +1 -0
  76. package/dist/api/banners/list/types.d.cts +17 -0
  77. package/dist/api/banners/list/types.d.mts +17 -0
  78. package/dist/api/banners/operations.cjs +6 -0
  79. package/dist/api/banners/operations.cjs.map +1 -0
  80. package/dist/api/banners/operations.d.cts +73 -0
  81. package/dist/api/banners/operations.d.mts +73 -0
  82. package/dist/api/banners/operations.mjs +7 -0
  83. package/dist/api/banners/operations.mjs.map +1 -0
  84. package/dist/api/categories/get/index.d.cts +2 -0
  85. package/dist/api/categories/get/index.d.mts +2 -0
  86. package/dist/api/categories/get/operation.cjs +25 -0
  87. package/dist/api/categories/get/operation.cjs.map +1 -0
  88. package/dist/api/categories/get/operation.d.cts +31 -0
  89. package/dist/api/categories/get/operation.d.mts +31 -0
  90. package/dist/api/categories/get/operation.mjs +25 -0
  91. package/dist/api/categories/get/operation.mjs.map +1 -0
  92. package/dist/api/categories/get/request.cjs +9 -0
  93. package/dist/api/categories/get/request.cjs.map +1 -0
  94. package/dist/api/categories/get/request.mjs +7 -0
  95. package/dist/api/categories/get/request.mjs.map +1 -0
  96. package/dist/api/categories/get/responses.cjs +22 -0
  97. package/dist/api/categories/get/responses.cjs.map +1 -0
  98. package/dist/api/categories/get/responses.d.cts +22 -0
  99. package/dist/api/categories/get/responses.d.mts +22 -0
  100. package/dist/api/categories/get/responses.mjs +20 -0
  101. package/dist/api/categories/get/responses.mjs.map +1 -0
  102. package/dist/api/categories/get/types.d.cts +17 -0
  103. package/dist/api/categories/get/types.d.mts +17 -0
  104. package/dist/api/categories/get-parents/index.d.cts +2 -0
  105. package/dist/api/categories/get-parents/index.d.mts +2 -0
  106. package/dist/api/categories/get-parents/operation.cjs +23 -0
  107. package/dist/api/categories/get-parents/operation.cjs.map +1 -0
  108. package/dist/api/categories/get-parents/operation.d.cts +29 -0
  109. package/dist/api/categories/get-parents/operation.d.mts +29 -0
  110. package/dist/api/categories/get-parents/operation.mjs +23 -0
  111. package/dist/api/categories/get-parents/operation.mjs.map +1 -0
  112. package/dist/api/categories/get-parents/request.cjs +12 -0
  113. package/dist/api/categories/get-parents/request.cjs.map +1 -0
  114. package/dist/api/categories/get-parents/request.mjs +10 -0
  115. package/dist/api/categories/get-parents/request.mjs.map +1 -0
  116. package/dist/api/categories/get-parents/responses.cjs +20 -0
  117. package/dist/api/categories/get-parents/responses.cjs.map +1 -0
  118. package/dist/api/categories/get-parents/responses.d.cts +18 -0
  119. package/dist/api/categories/get-parents/responses.d.mts +18 -0
  120. package/dist/api/categories/get-parents/responses.mjs +18 -0
  121. package/dist/api/categories/get-parents/responses.mjs.map +1 -0
  122. package/dist/api/categories/get-parents/types.d.cts +17 -0
  123. package/dist/api/categories/get-parents/types.d.mts +17 -0
  124. package/dist/api/categories/index.d.cts +7 -0
  125. package/dist/api/categories/index.d.mts +7 -0
  126. package/dist/api/categories/list/index.d.cts +2 -0
  127. package/dist/api/categories/list/index.d.mts +2 -0
  128. package/dist/api/categories/list/operation.cjs +21 -0
  129. package/dist/api/categories/list/operation.cjs.map +1 -0
  130. package/dist/api/categories/list/operation.d.cts +40 -0
  131. package/dist/api/categories/list/operation.d.mts +40 -0
  132. package/dist/api/categories/list/operation.mjs +21 -0
  133. package/dist/api/categories/list/operation.mjs.map +1 -0
  134. package/dist/api/categories/list/responses.cjs +17 -0
  135. package/dist/api/categories/list/responses.cjs.map +1 -0
  136. package/dist/api/categories/list/responses.mjs +15 -0
  137. package/dist/api/categories/list/responses.mjs.map +1 -0
  138. package/dist/api/categories/list/types.d.cts +17 -0
  139. package/dist/api/categories/list/types.d.mts +17 -0
  140. package/dist/api/categories/operations.cjs +13 -0
  141. package/dist/api/categories/operations.cjs.map +1 -0
  142. package/dist/api/categories/operations.d.cts +86 -0
  143. package/dist/api/categories/operations.d.mts +86 -0
  144. package/dist/api/categories/operations.mjs +13 -0
  145. package/dist/api/categories/operations.mjs.map +1 -0
  146. package/dist/api/collections/get/index.d.cts +2 -0
  147. package/dist/api/collections/get/index.d.mts +2 -0
  148. package/dist/api/collections/get/operation.cjs +25 -0
  149. package/dist/api/collections/get/operation.cjs.map +1 -0
  150. package/dist/api/collections/get/operation.d.cts +44 -0
  151. package/dist/api/collections/get/operation.d.mts +44 -0
  152. package/dist/api/collections/get/operation.mjs +25 -0
  153. package/dist/api/collections/get/operation.mjs.map +1 -0
  154. package/dist/api/collections/get/request.cjs +9 -0
  155. package/dist/api/collections/get/request.cjs.map +1 -0
  156. package/dist/api/collections/get/request.mjs +7 -0
  157. package/dist/api/collections/get/request.mjs.map +1 -0
  158. package/dist/api/collections/get/responses.cjs +17 -0
  159. package/dist/api/collections/get/responses.cjs.map +1 -0
  160. package/dist/api/collections/get/responses.mjs +15 -0
  161. package/dist/api/collections/get/responses.mjs.map +1 -0
  162. package/dist/api/collections/get/types.d.cts +17 -0
  163. package/dist/api/collections/get/types.d.mts +17 -0
  164. package/dist/api/collections/get-skus/index.d.cts +2 -0
  165. package/dist/api/collections/get-skus/index.d.mts +2 -0
  166. package/dist/api/collections/get-skus/operation.cjs +23 -0
  167. package/dist/api/collections/get-skus/operation.cjs.map +1 -0
  168. package/dist/api/collections/get-skus/operation.d.cts +241 -0
  169. package/dist/api/collections/get-skus/operation.d.mts +241 -0
  170. package/dist/api/collections/get-skus/operation.mjs +23 -0
  171. package/dist/api/collections/get-skus/operation.mjs.map +1 -0
  172. package/dist/api/collections/get-skus/request.cjs +22 -0
  173. package/dist/api/collections/get-skus/request.cjs.map +1 -0
  174. package/dist/api/collections/get-skus/request.mjs +20 -0
  175. package/dist/api/collections/get-skus/request.mjs.map +1 -0
  176. package/dist/api/collections/get-skus/responses.cjs +41 -0
  177. package/dist/api/collections/get-skus/responses.cjs.map +1 -0
  178. package/dist/api/collections/get-skus/responses.mjs +39 -0
  179. package/dist/api/collections/get-skus/responses.mjs.map +1 -0
  180. package/dist/api/collections/get-skus/types.d.cts +17 -0
  181. package/dist/api/collections/get-skus/types.d.mts +17 -0
  182. package/dist/api/collections/index.d.cts +7 -0
  183. package/dist/api/collections/index.d.mts +7 -0
  184. package/dist/api/collections/list/index.d.cts +2 -0
  185. package/dist/api/collections/list/index.d.mts +2 -0
  186. package/dist/api/collections/list/operation.cjs +23 -0
  187. package/dist/api/collections/list/operation.cjs.map +1 -0
  188. package/dist/api/collections/list/operation.d.cts +44 -0
  189. package/dist/api/collections/list/operation.d.mts +44 -0
  190. package/dist/api/collections/list/operation.mjs +23 -0
  191. package/dist/api/collections/list/operation.mjs.map +1 -0
  192. package/dist/api/collections/list/request.cjs +12 -0
  193. package/dist/api/collections/list/request.cjs.map +1 -0
  194. package/dist/api/collections/list/request.mjs +10 -0
  195. package/dist/api/collections/list/request.mjs.map +1 -0
  196. package/dist/api/collections/list/responses.cjs +16 -0
  197. package/dist/api/collections/list/responses.cjs.map +1 -0
  198. package/dist/api/collections/list/responses.mjs +14 -0
  199. package/dist/api/collections/list/responses.mjs.map +1 -0
  200. package/dist/api/collections/list/types.d.cts +17 -0
  201. package/dist/api/collections/list/types.d.mts +17 -0
  202. package/dist/api/collections/operations.cjs +13 -0
  203. package/dist/api/collections/operations.cjs.map +1 -0
  204. package/dist/api/collections/operations.d.cts +314 -0
  205. package/dist/api/collections/operations.d.mts +314 -0
  206. package/dist/api/collections/operations.mjs +13 -0
  207. package/dist/api/collections/operations.mjs.map +1 -0
  208. package/dist/api/favorites/add/index.d.cts +2 -0
  209. package/dist/api/favorites/add/index.d.mts +2 -0
  210. package/dist/api/favorites/add/operation.cjs +27 -0
  211. package/dist/api/favorites/add/operation.cjs.map +1 -0
  212. package/dist/api/favorites/add/operation.d.cts +30 -0
  213. package/dist/api/favorites/add/operation.d.mts +30 -0
  214. package/dist/api/favorites/add/operation.mjs +27 -0
  215. package/dist/api/favorites/add/operation.mjs.map +1 -0
  216. package/dist/api/favorites/add/request.cjs +9 -0
  217. package/dist/api/favorites/add/request.cjs.map +1 -0
  218. package/dist/api/favorites/add/request.mjs +7 -0
  219. package/dist/api/favorites/add/request.mjs.map +1 -0
  220. package/dist/api/favorites/add/types.d.cts +17 -0
  221. package/dist/api/favorites/add/types.d.mts +17 -0
  222. package/dist/api/favorites/get-ids/index.d.cts +2 -0
  223. package/dist/api/favorites/get-ids/index.d.mts +2 -0
  224. package/dist/api/favorites/get-ids/operation.cjs +25 -0
  225. package/dist/api/favorites/get-ids/operation.cjs.map +1 -0
  226. package/dist/api/favorites/get-ids/operation.d.cts +30 -0
  227. package/dist/api/favorites/get-ids/operation.d.mts +30 -0
  228. package/dist/api/favorites/get-ids/operation.mjs +25 -0
  229. package/dist/api/favorites/get-ids/operation.mjs.map +1 -0
  230. package/dist/api/favorites/get-ids/responses.cjs +9 -0
  231. package/dist/api/favorites/get-ids/responses.cjs.map +1 -0
  232. package/dist/api/favorites/get-ids/responses.mjs +7 -0
  233. package/dist/api/favorites/get-ids/responses.mjs.map +1 -0
  234. package/dist/api/favorites/get-ids/types.d.cts +17 -0
  235. package/dist/api/favorites/get-ids/types.d.mts +17 -0
  236. package/dist/api/favorites/index.d.cts +7 -0
  237. package/dist/api/favorites/index.d.mts +7 -0
  238. package/dist/api/favorites/operations.cjs +13 -0
  239. package/dist/api/favorites/operations.cjs.map +1 -0
  240. package/dist/api/favorites/operations.d.cts +76 -0
  241. package/dist/api/favorites/operations.d.mts +76 -0
  242. package/dist/api/favorites/operations.mjs +13 -0
  243. package/dist/api/favorites/operations.mjs.map +1 -0
  244. package/dist/api/favorites/remove/index.d.cts +2 -0
  245. package/dist/api/favorites/remove/index.d.mts +2 -0
  246. package/dist/api/favorites/remove/operation.cjs +27 -0
  247. package/dist/api/favorites/remove/operation.cjs.map +1 -0
  248. package/dist/api/favorites/remove/operation.d.cts +30 -0
  249. package/dist/api/favorites/remove/operation.d.mts +30 -0
  250. package/dist/api/favorites/remove/operation.mjs +27 -0
  251. package/dist/api/favorites/remove/operation.mjs.map +1 -0
  252. package/dist/api/favorites/remove/request.cjs +9 -0
  253. package/dist/api/favorites/remove/request.cjs.map +1 -0
  254. package/dist/api/favorites/remove/request.mjs +7 -0
  255. package/dist/api/favorites/remove/request.mjs.map +1 -0
  256. package/dist/api/favorites/remove/types.d.cts +17 -0
  257. package/dist/api/favorites/remove/types.d.mts +17 -0
  258. package/dist/api/feature-flags/index.d.cts +3 -0
  259. package/dist/api/feature-flags/index.d.mts +3 -0
  260. package/dist/api/feature-flags/list/index.d.cts +2 -0
  261. package/dist/api/feature-flags/list/index.d.mts +2 -0
  262. package/dist/api/feature-flags/list/operation.cjs +21 -0
  263. package/dist/api/feature-flags/list/operation.cjs.map +1 -0
  264. package/dist/api/feature-flags/list/operation.d.cts +28 -0
  265. package/dist/api/feature-flags/list/operation.d.mts +28 -0
  266. package/dist/api/feature-flags/list/operation.mjs +21 -0
  267. package/dist/api/feature-flags/list/operation.mjs.map +1 -0
  268. package/dist/api/feature-flags/list/responses.cjs +13 -0
  269. package/dist/api/feature-flags/list/responses.cjs.map +1 -0
  270. package/dist/api/feature-flags/list/responses.mjs +11 -0
  271. package/dist/api/feature-flags/list/responses.mjs.map +1 -0
  272. package/dist/api/feature-flags/list/types.d.cts +17 -0
  273. package/dist/api/feature-flags/list/types.d.mts +17 -0
  274. package/dist/api/feature-flags/operations.cjs +6 -0
  275. package/dist/api/feature-flags/operations.cjs.map +1 -0
  276. package/dist/api/feature-flags/operations.d.cts +30 -0
  277. package/dist/api/feature-flags/operations.d.mts +30 -0
  278. package/dist/api/feature-flags/operations.mjs +7 -0
  279. package/dist/api/feature-flags/operations.mjs.map +1 -0
  280. package/dist/api/products/autocomplete/index.d.cts +2 -0
  281. package/dist/api/products/autocomplete/index.d.mts +2 -0
  282. package/dist/api/products/autocomplete/operation.cjs +23 -0
  283. package/dist/api/products/autocomplete/operation.cjs.map +1 -0
  284. package/dist/api/products/autocomplete/operation.d.cts +35 -0
  285. package/dist/api/products/autocomplete/operation.d.mts +35 -0
  286. package/dist/api/products/autocomplete/operation.mjs +23 -0
  287. package/dist/api/products/autocomplete/operation.mjs.map +1 -0
  288. package/dist/api/products/autocomplete/request.cjs +9 -0
  289. package/dist/api/products/autocomplete/request.cjs.map +1 -0
  290. package/dist/api/products/autocomplete/request.mjs +7 -0
  291. package/dist/api/products/autocomplete/request.mjs.map +1 -0
  292. package/dist/api/products/autocomplete/responses.cjs +13 -0
  293. package/dist/api/products/autocomplete/responses.cjs.map +1 -0
  294. package/dist/api/products/autocomplete/responses.mjs +11 -0
  295. package/dist/api/products/autocomplete/responses.mjs.map +1 -0
  296. package/dist/api/products/autocomplete/types.d.cts +17 -0
  297. package/dist/api/products/autocomplete/types.d.mts +17 -0
  298. package/dist/api/products/get-reviews/index.d.cts +2 -0
  299. package/dist/api/products/get-reviews/index.d.mts +2 -0
  300. package/dist/api/products/get-reviews/operation.cjs +26 -0
  301. package/dist/api/products/get-reviews/operation.cjs.map +1 -0
  302. package/dist/api/products/get-reviews/operation.d.cts +85 -0
  303. package/dist/api/products/get-reviews/operation.d.mts +85 -0
  304. package/dist/api/products/get-reviews/operation.mjs +26 -0
  305. package/dist/api/products/get-reviews/operation.mjs.map +1 -0
  306. package/dist/api/products/get-reviews/request.cjs +14 -0
  307. package/dist/api/products/get-reviews/request.cjs.map +1 -0
  308. package/dist/api/products/get-reviews/request.mjs +11 -0
  309. package/dist/api/products/get-reviews/request.mjs.map +1 -0
  310. package/dist/api/products/get-reviews/responses.cjs +20 -0
  311. package/dist/api/products/get-reviews/responses.cjs.map +1 -0
  312. package/dist/api/products/get-reviews/responses.mjs +18 -0
  313. package/dist/api/products/get-reviews/responses.mjs.map +1 -0
  314. package/dist/api/products/get-reviews/types.d.cts +17 -0
  315. package/dist/api/products/get-reviews/types.d.mts +17 -0
  316. package/dist/api/products/get-sort-options/index.d.cts +2 -0
  317. package/dist/api/products/get-sort-options/index.d.mts +2 -0
  318. package/dist/api/products/get-sort-options/operation.cjs +23 -0
  319. package/dist/api/products/get-sort-options/operation.cjs.map +1 -0
  320. package/dist/api/products/get-sort-options/operation.d.cts +37 -0
  321. package/dist/api/products/get-sort-options/operation.d.mts +37 -0
  322. package/dist/api/products/get-sort-options/operation.mjs +23 -0
  323. package/dist/api/products/get-sort-options/operation.mjs.map +1 -0
  324. package/dist/api/products/get-sort-options/request.cjs +12 -0
  325. package/dist/api/products/get-sort-options/request.cjs.map +1 -0
  326. package/dist/api/products/get-sort-options/request.mjs +10 -0
  327. package/dist/api/products/get-sort-options/request.mjs.map +1 -0
  328. package/dist/api/products/get-sort-options/responses.cjs +21 -0
  329. package/dist/api/products/get-sort-options/responses.cjs.map +1 -0
  330. package/dist/api/products/get-sort-options/responses.mjs +19 -0
  331. package/dist/api/products/get-sort-options/responses.mjs.map +1 -0
  332. package/dist/api/products/get-sort-options/types.d.cts +17 -0
  333. package/dist/api/products/get-sort-options/types.d.mts +17 -0
  334. package/dist/api/products/index.d.cts +9 -0
  335. package/dist/api/products/index.d.mts +9 -0
  336. package/dist/api/products/list/index.d.cts +2 -0
  337. package/dist/api/products/list/index.d.mts +2 -0
  338. package/dist/api/products/list/operation.cjs +23 -0
  339. package/dist/api/products/list/operation.cjs.map +1 -0
  340. package/dist/api/products/list/operation.d.cts +287 -0
  341. package/dist/api/products/list/operation.d.mts +287 -0
  342. package/dist/api/products/list/operation.mjs +23 -0
  343. package/dist/api/products/list/operation.mjs.map +1 -0
  344. package/dist/api/products/list/request.cjs +27 -0
  345. package/dist/api/products/list/request.cjs.map +1 -0
  346. package/dist/api/products/list/request.mjs +25 -0
  347. package/dist/api/products/list/request.mjs.map +1 -0
  348. package/dist/api/products/list/responses.cjs +49 -0
  349. package/dist/api/products/list/responses.cjs.map +1 -0
  350. package/dist/api/products/list/responses.mjs +47 -0
  351. package/dist/api/products/list/responses.mjs.map +1 -0
  352. package/dist/api/products/list/types.d.cts +17 -0
  353. package/dist/api/products/list/types.d.mts +17 -0
  354. package/dist/api/products/operations.cjs +15 -0
  355. package/dist/api/products/operations.cjs.map +1 -0
  356. package/dist/api/products/operations.d.cts +422 -0
  357. package/dist/api/products/operations.d.mts +422 -0
  358. package/dist/api/products/operations.mjs +15 -0
  359. package/dist/api/products/operations.mjs.map +1 -0
  360. package/dist/api/promo/index.d.cts +3 -0
  361. package/dist/api/promo/index.d.mts +3 -0
  362. package/dist/api/promo/list/index.d.cts +2 -0
  363. package/dist/api/promo/list/index.d.mts +2 -0
  364. package/dist/api/promo/list/operation.cjs +21 -0
  365. package/dist/api/promo/list/operation.cjs.map +1 -0
  366. package/dist/api/promo/list/operation.d.cts +41 -0
  367. package/dist/api/promo/list/operation.d.mts +41 -0
  368. package/dist/api/promo/list/operation.mjs +21 -0
  369. package/dist/api/promo/list/operation.mjs.map +1 -0
  370. package/dist/api/promo/list/responses.cjs +18 -0
  371. package/dist/api/promo/list/responses.cjs.map +1 -0
  372. package/dist/api/promo/list/responses.mjs +16 -0
  373. package/dist/api/promo/list/responses.mjs.map +1 -0
  374. package/dist/api/promo/list/types.d.cts +17 -0
  375. package/dist/api/promo/list/types.d.mts +17 -0
  376. package/dist/api/promo/operations.cjs +6 -0
  377. package/dist/api/promo/operations.cjs.map +1 -0
  378. package/dist/api/promo/operations.d.cts +43 -0
  379. package/dist/api/promo/operations.d.mts +43 -0
  380. package/dist/api/promo/operations.mjs +7 -0
  381. package/dist/api/promo/operations.mjs.map +1 -0
  382. package/dist/api/promocodes/index.d.cts +3 -0
  383. package/dist/api/promocodes/index.d.mts +3 -0
  384. package/dist/api/promocodes/operations.cjs +6 -0
  385. package/dist/api/promocodes/operations.cjs.map +1 -0
  386. package/dist/api/promocodes/operations.d.cts +106 -0
  387. package/dist/api/promocodes/operations.d.mts +106 -0
  388. package/dist/api/promocodes/operations.mjs +7 -0
  389. package/dist/api/promocodes/operations.mjs.map +1 -0
  390. package/dist/api/promocodes/validate/index.d.cts +2 -0
  391. package/dist/api/promocodes/validate/index.d.mts +2 -0
  392. package/dist/api/promocodes/validate/operation.cjs +27 -0
  393. package/dist/api/promocodes/validate/operation.cjs.map +1 -0
  394. package/dist/api/promocodes/validate/operation.d.cts +104 -0
  395. package/dist/api/promocodes/validate/operation.d.mts +104 -0
  396. package/dist/api/promocodes/validate/operation.mjs +27 -0
  397. package/dist/api/promocodes/validate/operation.mjs.map +1 -0
  398. package/dist/api/promocodes/validate/request.cjs +21 -0
  399. package/dist/api/promocodes/validate/request.cjs.map +1 -0
  400. package/dist/api/promocodes/validate/request.mjs +19 -0
  401. package/dist/api/promocodes/validate/request.mjs.map +1 -0
  402. package/dist/api/promocodes/validate/responses.cjs +27 -0
  403. package/dist/api/promocodes/validate/responses.cjs.map +1 -0
  404. package/dist/api/promocodes/validate/responses.mjs +25 -0
  405. package/dist/api/promocodes/validate/responses.mjs.map +1 -0
  406. package/dist/api/promocodes/validate/types.d.cts +17 -0
  407. package/dist/api/promocodes/validate/types.d.mts +17 -0
  408. package/dist/api/shops/get/index.d.cts +2 -0
  409. package/dist/api/shops/get/index.d.mts +2 -0
  410. package/dist/api/shops/get/operation.cjs +25 -0
  411. package/dist/api/shops/get/operation.cjs.map +1 -0
  412. package/dist/api/shops/get/operation.d.cts +95 -0
  413. package/dist/api/shops/get/operation.d.mts +95 -0
  414. package/dist/api/shops/get/operation.mjs +25 -0
  415. package/dist/api/shops/get/operation.mjs.map +1 -0
  416. package/dist/api/shops/get/request.cjs +9 -0
  417. package/dist/api/shops/get/request.cjs.map +1 -0
  418. package/dist/api/shops/get/request.mjs +7 -0
  419. package/dist/api/shops/get/request.mjs.map +1 -0
  420. package/dist/api/shops/get/responses.cjs +34 -0
  421. package/dist/api/shops/get/responses.cjs.map +1 -0
  422. package/dist/api/shops/get/responses.mjs +32 -0
  423. package/dist/api/shops/get/responses.mjs.map +1 -0
  424. package/dist/api/shops/get/types.d.cts +17 -0
  425. package/dist/api/shops/get/types.d.mts +17 -0
  426. package/dist/api/shops/get-monobrand/index.d.cts +2 -0
  427. package/dist/api/shops/get-monobrand/index.d.mts +2 -0
  428. package/dist/api/shops/get-monobrand/operation.cjs +23 -0
  429. package/dist/api/shops/get-monobrand/operation.cjs.map +1 -0
  430. package/dist/api/shops/get-monobrand/operation.d.cts +56 -0
  431. package/dist/api/shops/get-monobrand/operation.d.mts +56 -0
  432. package/dist/api/shops/get-monobrand/operation.mjs +23 -0
  433. package/dist/api/shops/get-monobrand/operation.mjs.map +1 -0
  434. package/dist/api/shops/get-monobrand/request.cjs +13 -0
  435. package/dist/api/shops/get-monobrand/request.cjs.map +1 -0
  436. package/dist/api/shops/get-monobrand/request.mjs +11 -0
  437. package/dist/api/shops/get-monobrand/request.mjs.map +1 -0
  438. package/dist/api/shops/get-monobrand/responses.cjs +17 -0
  439. package/dist/api/shops/get-monobrand/responses.cjs.map +1 -0
  440. package/dist/api/shops/get-monobrand/responses.mjs +15 -0
  441. package/dist/api/shops/get-monobrand/responses.mjs.map +1 -0
  442. package/dist/api/shops/get-monobrand/types.d.cts +17 -0
  443. package/dist/api/shops/get-monobrand/types.d.mts +17 -0
  444. package/dist/api/shops/get-products/index.d.cts +2 -0
  445. package/dist/api/shops/get-products/index.d.mts +2 -0
  446. package/dist/api/shops/get-products/operation.cjs +26 -0
  447. package/dist/api/shops/get-products/operation.cjs.map +1 -0
  448. package/dist/api/shops/get-products/operation.d.cts +266 -0
  449. package/dist/api/shops/get-products/operation.d.mts +266 -0
  450. package/dist/api/shops/get-products/operation.mjs +26 -0
  451. package/dist/api/shops/get-products/operation.mjs.map +1 -0
  452. package/dist/api/shops/get-products/request.cjs +27 -0
  453. package/dist/api/shops/get-products/request.cjs.map +1 -0
  454. package/dist/api/shops/get-products/request.mjs +24 -0
  455. package/dist/api/shops/get-products/request.mjs.map +1 -0
  456. package/dist/api/shops/get-products/responses.cjs +43 -0
  457. package/dist/api/shops/get-products/responses.cjs.map +1 -0
  458. package/dist/api/shops/get-products/responses.mjs +41 -0
  459. package/dist/api/shops/get-products/responses.mjs.map +1 -0
  460. package/dist/api/shops/get-products/types.d.cts +17 -0
  461. package/dist/api/shops/get-products/types.d.mts +17 -0
  462. package/dist/api/shops/index.d.cts +7 -0
  463. package/dist/api/shops/index.d.mts +7 -0
  464. package/dist/api/shops/operations.cjs +13 -0
  465. package/dist/api/shops/operations.cjs.map +1 -0
  466. package/dist/api/shops/operations.d.cts +402 -0
  467. package/dist/api/shops/operations.d.mts +402 -0
  468. package/dist/api/shops/operations.mjs +13 -0
  469. package/dist/api/shops/operations.mjs.map +1 -0
  470. package/dist/api/sku/get/index.d.cts +2 -0
  471. package/dist/api/sku/get/index.d.mts +2 -0
  472. package/dist/api/sku/get/operation.cjs +25 -0
  473. package/dist/api/sku/get/operation.cjs.map +1 -0
  474. package/dist/api/sku/get/operation.d.cts +275 -0
  475. package/dist/api/sku/get/operation.d.mts +275 -0
  476. package/dist/api/sku/get/operation.mjs +25 -0
  477. package/dist/api/sku/get/operation.mjs.map +1 -0
  478. package/dist/api/sku/get/request.cjs +9 -0
  479. package/dist/api/sku/get/request.cjs.map +1 -0
  480. package/dist/api/sku/get/request.mjs +7 -0
  481. package/dist/api/sku/get/request.mjs.map +1 -0
  482. package/dist/api/sku/get/responses.cjs +89 -0
  483. package/dist/api/sku/get/responses.cjs.map +1 -0
  484. package/dist/api/sku/get/responses.mjs +87 -0
  485. package/dist/api/sku/get/responses.mjs.map +1 -0
  486. package/dist/api/sku/get/types.d.cts +17 -0
  487. package/dist/api/sku/get/types.d.mts +17 -0
  488. package/dist/api/sku/get-collections/index.d.cts +2 -0
  489. package/dist/api/sku/get-collections/index.d.mts +2 -0
  490. package/dist/api/sku/get-collections/operation.cjs +25 -0
  491. package/dist/api/sku/get-collections/operation.cjs.map +1 -0
  492. package/dist/api/sku/get-collections/operation.d.cts +51 -0
  493. package/dist/api/sku/get-collections/operation.d.mts +51 -0
  494. package/dist/api/sku/get-collections/operation.mjs +25 -0
  495. package/dist/api/sku/get-collections/operation.mjs.map +1 -0
  496. package/dist/api/sku/get-collections/request.cjs +9 -0
  497. package/dist/api/sku/get-collections/request.cjs.map +1 -0
  498. package/dist/api/sku/get-collections/request.mjs +7 -0
  499. package/dist/api/sku/get-collections/request.mjs.map +1 -0
  500. package/dist/api/sku/get-collections/responses.cjs +17 -0
  501. package/dist/api/sku/get-collections/responses.cjs.map +1 -0
  502. package/dist/api/sku/get-collections/responses.mjs +15 -0
  503. package/dist/api/sku/get-collections/responses.mjs.map +1 -0
  504. package/dist/api/sku/get-collections/types.d.cts +17 -0
  505. package/dist/api/sku/get-collections/types.d.mts +17 -0
  506. package/dist/api/sku/get-review-available/index.d.cts +2 -0
  507. package/dist/api/sku/get-review-available/index.d.mts +2 -0
  508. package/dist/api/sku/get-review-available/operation.cjs +29 -0
  509. package/dist/api/sku/get-review-available/operation.cjs.map +1 -0
  510. package/dist/api/sku/get-review-available/operation.d.cts +43 -0
  511. package/dist/api/sku/get-review-available/operation.d.mts +43 -0
  512. package/dist/api/sku/get-review-available/operation.mjs +29 -0
  513. package/dist/api/sku/get-review-available/operation.mjs.map +1 -0
  514. package/dist/api/sku/get-review-available/request.cjs +9 -0
  515. package/dist/api/sku/get-review-available/request.cjs.map +1 -0
  516. package/dist/api/sku/get-review-available/request.mjs +7 -0
  517. package/dist/api/sku/get-review-available/request.mjs.map +1 -0
  518. package/dist/api/sku/get-review-available/responses.cjs +12 -0
  519. package/dist/api/sku/get-review-available/responses.cjs.map +1 -0
  520. package/dist/api/sku/get-review-available/responses.mjs +10 -0
  521. package/dist/api/sku/get-review-available/responses.mjs.map +1 -0
  522. package/dist/api/sku/get-review-available/types.d.cts +17 -0
  523. package/dist/api/sku/get-review-available/types.d.mts +17 -0
  524. package/dist/api/sku/get-similar/index.d.cts +2 -0
  525. package/dist/api/sku/get-similar/index.d.mts +2 -0
  526. package/dist/api/sku/get-similar/operation.cjs +23 -0
  527. package/dist/api/sku/get-similar/operation.cjs.map +1 -0
  528. package/dist/api/sku/get-similar/operation.d.cts +109 -0
  529. package/dist/api/sku/get-similar/operation.d.mts +109 -0
  530. package/dist/api/sku/get-similar/operation.mjs +23 -0
  531. package/dist/api/sku/get-similar/operation.mjs.map +1 -0
  532. package/dist/api/sku/get-similar/request.cjs +13 -0
  533. package/dist/api/sku/get-similar/request.cjs.map +1 -0
  534. package/dist/api/sku/get-similar/request.mjs +11 -0
  535. package/dist/api/sku/get-similar/request.mjs.map +1 -0
  536. package/dist/api/sku/get-similar/responses.cjs +31 -0
  537. package/dist/api/sku/get-similar/responses.cjs.map +1 -0
  538. package/dist/api/sku/get-similar/responses.mjs +29 -0
  539. package/dist/api/sku/get-similar/responses.mjs.map +1 -0
  540. package/dist/api/sku/get-similar/types.d.cts +17 -0
  541. package/dist/api/sku/get-similar/types.d.mts +17 -0
  542. package/dist/api/sku/index.d.cts +9 -0
  543. package/dist/api/sku/index.d.mts +9 -0
  544. package/dist/api/sku/operations.cjs +15 -0
  545. package/dist/api/sku/operations.cjs.map +1 -0
  546. package/dist/api/sku/operations.d.cts +455 -0
  547. package/dist/api/sku/operations.d.mts +455 -0
  548. package/dist/api/sku/operations.mjs +15 -0
  549. package/dist/api/sku/operations.mjs.map +1 -0
  550. package/dist/api/users/index.d.cts +5 -0
  551. package/dist/api/users/index.d.mts +5 -0
  552. package/dist/api/users/operations.cjs +11 -0
  553. package/dist/api/users/operations.cjs.map +1 -0
  554. package/dist/api/users/operations.d.cts +96 -0
  555. package/dist/api/users/operations.d.mts +96 -0
  556. package/dist/api/users/operations.mjs +11 -0
  557. package/dist/api/users/operations.mjs.map +1 -0
  558. package/dist/api/users/register-device/index.d.cts +2 -0
  559. package/dist/api/users/register-device/index.d.mts +2 -0
  560. package/dist/api/users/register-device/operation.cjs +28 -0
  561. package/dist/api/users/register-device/operation.cjs.map +1 -0
  562. package/dist/api/users/register-device/operation.d.cts +61 -0
  563. package/dist/api/users/register-device/operation.d.mts +61 -0
  564. package/dist/api/users/register-device/operation.mjs +28 -0
  565. package/dist/api/users/register-device/operation.mjs.map +1 -0
  566. package/dist/api/users/register-device/request.cjs +14 -0
  567. package/dist/api/users/register-device/request.cjs.map +1 -0
  568. package/dist/api/users/register-device/request.mjs +12 -0
  569. package/dist/api/users/register-device/request.mjs.map +1 -0
  570. package/dist/api/users/register-device/types.d.cts +17 -0
  571. package/dist/api/users/register-device/types.d.mts +17 -0
  572. package/dist/api/users/update-language/index.d.cts +2 -0
  573. package/dist/api/users/update-language/index.d.mts +2 -0
  574. package/dist/api/users/update-language/operation.cjs +27 -0
  575. package/dist/api/users/update-language/operation.cjs.map +1 -0
  576. package/dist/api/users/update-language/operation.d.cts +41 -0
  577. package/dist/api/users/update-language/operation.d.mts +41 -0
  578. package/dist/api/users/update-language/operation.mjs +27 -0
  579. package/dist/api/users/update-language/operation.mjs.map +1 -0
  580. package/dist/api/users/update-language/request.cjs +11 -0
  581. package/dist/api/users/update-language/request.cjs.map +1 -0
  582. package/dist/api/users/update-language/request.mjs +8 -0
  583. package/dist/api/users/update-language/request.mjs.map +1 -0
  584. package/dist/api/users/update-language/responses.cjs +14 -0
  585. package/dist/api/users/update-language/responses.cjs.map +1 -0
  586. package/dist/api/users/update-language/responses.mjs +12 -0
  587. package/dist/api/users/update-language/responses.mjs.map +1 -0
  588. package/dist/api/users/update-language/types.d.cts +17 -0
  589. package/dist/api/users/update-language/types.d.mts +17 -0
  590. package/dist/config/defaults.cjs +12 -0
  591. package/dist/config/defaults.cjs.map +1 -0
  592. package/dist/config/defaults.d.cts +10 -0
  593. package/dist/config/defaults.d.mts +10 -0
  594. package/dist/config/defaults.mjs +9 -0
  595. package/dist/config/defaults.mjs.map +1 -0
  596. package/dist/config/headers.cjs +17 -0
  597. package/dist/config/headers.cjs.map +1 -0
  598. package/dist/config/headers.d.cts +8 -0
  599. package/dist/config/headers.d.mts +8 -0
  600. package/dist/config/headers.mjs +16 -0
  601. package/dist/config/headers.mjs.map +1 -0
  602. package/dist/config/resolve.cjs +28 -0
  603. package/dist/config/resolve.cjs.map +1 -0
  604. package/dist/config/resolve.d.cts +8 -0
  605. package/dist/config/resolve.d.mts +8 -0
  606. package/dist/config/resolve.mjs +27 -0
  607. package/dist/config/resolve.mjs.map +1 -0
  608. package/dist/config/types.d.cts +25 -0
  609. package/dist/config/types.d.mts +25 -0
  610. package/dist/contracts/api-error-response.cjs +12 -0
  611. package/dist/contracts/api-error-response.cjs.map +1 -0
  612. package/dist/contracts/api-error-response.d.cts +13 -0
  613. package/dist/contracts/api-error-response.d.mts +13 -0
  614. package/dist/contracts/api-error-response.mjs +10 -0
  615. package/dist/contracts/api-error-response.mjs.map +1 -0
  616. package/dist/contracts/filters/category.cjs +21 -0
  617. package/dist/contracts/filters/category.cjs.map +1 -0
  618. package/dist/contracts/filters/category.d.cts +37 -0
  619. package/dist/contracts/filters/category.d.mts +37 -0
  620. package/dist/contracts/filters/category.mjs +17 -0
  621. package/dist/contracts/filters/category.mjs.map +1 -0
  622. package/dist/contracts/filters/filter.cjs +11 -0
  623. package/dist/contracts/filters/filter.cjs.map +1 -0
  624. package/dist/contracts/filters/filter.d.cts +67 -0
  625. package/dist/contracts/filters/filter.d.mts +67 -0
  626. package/dist/contracts/filters/filter.mjs +9 -0
  627. package/dist/contracts/filters/filter.mjs.map +1 -0
  628. package/dist/contracts/filters/range.cjs +21 -0
  629. package/dist/contracts/filters/range.cjs.map +1 -0
  630. package/dist/contracts/filters/range.d.cts +37 -0
  631. package/dist/contracts/filters/range.d.mts +37 -0
  632. package/dist/contracts/filters/range.mjs +17 -0
  633. package/dist/contracts/filters/range.mjs.map +1 -0
  634. package/dist/contracts/pagination.cjs +17 -0
  635. package/dist/contracts/pagination.cjs.map +1 -0
  636. package/dist/contracts/pagination.d.cts +27 -0
  637. package/dist/contracts/pagination.d.mts +27 -0
  638. package/dist/contracts/pagination.mjs +15 -0
  639. package/dist/contracts/pagination.mjs.map +1 -0
  640. package/dist/errors/teez-api-error.cjs +26 -0
  641. package/dist/errors/teez-api-error.cjs.map +1 -0
  642. package/dist/errors/teez-api-error.d.cts +35 -0
  643. package/dist/errors/teez-api-error.d.mts +35 -0
  644. package/dist/errors/teez-api-error.mjs +26 -0
  645. package/dist/errors/teez-api-error.mjs.map +1 -0
  646. package/dist/errors/teez-error.cjs +8 -0
  647. package/dist/errors/teez-error.cjs.map +1 -0
  648. package/dist/errors/teez-error.d.cts +7 -0
  649. package/dist/errors/teez-error.d.mts +7 -0
  650. package/dist/errors/teez-error.mjs +8 -0
  651. package/dist/errors/teez-error.mjs.map +1 -0
  652. package/dist/errors/teez-network-error.cjs +18 -0
  653. package/dist/errors/teez-network-error.cjs.map +1 -0
  654. package/dist/errors/teez-network-error.d.cts +23 -0
  655. package/dist/errors/teez-network-error.d.mts +23 -0
  656. package/dist/errors/teez-network-error.mjs +18 -0
  657. package/dist/errors/teez-network-error.mjs.map +1 -0
  658. package/dist/errors/teez-timeout-error.cjs +20 -0
  659. package/dist/errors/teez-timeout-error.cjs.map +1 -0
  660. package/dist/errors/teez-timeout-error.d.cts +26 -0
  661. package/dist/errors/teez-timeout-error.d.mts +26 -0
  662. package/dist/errors/teez-timeout-error.mjs +20 -0
  663. package/dist/errors/teez-timeout-error.mjs.map +1 -0
  664. package/dist/errors/teez-validation-error.cjs +16 -0
  665. package/dist/errors/teez-validation-error.cjs.map +1 -0
  666. package/dist/errors/teez-validation-error.d.cts +25 -0
  667. package/dist/errors/teez-validation-error.d.mts +25 -0
  668. package/dist/errors/teez-validation-error.mjs +16 -0
  669. package/dist/errors/teez-validation-error.mjs.map +1 -0
  670. package/dist/http-operation/api-error.cjs +15 -0
  671. package/dist/http-operation/api-error.cjs.map +1 -0
  672. package/dist/http-operation/api-error.d.cts +15 -0
  673. package/dist/http-operation/api-error.d.mts +15 -0
  674. package/dist/http-operation/api-error.mjs +14 -0
  675. package/dist/http-operation/api-error.mjs.map +1 -0
  676. package/dist/http-operation/define.cjs +33 -0
  677. package/dist/http-operation/define.cjs.map +1 -0
  678. package/dist/http-operation/define.d.cts +7 -0
  679. package/dist/http-operation/define.d.mts +7 -0
  680. package/dist/http-operation/define.mjs +33 -0
  681. package/dist/http-operation/define.mjs.map +1 -0
  682. package/dist/http-operation/flattenability.cjs +24 -0
  683. package/dist/http-operation/flattenability.cjs.map +1 -0
  684. package/dist/http-operation/flattenability.d.cts +7 -0
  685. package/dist/http-operation/flattenability.d.mts +7 -0
  686. package/dist/http-operation/flattenability.mjs +24 -0
  687. package/dist/http-operation/flattenability.mjs.map +1 -0
  688. package/dist/http-operation/inference.d.cts +63 -0
  689. package/dist/http-operation/inference.d.mts +63 -0
  690. package/dist/http-operation/response-helpers.cjs +20 -0
  691. package/dist/http-operation/response-helpers.cjs.map +1 -0
  692. package/dist/http-operation/response-helpers.d.cts +15 -0
  693. package/dist/http-operation/response-helpers.d.mts +15 -0
  694. package/dist/http-operation/response-helpers.mjs +19 -0
  695. package/dist/http-operation/response-helpers.mjs.map +1 -0
  696. package/dist/http-operation/status.cjs +8 -0
  697. package/dist/http-operation/status.cjs.map +1 -0
  698. package/dist/http-operation/status.d.cts +6 -0
  699. package/dist/http-operation/status.d.mts +6 -0
  700. package/dist/http-operation/status.mjs +8 -0
  701. package/dist/http-operation/status.mjs.map +1 -0
  702. package/dist/http-operation/types.d.cts +92 -0
  703. package/dist/http-operation/types.d.mts +92 -0
  704. package/dist/http-operation/validation.cjs +32 -0
  705. package/dist/http-operation/validation.cjs.map +1 -0
  706. package/dist/http-operation/validation.mjs +31 -0
  707. package/dist/http-operation/validation.mjs.map +1 -0
  708. package/dist/index.cjs +147 -1875
  709. package/dist/index.d.cts +100 -5571
  710. package/dist/index.d.mts +100 -5571
  711. package/dist/index.mjs +66 -1753
  712. package/dist/language.cjs +6 -0
  713. package/dist/language.cjs.map +1 -0
  714. package/dist/language.d.cts +6 -0
  715. package/dist/language.d.mts +6 -0
  716. package/dist/language.mjs +6 -0
  717. package/dist/language.mjs.map +1 -0
  718. package/dist/registry.cjs +44 -0
  719. package/dist/registry.cjs.map +1 -0
  720. package/dist/registry.d.cts +4198 -0
  721. package/dist/registry.d.mts +4198 -0
  722. package/dist/registry.mjs +41 -0
  723. package/dist/registry.mjs.map +1 -0
  724. package/dist/schema/nullish.cjs +11 -0
  725. package/dist/schema/nullish.cjs.map +1 -0
  726. package/dist/schema/nullish.d.cts +11 -0
  727. package/dist/schema/nullish.d.mts +11 -0
  728. package/dist/schema/nullish.mjs +9 -0
  729. package/dist/schema/nullish.mjs.map +1 -0
  730. package/dist/schema/object-schema.cjs +12 -0
  731. package/dist/schema/object-schema.cjs.map +1 -0
  732. package/dist/schema/object-schema.d.cts +10 -0
  733. package/dist/schema/object-schema.d.mts +10 -0
  734. package/dist/schema/object-schema.mjs +11 -0
  735. package/dist/schema/object-schema.mjs.map +1 -0
  736. package/dist/schema/types.d.cts +7 -0
  737. package/dist/schema/types.d.mts +7 -0
  738. package/dist/sdk/create-client.cjs +20 -0
  739. package/dist/sdk/create-client.cjs.map +1 -0
  740. package/dist/sdk/create-client.d.cts +11 -0
  741. package/dist/sdk/create-client.d.mts +11 -0
  742. package/dist/sdk/create-client.mjs +19 -0
  743. package/dist/sdk/create-client.mjs.map +1 -0
  744. package/dist/sdk/flat-request.cjs +25 -0
  745. package/dist/sdk/flat-request.cjs.map +1 -0
  746. package/dist/sdk/flat-request.mjs +25 -0
  747. package/dist/sdk/flat-request.mjs.map +1 -0
  748. package/dist/sdk/operation-entry.cjs +30 -0
  749. package/dist/sdk/operation-entry.cjs.map +1 -0
  750. package/dist/sdk/operation-entry.mjs +30 -0
  751. package/dist/sdk/operation-entry.mjs.map +1 -0
  752. package/dist/sdk/runtime.cjs +15 -0
  753. package/dist/sdk/runtime.cjs.map +1 -0
  754. package/dist/sdk/runtime.d.cts +8 -0
  755. package/dist/sdk/runtime.d.mts +8 -0
  756. package/dist/sdk/runtime.mjs +15 -0
  757. package/dist/sdk/runtime.mjs.map +1 -0
  758. package/dist/sdk/types.d.cts +15 -0
  759. package/dist/sdk/types.d.mts +15 -0
  760. package/dist/transport/headers.cjs +12 -0
  761. package/dist/transport/headers.cjs.map +1 -0
  762. package/dist/transport/headers.mjs +12 -0
  763. package/dist/transport/headers.mjs.map +1 -0
  764. package/dist/transport/http-client.cjs +109 -0
  765. package/dist/transport/http-client.cjs.map +1 -0
  766. package/dist/transport/http-client.mjs +109 -0
  767. package/dist/transport/http-client.mjs.map +1 -0
  768. package/dist/transport/parsing.cjs +43 -0
  769. package/dist/transport/parsing.cjs.map +1 -0
  770. package/dist/transport/parsing.mjs +38 -0
  771. package/dist/transport/parsing.mjs.map +1 -0
  772. package/dist/transport/path.cjs +11 -0
  773. package/dist/transport/path.cjs.map +1 -0
  774. package/dist/transport/path.mjs +11 -0
  775. package/dist/transport/path.mjs.map +1 -0
  776. package/dist/transport/query.cjs +21 -0
  777. package/dist/transport/query.cjs.map +1 -0
  778. package/dist/transport/query.mjs +21 -0
  779. package/dist/transport/query.mjs.map +1 -0
  780. package/dist/transport/response-body.cjs +17 -0
  781. package/dist/transport/response-body.cjs.map +1 -0
  782. package/dist/transport/response-body.mjs +17 -0
  783. package/dist/transport/response-body.mjs.map +1 -0
  784. package/dist/transport/types.d.cts +6 -0
  785. package/dist/transport/types.d.mts +6 -0
  786. package/dist/type-utils/simplify.d.cts +5 -0
  787. package/dist/type-utils/simplify.d.mts +5 -0
  788. package/package.json +45 -34
  789. package/dist/index.cjs.map +0 -1
  790. package/dist/index.mjs.map +0 -1
@@ -0,0 +1,23 @@
1
+ import { TeezError } from "./teez-error.mjs";
2
+
3
+ //#region src/errors/teez-network-error.d.ts
4
+ interface TeezNetworkErrorOptions extends ErrorOptions {
5
+ method: string;
6
+ url: URL;
7
+ operationName?: string;
8
+ }
9
+ declare class TeezNetworkError extends TeezError {
10
+ name: string;
11
+ readonly method: string;
12
+ readonly url: URL;
13
+ readonly operationName?: string;
14
+ constructor(message: string, {
15
+ method,
16
+ url,
17
+ operationName,
18
+ ...errorOptions
19
+ }: TeezNetworkErrorOptions);
20
+ }
21
+ //#endregion
22
+ export { TeezNetworkError, TeezNetworkErrorOptions };
23
+ //# sourceMappingURL=teez-network-error.d.mts.map
@@ -0,0 +1,18 @@
1
+ import { TeezError } from "./teez-error.mjs";
2
+ //#region src/errors/teez-network-error.ts
3
+ var TeezNetworkError = class extends TeezError {
4
+ name = "TeezNetworkError";
5
+ method;
6
+ url;
7
+ operationName;
8
+ constructor(message, { method, url, operationName, ...errorOptions }) {
9
+ super(message, errorOptions);
10
+ this.method = method;
11
+ this.url = url;
12
+ this.operationName = operationName;
13
+ }
14
+ };
15
+ //#endregion
16
+ export { TeezNetworkError };
17
+
18
+ //# sourceMappingURL=teez-network-error.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"teez-network-error.mjs","names":[],"sources":["../../src/errors/teez-network-error.ts"],"sourcesContent":["import { TeezError } from \"./teez-error\";\n\nexport interface TeezNetworkErrorOptions extends ErrorOptions {\n\tmethod: string;\n\turl: URL;\n\toperationName?: string;\n}\n\nexport class TeezNetworkError extends TeezError {\n\tpublic override name = \"TeezNetworkError\";\n\n\tpublic readonly method: string;\n\n\tpublic readonly url: URL;\n\n\tpublic readonly operationName?: string;\n\n\tpublic constructor(\n\t\tmessage: string,\n\t\t{ method, url, operationName, ...errorOptions }: TeezNetworkErrorOptions,\n\t) {\n\t\tsuper(message, errorOptions);\n\n\t\tthis.method = method;\n\t\tthis.url = url;\n\t\tthis.operationName = operationName;\n\t}\n}\n"],"mappings":";;AAQA,IAAa,mBAAb,cAAsC,UAAU;CAC/C,OAAuB;CAEvB;CAEA;CAEA;CAEA,YACC,SACA,EAAE,QAAQ,KAAK,eAAe,GAAG,gBAChC;AACD,QAAM,SAAS,aAAa;AAE5B,OAAK,SAAS;AACd,OAAK,MAAM;AACX,OAAK,gBAAgB"}
@@ -0,0 +1,20 @@
1
+ const require_teez_error = require("./teez-error.cjs");
2
+ //#region src/errors/teez-timeout-error.ts
3
+ var TeezTimeoutError = class extends require_teez_error.TeezError {
4
+ name = "TeezTimeoutError";
5
+ method;
6
+ url;
7
+ operationName;
8
+ timeout;
9
+ constructor(message, { method, url, operationName, timeout, ...errorOptions }) {
10
+ super(message, errorOptions);
11
+ this.method = method;
12
+ this.url = url;
13
+ this.operationName = operationName;
14
+ this.timeout = timeout;
15
+ }
16
+ };
17
+ //#endregion
18
+ exports.TeezTimeoutError = TeezTimeoutError;
19
+
20
+ //# sourceMappingURL=teez-timeout-error.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"teez-timeout-error.cjs","names":["TeezError"],"sources":["../../src/errors/teez-timeout-error.ts"],"sourcesContent":["import { TeezError } from \"./teez-error\";\n\nexport interface TeezTimeoutErrorOptions extends ErrorOptions {\n\tmethod: string;\n\turl: URL;\n\toperationName?: string;\n\ttimeout: number;\n}\n\nexport class TeezTimeoutError extends TeezError {\n\tpublic override name = \"TeezTimeoutError\";\n\n\tpublic readonly method: string;\n\n\tpublic readonly url: URL;\n\n\tpublic readonly operationName?: string;\n\n\tpublic readonly timeout: number;\n\n\tpublic constructor(\n\t\tmessage: string,\n\t\t{\n\t\t\tmethod,\n\t\t\turl,\n\t\t\toperationName,\n\t\t\ttimeout,\n\t\t\t...errorOptions\n\t\t}: TeezTimeoutErrorOptions,\n\t) {\n\t\tsuper(message, errorOptions);\n\n\t\tthis.method = method;\n\t\tthis.url = url;\n\t\tthis.operationName = operationName;\n\t\tthis.timeout = timeout;\n\t}\n}\n"],"mappings":";;AASA,IAAa,mBAAb,cAAsCA,mBAAAA,UAAU;CAC/C,OAAuB;CAEvB;CAEA;CAEA;CAEA;CAEA,YACC,SACA,EACC,QACA,KACA,eACA,SACA,GAAG,gBAEH;AACD,QAAM,SAAS,aAAa;AAE5B,OAAK,SAAS;AACd,OAAK,MAAM;AACX,OAAK,gBAAgB;AACrB,OAAK,UAAU"}
@@ -0,0 +1,26 @@
1
+ import { TeezError } from "./teez-error.cjs";
2
+
3
+ //#region src/errors/teez-timeout-error.d.ts
4
+ interface TeezTimeoutErrorOptions extends ErrorOptions {
5
+ method: string;
6
+ url: URL;
7
+ operationName?: string;
8
+ timeout: number;
9
+ }
10
+ declare class TeezTimeoutError extends TeezError {
11
+ name: string;
12
+ readonly method: string;
13
+ readonly url: URL;
14
+ readonly operationName?: string;
15
+ readonly timeout: number;
16
+ constructor(message: string, {
17
+ method,
18
+ url,
19
+ operationName,
20
+ timeout,
21
+ ...errorOptions
22
+ }: TeezTimeoutErrorOptions);
23
+ }
24
+ //#endregion
25
+ export { TeezTimeoutError, TeezTimeoutErrorOptions };
26
+ //# sourceMappingURL=teez-timeout-error.d.cts.map
@@ -0,0 +1,26 @@
1
+ import { TeezError } from "./teez-error.mjs";
2
+
3
+ //#region src/errors/teez-timeout-error.d.ts
4
+ interface TeezTimeoutErrorOptions extends ErrorOptions {
5
+ method: string;
6
+ url: URL;
7
+ operationName?: string;
8
+ timeout: number;
9
+ }
10
+ declare class TeezTimeoutError extends TeezError {
11
+ name: string;
12
+ readonly method: string;
13
+ readonly url: URL;
14
+ readonly operationName?: string;
15
+ readonly timeout: number;
16
+ constructor(message: string, {
17
+ method,
18
+ url,
19
+ operationName,
20
+ timeout,
21
+ ...errorOptions
22
+ }: TeezTimeoutErrorOptions);
23
+ }
24
+ //#endregion
25
+ export { TeezTimeoutError, TeezTimeoutErrorOptions };
26
+ //# sourceMappingURL=teez-timeout-error.d.mts.map
@@ -0,0 +1,20 @@
1
+ import { TeezError } from "./teez-error.mjs";
2
+ //#region src/errors/teez-timeout-error.ts
3
+ var TeezTimeoutError = class extends TeezError {
4
+ name = "TeezTimeoutError";
5
+ method;
6
+ url;
7
+ operationName;
8
+ timeout;
9
+ constructor(message, { method, url, operationName, timeout, ...errorOptions }) {
10
+ super(message, errorOptions);
11
+ this.method = method;
12
+ this.url = url;
13
+ this.operationName = operationName;
14
+ this.timeout = timeout;
15
+ }
16
+ };
17
+ //#endregion
18
+ export { TeezTimeoutError };
19
+
20
+ //# sourceMappingURL=teez-timeout-error.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"teez-timeout-error.mjs","names":[],"sources":["../../src/errors/teez-timeout-error.ts"],"sourcesContent":["import { TeezError } from \"./teez-error\";\n\nexport interface TeezTimeoutErrorOptions extends ErrorOptions {\n\tmethod: string;\n\turl: URL;\n\toperationName?: string;\n\ttimeout: number;\n}\n\nexport class TeezTimeoutError extends TeezError {\n\tpublic override name = \"TeezTimeoutError\";\n\n\tpublic readonly method: string;\n\n\tpublic readonly url: URL;\n\n\tpublic readonly operationName?: string;\n\n\tpublic readonly timeout: number;\n\n\tpublic constructor(\n\t\tmessage: string,\n\t\t{\n\t\t\tmethod,\n\t\t\turl,\n\t\t\toperationName,\n\t\t\ttimeout,\n\t\t\t...errorOptions\n\t\t}: TeezTimeoutErrorOptions,\n\t) {\n\t\tsuper(message, errorOptions);\n\n\t\tthis.method = method;\n\t\tthis.url = url;\n\t\tthis.operationName = operationName;\n\t\tthis.timeout = timeout;\n\t}\n}\n"],"mappings":";;AASA,IAAa,mBAAb,cAAsC,UAAU;CAC/C,OAAuB;CAEvB;CAEA;CAEA;CAEA;CAEA,YACC,SACA,EACC,QACA,KACA,eACA,SACA,GAAG,gBAEH;AACD,QAAM,SAAS,aAAa;AAE5B,OAAK,SAAS;AACd,OAAK,MAAM;AACX,OAAK,gBAAgB;AACrB,OAAK,UAAU"}
@@ -0,0 +1,16 @@
1
+ const require_teez_error = require("./teez-error.cjs");
2
+ //#region src/errors/teez-validation-error.ts
3
+ var TeezValidationError = class extends require_teez_error.TeezError {
4
+ name = "TeezValidationError";
5
+ issues;
6
+ data;
7
+ constructor(message, { issues, data, ...errorOptions }) {
8
+ super(message, errorOptions);
9
+ this.issues = issues;
10
+ this.data = data;
11
+ }
12
+ };
13
+ //#endregion
14
+ exports.TeezValidationError = TeezValidationError;
15
+
16
+ //# sourceMappingURL=teez-validation-error.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"teez-validation-error.cjs","names":["TeezError"],"sources":["../../src/errors/teez-validation-error.ts"],"sourcesContent":["import { TeezError } from \"./teez-error\";\n\nexport interface TeezValidationIssue {\n\tcode: string;\n\tpath: (string | number | symbol)[];\n\tmessage: string;\n}\n\nexport interface TeezValidationErrorOptions extends ErrorOptions {\n\tissues: TeezValidationIssue[];\n\tdata?: unknown;\n}\n\nexport class TeezValidationError extends TeezError {\n\tpublic override name = \"TeezValidationError\";\n\n\tpublic readonly issues: TeezValidationIssue[];\n\n\tpublic readonly data: unknown;\n\n\tpublic constructor(\n\t\tmessage: string,\n\t\t{ issues, data, ...errorOptions }: TeezValidationErrorOptions,\n\t) {\n\t\tsuper(message, errorOptions);\n\n\t\tthis.issues = issues;\n\t\tthis.data = data;\n\t}\n}\n"],"mappings":";;AAaA,IAAa,sBAAb,cAAyCA,mBAAAA,UAAU;CAClD,OAAuB;CAEvB;CAEA;CAEA,YACC,SACA,EAAE,QAAQ,MAAM,GAAG,gBAClB;AACD,QAAM,SAAS,aAAa;AAE5B,OAAK,SAAS;AACd,OAAK,OAAO"}
@@ -0,0 +1,25 @@
1
+ import { TeezError } from "./teez-error.cjs";
2
+
3
+ //#region src/errors/teez-validation-error.d.ts
4
+ interface TeezValidationIssue {
5
+ code: string;
6
+ path: (string | number | symbol)[];
7
+ message: string;
8
+ }
9
+ interface TeezValidationErrorOptions extends ErrorOptions {
10
+ issues: TeezValidationIssue[];
11
+ data?: unknown;
12
+ }
13
+ declare class TeezValidationError extends TeezError {
14
+ name: string;
15
+ readonly issues: TeezValidationIssue[];
16
+ readonly data: unknown;
17
+ constructor(message: string, {
18
+ issues,
19
+ data,
20
+ ...errorOptions
21
+ }: TeezValidationErrorOptions);
22
+ }
23
+ //#endregion
24
+ export { TeezValidationError, TeezValidationErrorOptions, TeezValidationIssue };
25
+ //# sourceMappingURL=teez-validation-error.d.cts.map
@@ -0,0 +1,25 @@
1
+ import { TeezError } from "./teez-error.mjs";
2
+
3
+ //#region src/errors/teez-validation-error.d.ts
4
+ interface TeezValidationIssue {
5
+ code: string;
6
+ path: (string | number | symbol)[];
7
+ message: string;
8
+ }
9
+ interface TeezValidationErrorOptions extends ErrorOptions {
10
+ issues: TeezValidationIssue[];
11
+ data?: unknown;
12
+ }
13
+ declare class TeezValidationError extends TeezError {
14
+ name: string;
15
+ readonly issues: TeezValidationIssue[];
16
+ readonly data: unknown;
17
+ constructor(message: string, {
18
+ issues,
19
+ data,
20
+ ...errorOptions
21
+ }: TeezValidationErrorOptions);
22
+ }
23
+ //#endregion
24
+ export { TeezValidationError, TeezValidationErrorOptions, TeezValidationIssue };
25
+ //# sourceMappingURL=teez-validation-error.d.mts.map
@@ -0,0 +1,16 @@
1
+ import { TeezError } from "./teez-error.mjs";
2
+ //#region src/errors/teez-validation-error.ts
3
+ var TeezValidationError = class extends TeezError {
4
+ name = "TeezValidationError";
5
+ issues;
6
+ data;
7
+ constructor(message, { issues, data, ...errorOptions }) {
8
+ super(message, errorOptions);
9
+ this.issues = issues;
10
+ this.data = data;
11
+ }
12
+ };
13
+ //#endregion
14
+ export { TeezValidationError };
15
+
16
+ //# sourceMappingURL=teez-validation-error.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"teez-validation-error.mjs","names":[],"sources":["../../src/errors/teez-validation-error.ts"],"sourcesContent":["import { TeezError } from \"./teez-error\";\n\nexport interface TeezValidationIssue {\n\tcode: string;\n\tpath: (string | number | symbol)[];\n\tmessage: string;\n}\n\nexport interface TeezValidationErrorOptions extends ErrorOptions {\n\tissues: TeezValidationIssue[];\n\tdata?: unknown;\n}\n\nexport class TeezValidationError extends TeezError {\n\tpublic override name = \"TeezValidationError\";\n\n\tpublic readonly issues: TeezValidationIssue[];\n\n\tpublic readonly data: unknown;\n\n\tpublic constructor(\n\t\tmessage: string,\n\t\t{ issues, data, ...errorOptions }: TeezValidationErrorOptions,\n\t) {\n\t\tsuper(message, errorOptions);\n\n\t\tthis.issues = issues;\n\t\tthis.data = data;\n\t}\n}\n"],"mappings":";;AAaA,IAAa,sBAAb,cAAyC,UAAU;CAClD,OAAuB;CAEvB;CAEA;CAEA,YACC,SACA,EAAE,QAAQ,MAAM,GAAG,gBAClB;AACD,QAAM,SAAS,aAAa;AAE5B,OAAK,SAAS;AACd,OAAK,OAAO"}
@@ -0,0 +1,15 @@
1
+ const require_teez_api_error = require("../errors/teez-api-error.cjs");
2
+ //#region src/http-operation/api-error.ts
3
+ function isOperationApiError(error, operation) {
4
+ if (!(error instanceof require_teez_api_error.TeezApiError)) return false;
5
+ if (error.operationName !== operation.name || error.parsedBody === void 0) return false;
6
+ return operation.responses[error.status]?.schema != void 0;
7
+ }
8
+ function getOperationApiError(error, operation) {
9
+ return isOperationApiError(error, operation) ? error : void 0;
10
+ }
11
+ //#endregion
12
+ exports.getOperationApiError = getOperationApiError;
13
+ exports.isOperationApiError = isOperationApiError;
14
+
15
+ //# sourceMappingURL=api-error.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api-error.cjs","names":["RuntimeTeezApiError"],"sources":["../../src/http-operation/api-error.ts"],"sourcesContent":["import { type TeezApiError } from \"../errors/teez-api-error\";\nimport { TeezApiError as RuntimeTeezApiError } from \"../errors/teez-api-error\";\nimport {\n\ttype HttpOperationErrorBody,\n\ttype HttpOperationErrorStatus,\n} from \"./inference\";\nimport { type AnyHttpOperationDef } from \"./types\";\n\nexport interface TypedTeezApiError<\n\tTStatus extends number = number,\n\tTParsedBody = unknown,\n> extends TeezApiError {\n\treadonly status: TStatus;\n\tparsedBody: TParsedBody;\n}\n\nexport type OperationApiError<\n\tT extends AnyHttpOperationDef,\n\tTStatus extends HttpOperationErrorStatus<T> = HttpOperationErrorStatus<T>,\n> =\n\tTStatus extends HttpOperationErrorStatus<T>\n\t\t? TypedTeezApiError<TStatus, HttpOperationErrorBody<T, TStatus>>\n\t\t: never;\n\nexport function isOperationApiError<T extends AnyHttpOperationDef>(\n\terror: unknown,\n\toperation: T,\n): error is OperationApiError<T> {\n\tif (!(error instanceof RuntimeTeezApiError)) {\n\t\treturn false;\n\t}\n\n\tif (\n\t\terror.operationName !== operation.name ||\n\t\terror.parsedBody === undefined\n\t) {\n\t\treturn false;\n\t}\n\n\treturn operation.responses[error.status]?.schema != undefined;\n}\n\nexport function getOperationApiError<T extends AnyHttpOperationDef>(\n\terror: unknown,\n\toperation: T,\n): OperationApiError<T> | undefined {\n\treturn isOperationApiError(error, operation) ? error : undefined;\n}\n"],"mappings":";;AAwBA,SAAgB,oBACf,OACA,WACgC;AAChC,KAAI,EAAE,iBAAiBA,uBAAAA,cACtB,QAAO;AAGR,KACC,MAAM,kBAAkB,UAAU,QAClC,MAAM,eAAe,KAAA,EAErB,QAAO;AAGR,QAAO,UAAU,UAAU,MAAM,SAAS,UAAU,KAAA;;AAGrD,SAAgB,qBACf,OACA,WACmC;AACnC,QAAO,oBAAoB,OAAO,UAAU,GAAG,QAAQ,KAAA"}
@@ -0,0 +1,15 @@
1
+ import { AnyHttpOperationDef } from "./types.cjs";
2
+ import { HttpOperationErrorBody, HttpOperationErrorStatus } from "./inference.cjs";
3
+ import { TeezApiError } from "../errors/teez-api-error.cjs";
4
+
5
+ //#region src/http-operation/api-error.d.ts
6
+ interface TypedTeezApiError<TStatus extends number = number, TParsedBody = unknown> extends TeezApiError {
7
+ readonly status: TStatus;
8
+ parsedBody: TParsedBody;
9
+ }
10
+ type OperationApiError<T extends AnyHttpOperationDef, TStatus extends HttpOperationErrorStatus<T> = HttpOperationErrorStatus<T>> = TStatus extends HttpOperationErrorStatus<T> ? TypedTeezApiError<TStatus, HttpOperationErrorBody<T, TStatus>> : never;
11
+ declare function isOperationApiError<T extends AnyHttpOperationDef>(error: unknown, operation: T): error is OperationApiError<T>;
12
+ declare function getOperationApiError<T extends AnyHttpOperationDef>(error: unknown, operation: T): OperationApiError<T> | undefined;
13
+ //#endregion
14
+ export { OperationApiError, TypedTeezApiError, getOperationApiError, isOperationApiError };
15
+ //# sourceMappingURL=api-error.d.cts.map
@@ -0,0 +1,15 @@
1
+ import { AnyHttpOperationDef } from "./types.mjs";
2
+ import { HttpOperationErrorBody, HttpOperationErrorStatus } from "./inference.mjs";
3
+ import { TeezApiError } from "../errors/teez-api-error.mjs";
4
+
5
+ //#region src/http-operation/api-error.d.ts
6
+ interface TypedTeezApiError<TStatus extends number = number, TParsedBody = unknown> extends TeezApiError {
7
+ readonly status: TStatus;
8
+ parsedBody: TParsedBody;
9
+ }
10
+ type OperationApiError<T extends AnyHttpOperationDef, TStatus extends HttpOperationErrorStatus<T> = HttpOperationErrorStatus<T>> = TStatus extends HttpOperationErrorStatus<T> ? TypedTeezApiError<TStatus, HttpOperationErrorBody<T, TStatus>> : never;
11
+ declare function isOperationApiError<T extends AnyHttpOperationDef>(error: unknown, operation: T): error is OperationApiError<T>;
12
+ declare function getOperationApiError<T extends AnyHttpOperationDef>(error: unknown, operation: T): OperationApiError<T> | undefined;
13
+ //#endregion
14
+ export { OperationApiError, TypedTeezApiError, getOperationApiError, isOperationApiError };
15
+ //# sourceMappingURL=api-error.d.mts.map
@@ -0,0 +1,14 @@
1
+ import { TeezApiError } from "../errors/teez-api-error.mjs";
2
+ //#region src/http-operation/api-error.ts
3
+ function isOperationApiError(error, operation) {
4
+ if (!(error instanceof TeezApiError)) return false;
5
+ if (error.operationName !== operation.name || error.parsedBody === void 0) return false;
6
+ return operation.responses[error.status]?.schema != void 0;
7
+ }
8
+ function getOperationApiError(error, operation) {
9
+ return isOperationApiError(error, operation) ? error : void 0;
10
+ }
11
+ //#endregion
12
+ export { getOperationApiError, isOperationApiError };
13
+
14
+ //# sourceMappingURL=api-error.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api-error.mjs","names":["RuntimeTeezApiError"],"sources":["../../src/http-operation/api-error.ts"],"sourcesContent":["import { type TeezApiError } from \"../errors/teez-api-error\";\nimport { TeezApiError as RuntimeTeezApiError } from \"../errors/teez-api-error\";\nimport {\n\ttype HttpOperationErrorBody,\n\ttype HttpOperationErrorStatus,\n} from \"./inference\";\nimport { type AnyHttpOperationDef } from \"./types\";\n\nexport interface TypedTeezApiError<\n\tTStatus extends number = number,\n\tTParsedBody = unknown,\n> extends TeezApiError {\n\treadonly status: TStatus;\n\tparsedBody: TParsedBody;\n}\n\nexport type OperationApiError<\n\tT extends AnyHttpOperationDef,\n\tTStatus extends HttpOperationErrorStatus<T> = HttpOperationErrorStatus<T>,\n> =\n\tTStatus extends HttpOperationErrorStatus<T>\n\t\t? TypedTeezApiError<TStatus, HttpOperationErrorBody<T, TStatus>>\n\t\t: never;\n\nexport function isOperationApiError<T extends AnyHttpOperationDef>(\n\terror: unknown,\n\toperation: T,\n): error is OperationApiError<T> {\n\tif (!(error instanceof RuntimeTeezApiError)) {\n\t\treturn false;\n\t}\n\n\tif (\n\t\terror.operationName !== operation.name ||\n\t\terror.parsedBody === undefined\n\t) {\n\t\treturn false;\n\t}\n\n\treturn operation.responses[error.status]?.schema != undefined;\n}\n\nexport function getOperationApiError<T extends AnyHttpOperationDef>(\n\terror: unknown,\n\toperation: T,\n): OperationApiError<T> | undefined {\n\treturn isOperationApiError(error, operation) ? error : undefined;\n}\n"],"mappings":";;AAwBA,SAAgB,oBACf,OACA,WACgC;AAChC,KAAI,EAAE,iBAAiBA,cACtB,QAAO;AAGR,KACC,MAAM,kBAAkB,UAAU,QAClC,MAAM,eAAe,KAAA,EAErB,QAAO;AAGR,QAAO,UAAU,UAAU,MAAM,SAAS,UAAU,KAAA;;AAGrD,SAAgB,qBACf,OACA,WACmC;AACnC,QAAO,oBAAoB,OAAO,UAAU,GAAG,QAAQ,KAAA"}
@@ -0,0 +1,33 @@
1
+ const require_validation = require("./validation.cjs");
2
+ //#region src/http-operation/define.ts
3
+ function normalizeRequestPath(path) {
4
+ return typeof path === "string" ? { template: path } : path;
5
+ }
6
+ function normalizeRequest(request) {
7
+ return {
8
+ ...request,
9
+ path: normalizeRequestPath(request.path)
10
+ };
11
+ }
12
+ function defineHttpOperation(operation) {
13
+ const name = `${operation.domain}.${operation.action}`;
14
+ const request = normalizeRequest(operation.request);
15
+ const safety = operation.safety ?? (request.method === "GET" ? "read" : "write");
16
+ require_validation.validatePathSchema(request, name);
17
+ require_validation.validateResponses(operation.responses, name);
18
+ return {
19
+ domain: operation.domain,
20
+ action: operation.action,
21
+ name,
22
+ auth: operation.auth,
23
+ safety,
24
+ summary: operation.summary,
25
+ description: operation.description,
26
+ request,
27
+ responses: operation.responses
28
+ };
29
+ }
30
+ //#endregion
31
+ exports.defineHttpOperation = defineHttpOperation;
32
+
33
+ //# sourceMappingURL=define.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"define.cjs","names":[],"sources":["../../src/http-operation/define.ts"],"sourcesContent":["import {\n\ttype HttpOperationConfig,\n\ttype HttpOperationDef,\n\ttype HttpOperationRequestConfig,\n\ttype HttpOperationRequestPathConfig,\n\ttype HttpOperationResponses,\n\ttype NormalizeHttpOperationRequest,\n\ttype NormalizeHttpOperationRequestPath,\n} from \"./types\";\nimport { validatePathSchema, validateResponses } from \"./validation\";\n\nfunction normalizeRequestPath<TPath extends HttpOperationRequestPathConfig>(\n\tpath: TPath,\n): NormalizeHttpOperationRequestPath<TPath> {\n\treturn (\n\t\ttypeof path === \"string\" ? { template: path } : path\n\t) as NormalizeHttpOperationRequestPath<TPath>;\n}\n\nfunction normalizeRequest<TRequest extends HttpOperationRequestConfig>(\n\trequest: TRequest,\n): NormalizeHttpOperationRequest<TRequest> {\n\treturn {\n\t\t...request,\n\t\tpath: normalizeRequestPath(request.path),\n\t} as unknown as NormalizeHttpOperationRequest<TRequest>;\n}\n\nexport function defineHttpOperation<\n\tconst TDomain extends string,\n\tconst TAction extends string,\n\tconst TRequest extends HttpOperationRequestConfig,\n\tconst TResponses extends HttpOperationResponses,\n>(\n\toperation: HttpOperationConfig<TDomain, TAction, TRequest, TResponses>,\n): HttpOperationDef<\n\tTDomain,\n\tTAction,\n\tNormalizeHttpOperationRequest<TRequest>,\n\tTResponses\n> {\n\tconst name = `${operation.domain}.${operation.action}` as const;\n\tconst request = normalizeRequest(operation.request);\n\tconst safety =\n\t\toperation.safety ?? (request.method === \"GET\" ? \"read\" : \"write\");\n\n\tvalidatePathSchema(request, name);\n\tvalidateResponses(operation.responses, name);\n\n\treturn {\n\t\tdomain: operation.domain,\n\t\taction: operation.action,\n\t\tname,\n\t\tauth: operation.auth,\n\t\tsafety,\n\t\tsummary: operation.summary,\n\t\tdescription: operation.description,\n\t\trequest,\n\t\tresponses: operation.responses,\n\t};\n}\n"],"mappings":";;AAWA,SAAS,qBACR,MAC2C;AAC3C,QACC,OAAO,SAAS,WAAW,EAAE,UAAU,MAAM,GAAG;;AAIlD,SAAS,iBACR,SAC0C;AAC1C,QAAO;EACN,GAAG;EACH,MAAM,qBAAqB,QAAQ,KAAK;EACxC;;AAGF,SAAgB,oBAMf,WAMC;CACD,MAAM,OAAO,GAAG,UAAU,OAAO,GAAG,UAAU;CAC9C,MAAM,UAAU,iBAAiB,UAAU,QAAQ;CACnD,MAAM,SACL,UAAU,WAAW,QAAQ,WAAW,QAAQ,SAAS;AAE1D,oBAAA,mBAAmB,SAAS,KAAK;AACjC,oBAAA,kBAAkB,UAAU,WAAW,KAAK;AAE5C,QAAO;EACN,QAAQ,UAAU;EAClB,QAAQ,UAAU;EAClB;EACA,MAAM,UAAU;EAChB;EACA,SAAS,UAAU;EACnB,aAAa,UAAU;EACvB;EACA,WAAW,UAAU;EACrB"}
@@ -0,0 +1,7 @@
1
+ import { HttpOperationConfig, HttpOperationDef, HttpOperationRequestConfig, HttpOperationResponses, NormalizeHttpOperationRequest } from "./types.cjs";
2
+
3
+ //#region src/http-operation/define.d.ts
4
+ declare function defineHttpOperation<const TDomain extends string, const TAction extends string, const TRequest extends HttpOperationRequestConfig, const TResponses extends HttpOperationResponses>(operation: HttpOperationConfig<TDomain, TAction, TRequest, TResponses>): HttpOperationDef<TDomain, TAction, NormalizeHttpOperationRequest<TRequest>, TResponses>;
5
+ //#endregion
6
+ export { defineHttpOperation };
7
+ //# sourceMappingURL=define.d.cts.map
@@ -0,0 +1,7 @@
1
+ import { HttpOperationConfig, HttpOperationDef, HttpOperationRequestConfig, HttpOperationResponses, NormalizeHttpOperationRequest } from "./types.mjs";
2
+
3
+ //#region src/http-operation/define.d.ts
4
+ declare function defineHttpOperation<const TDomain extends string, const TAction extends string, const TRequest extends HttpOperationRequestConfig, const TResponses extends HttpOperationResponses>(operation: HttpOperationConfig<TDomain, TAction, TRequest, TResponses>): HttpOperationDef<TDomain, TAction, NormalizeHttpOperationRequest<TRequest>, TResponses>;
5
+ //#endregion
6
+ export { defineHttpOperation };
7
+ //# sourceMappingURL=define.d.mts.map
@@ -0,0 +1,33 @@
1
+ import { validatePathSchema, validateResponses } from "./validation.mjs";
2
+ //#region src/http-operation/define.ts
3
+ function normalizeRequestPath(path) {
4
+ return typeof path === "string" ? { template: path } : path;
5
+ }
6
+ function normalizeRequest(request) {
7
+ return {
8
+ ...request,
9
+ path: normalizeRequestPath(request.path)
10
+ };
11
+ }
12
+ function defineHttpOperation(operation) {
13
+ const name = `${operation.domain}.${operation.action}`;
14
+ const request = normalizeRequest(operation.request);
15
+ const safety = operation.safety ?? (request.method === "GET" ? "read" : "write");
16
+ validatePathSchema(request, name);
17
+ validateResponses(operation.responses, name);
18
+ return {
19
+ domain: operation.domain,
20
+ action: operation.action,
21
+ name,
22
+ auth: operation.auth,
23
+ safety,
24
+ summary: operation.summary,
25
+ description: operation.description,
26
+ request,
27
+ responses: operation.responses
28
+ };
29
+ }
30
+ //#endregion
31
+ export { defineHttpOperation };
32
+
33
+ //# sourceMappingURL=define.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"define.mjs","names":[],"sources":["../../src/http-operation/define.ts"],"sourcesContent":["import {\n\ttype HttpOperationConfig,\n\ttype HttpOperationDef,\n\ttype HttpOperationRequestConfig,\n\ttype HttpOperationRequestPathConfig,\n\ttype HttpOperationResponses,\n\ttype NormalizeHttpOperationRequest,\n\ttype NormalizeHttpOperationRequestPath,\n} from \"./types\";\nimport { validatePathSchema, validateResponses } from \"./validation\";\n\nfunction normalizeRequestPath<TPath extends HttpOperationRequestPathConfig>(\n\tpath: TPath,\n): NormalizeHttpOperationRequestPath<TPath> {\n\treturn (\n\t\ttypeof path === \"string\" ? { template: path } : path\n\t) as NormalizeHttpOperationRequestPath<TPath>;\n}\n\nfunction normalizeRequest<TRequest extends HttpOperationRequestConfig>(\n\trequest: TRequest,\n): NormalizeHttpOperationRequest<TRequest> {\n\treturn {\n\t\t...request,\n\t\tpath: normalizeRequestPath(request.path),\n\t} as unknown as NormalizeHttpOperationRequest<TRequest>;\n}\n\nexport function defineHttpOperation<\n\tconst TDomain extends string,\n\tconst TAction extends string,\n\tconst TRequest extends HttpOperationRequestConfig,\n\tconst TResponses extends HttpOperationResponses,\n>(\n\toperation: HttpOperationConfig<TDomain, TAction, TRequest, TResponses>,\n): HttpOperationDef<\n\tTDomain,\n\tTAction,\n\tNormalizeHttpOperationRequest<TRequest>,\n\tTResponses\n> {\n\tconst name = `${operation.domain}.${operation.action}` as const;\n\tconst request = normalizeRequest(operation.request);\n\tconst safety =\n\t\toperation.safety ?? (request.method === \"GET\" ? \"read\" : \"write\");\n\n\tvalidatePathSchema(request, name);\n\tvalidateResponses(operation.responses, name);\n\n\treturn {\n\t\tdomain: operation.domain,\n\t\taction: operation.action,\n\t\tname,\n\t\tauth: operation.auth,\n\t\tsafety,\n\t\tsummary: operation.summary,\n\t\tdescription: operation.description,\n\t\trequest,\n\t\tresponses: operation.responses,\n\t};\n}\n"],"mappings":";;AAWA,SAAS,qBACR,MAC2C;AAC3C,QACC,OAAO,SAAS,WAAW,EAAE,UAAU,MAAM,GAAG;;AAIlD,SAAS,iBACR,SAC0C;AAC1C,QAAO;EACN,GAAG;EACH,MAAM,qBAAqB,QAAQ,KAAK;EACxC;;AAGF,SAAgB,oBAMf,WAMC;CACD,MAAM,OAAO,GAAG,UAAU,OAAO,GAAG,UAAU;CAC9C,MAAM,UAAU,iBAAiB,UAAU,QAAQ;CACnD,MAAM,SACL,UAAU,WAAW,QAAQ,WAAW,QAAQ,SAAS;AAE1D,oBAAmB,SAAS,KAAK;AACjC,mBAAkB,UAAU,WAAW,KAAK;AAE5C,QAAO;EACN,QAAQ,UAAU;EAClB,QAAQ,UAAU;EAClB;EACA,MAAM,UAAU;EAChB;EACA,SAAS,UAAU;EACnB,aAAa,UAAU;EACvB;EACA,WAAW,UAAU;EACrB"}
@@ -0,0 +1,24 @@
1
+ const require_object_schema = require("../schema/object-schema.cjs");
2
+ //#region src/http-operation/flattenability.ts
3
+ function isHttpOperationFlattenable(operation) {
4
+ const sectionSchemas = [
5
+ operation.request.path.schema,
6
+ operation.request.query?.schema,
7
+ operation.request.headers?.schema,
8
+ operation.request.body?.schema
9
+ ];
10
+ const objectSchemaKeys = /* @__PURE__ */ new Set();
11
+ for (const schema of sectionSchemas) {
12
+ if (schema == void 0) continue;
13
+ if (!require_object_schema.isObjectSchema(schema)) return false;
14
+ for (const key of require_object_schema.getObjectSchemaKeys(schema)) {
15
+ if (objectSchemaKeys.has(key)) return false;
16
+ objectSchemaKeys.add(key);
17
+ }
18
+ }
19
+ return true;
20
+ }
21
+ //#endregion
22
+ exports.isHttpOperationFlattenable = isHttpOperationFlattenable;
23
+
24
+ //# sourceMappingURL=flattenability.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flattenability.cjs","names":["isObjectSchema","getObjectSchemaKeys"],"sources":["../../src/http-operation/flattenability.ts"],"sourcesContent":["import { getObjectSchemaKeys, isObjectSchema } from \"../schema/object-schema\";\nimport { type AnyHttpOperationDef } from \"./types\";\n\nexport function isHttpOperationFlattenable(\n\toperation: AnyHttpOperationDef,\n): boolean {\n\tconst sectionSchemas = [\n\t\toperation.request.path.schema,\n\t\toperation.request.query?.schema,\n\t\toperation.request.headers?.schema,\n\t\toperation.request.body?.schema,\n\t];\n\n\tconst objectSchemaKeys = new Set<string>();\n\n\tfor (const schema of sectionSchemas) {\n\t\tif (schema == undefined) {\n\t\t\tcontinue;\n\t\t}\n\n\t\tif (!isObjectSchema(schema)) {\n\t\t\treturn false;\n\t\t}\n\n\t\tfor (const key of getObjectSchemaKeys(schema)) {\n\t\t\tif (objectSchemaKeys.has(key)) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tobjectSchemaKeys.add(key);\n\t\t}\n\t}\n\n\treturn true;\n}\n"],"mappings":";;AAGA,SAAgB,2BACf,WACU;CACV,MAAM,iBAAiB;EACtB,UAAU,QAAQ,KAAK;EACvB,UAAU,QAAQ,OAAO;EACzB,UAAU,QAAQ,SAAS;EAC3B,UAAU,QAAQ,MAAM;EACxB;CAED,MAAM,mCAAmB,IAAI,KAAa;AAE1C,MAAK,MAAM,UAAU,gBAAgB;AACpC,MAAI,UAAU,KAAA,EACb;AAGD,MAAI,CAACA,sBAAAA,eAAe,OAAO,CAC1B,QAAO;AAGR,OAAK,MAAM,OAAOC,sBAAAA,oBAAoB,OAAO,EAAE;AAC9C,OAAI,iBAAiB,IAAI,IAAI,CAC5B,QAAO;AAGR,oBAAiB,IAAI,IAAI;;;AAI3B,QAAO"}
@@ -0,0 +1,7 @@
1
+ import { AnyHttpOperationDef } from "./types.cjs";
2
+
3
+ //#region src/http-operation/flattenability.d.ts
4
+ declare function isHttpOperationFlattenable(operation: AnyHttpOperationDef): boolean;
5
+ //#endregion
6
+ export { isHttpOperationFlattenable };
7
+ //# sourceMappingURL=flattenability.d.cts.map
@@ -0,0 +1,7 @@
1
+ import { AnyHttpOperationDef } from "./types.mjs";
2
+
3
+ //#region src/http-operation/flattenability.d.ts
4
+ declare function isHttpOperationFlattenable(operation: AnyHttpOperationDef): boolean;
5
+ //#endregion
6
+ export { isHttpOperationFlattenable };
7
+ //# sourceMappingURL=flattenability.d.mts.map
@@ -0,0 +1,24 @@
1
+ import { getObjectSchemaKeys, isObjectSchema } from "../schema/object-schema.mjs";
2
+ //#region src/http-operation/flattenability.ts
3
+ function isHttpOperationFlattenable(operation) {
4
+ const sectionSchemas = [
5
+ operation.request.path.schema,
6
+ operation.request.query?.schema,
7
+ operation.request.headers?.schema,
8
+ operation.request.body?.schema
9
+ ];
10
+ const objectSchemaKeys = /* @__PURE__ */ new Set();
11
+ for (const schema of sectionSchemas) {
12
+ if (schema == void 0) continue;
13
+ if (!isObjectSchema(schema)) return false;
14
+ for (const key of getObjectSchemaKeys(schema)) {
15
+ if (objectSchemaKeys.has(key)) return false;
16
+ objectSchemaKeys.add(key);
17
+ }
18
+ }
19
+ return true;
20
+ }
21
+ //#endregion
22
+ export { isHttpOperationFlattenable };
23
+
24
+ //# sourceMappingURL=flattenability.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flattenability.mjs","names":[],"sources":["../../src/http-operation/flattenability.ts"],"sourcesContent":["import { getObjectSchemaKeys, isObjectSchema } from \"../schema/object-schema\";\nimport { type AnyHttpOperationDef } from \"./types\";\n\nexport function isHttpOperationFlattenable(\n\toperation: AnyHttpOperationDef,\n): boolean {\n\tconst sectionSchemas = [\n\t\toperation.request.path.schema,\n\t\toperation.request.query?.schema,\n\t\toperation.request.headers?.schema,\n\t\toperation.request.body?.schema,\n\t];\n\n\tconst objectSchemaKeys = new Set<string>();\n\n\tfor (const schema of sectionSchemas) {\n\t\tif (schema == undefined) {\n\t\t\tcontinue;\n\t\t}\n\n\t\tif (!isObjectSchema(schema)) {\n\t\t\treturn false;\n\t\t}\n\n\t\tfor (const key of getObjectSchemaKeys(schema)) {\n\t\t\tif (objectSchemaKeys.has(key)) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tobjectSchemaKeys.add(key);\n\t\t}\n\t}\n\n\treturn true;\n}\n"],"mappings":";;AAGA,SAAgB,2BACf,WACU;CACV,MAAM,iBAAiB;EACtB,UAAU,QAAQ,KAAK;EACvB,UAAU,QAAQ,OAAO;EACzB,UAAU,QAAQ,SAAS;EAC3B,UAAU,QAAQ,MAAM;EACxB;CAED,MAAM,mCAAmB,IAAI,KAAa;AAE1C,MAAK,MAAM,UAAU,gBAAgB;AACpC,MAAI,UAAU,KAAA,EACb;AAGD,MAAI,CAAC,eAAe,OAAO,CAC1B,QAAO;AAGR,OAAK,MAAM,OAAO,oBAAoB,OAAO,EAAE;AAC9C,OAAI,iBAAiB,IAAI,IAAI,CAC5B,QAAO;AAGR,oBAAiB,IAAI,IAAI;;;AAI3B,QAAO"}
@@ -0,0 +1,63 @@
1
+ import { Simplify } from "../type-utils/simplify.cjs";
2
+ import { AnySchema } from "../schema/types.cjs";
3
+ import { HttpSuccessStatusCode } from "./status.cjs";
4
+ import { AnyHttpOperationDef, HttpOperationResponse, ObjectSchemaType } from "./types.cjs";
5
+ import { InferInput, InferOutput } from "valibot";
6
+
7
+ //#region src/http-operation/inference.d.ts
8
+ type EmptyObject = Record<never, never>;
9
+ type RequiredKeysOf<T extends object> = keyof { [TKey in keyof T as Omit<T, TKey> extends T ? never : TKey]: unknown };
10
+ type HasRequiredKeys<T> = [T] extends [readonly unknown[]] ? true : [T] extends [object] ? [RequiredKeysOf<Extract<T, object>>] extends [never] ? false : true : true;
11
+ type PathSchemaOf<T extends AnyHttpOperationDef> = T["request"]["path"] extends {
12
+ readonly schema: infer TPathSchema;
13
+ } ? Extract<TPathSchema, ObjectSchemaType> : undefined;
14
+ type QuerySchemaOf<T extends AnyHttpOperationDef> = T["request"] extends {
15
+ readonly query: {
16
+ readonly schema: infer TQuerySchema;
17
+ };
18
+ } ? Extract<TQuerySchema, ObjectSchemaType> : undefined;
19
+ type HeadersSchemaOf<T extends AnyHttpOperationDef> = T["request"] extends {
20
+ readonly headers: {
21
+ readonly schema: infer THeadersSchema;
22
+ };
23
+ } ? Extract<THeadersSchema, ObjectSchemaType> : undefined;
24
+ type BodySchemaOf<T extends AnyHttpOperationDef> = T["request"] extends {
25
+ readonly body: {
26
+ readonly schema: infer TBodySchema;
27
+ };
28
+ } ? Extract<TBodySchema, AnySchema> : undefined;
29
+ type RequestSectionEntry<TName extends string, TSchema extends AnySchema | undefined> = [TSchema] extends [AnySchema] ? HasRequiredKeys<InferInput<Extract<TSchema, AnySchema>>> extends true ? Readonly<Record<TName, InferInput<Extract<TSchema, AnySchema>>>> : Readonly<Partial<Record<TName, InferInput<Extract<TSchema, AnySchema>>>>> : EmptyObject;
30
+ type RequestSectionFlatShape<TSchema extends AnySchema | undefined> = [TSchema] extends [undefined] ? EmptyObject : TSchema extends ObjectSchemaType ? InferInput<TSchema> : never;
31
+ type MergeWithoutOverlaps<TLeft, TRight> = [TLeft] extends [never] ? never : [TRight] extends [never] ? never : Extract<keyof TLeft, keyof TRight> extends never ? Simplify<TLeft & TRight> : never;
32
+ type FlatRequestOf<T extends AnyHttpOperationDef> = MergeWithoutOverlaps<MergeWithoutOverlaps<MergeWithoutOverlaps<RequestSectionFlatShape<PathSchemaOf<T>>, RequestSectionFlatShape<QuerySchemaOf<T>>>, RequestSectionFlatShape<HeadersSchemaOf<T>>>, RequestSectionFlatShape<BodySchemaOf<T>>>;
33
+ type RequestInputOf<TRequest> = keyof TRequest extends never ? undefined : TRequest;
34
+ type RequestArgumentsOf<TRequest> = keyof TRequest extends never ? [] : HasRequiredKeys<TRequest> extends true ? [request: TRequest] : [request?: TRequest];
35
+ type ResponseSchemaData<TResponse extends HttpOperationResponse | undefined> = TResponse extends {
36
+ readonly schema: infer TResponseSchema;
37
+ } ? [Extract<TResponseSchema, AnySchema>] extends [AnySchema] ? InferOutput<Extract<TResponseSchema, AnySchema>> : undefined : undefined;
38
+ type HttpOperationResponseStatus<T extends AnyHttpOperationDef> = Extract<keyof T["responses"], number>;
39
+ type HttpOperationSuccessStatus<T extends AnyHttpOperationDef> = Extract<HttpOperationResponseStatus<T>, HttpSuccessStatusCode>;
40
+ type HttpOperationResponseByStatus<T extends AnyHttpOperationDef, TStatus extends HttpOperationResponseStatus<T>> = ResponseSchemaData<T["responses"][TStatus]>;
41
+ type HttpOperationRequestSections<T extends AnyHttpOperationDef> = Simplify<RequestSectionEntry<"path", PathSchemaOf<T>> & RequestSectionEntry<"query", QuerySchemaOf<T>> & RequestSectionEntry<"headers", HeadersSchemaOf<T>> & RequestSectionEntry<"body", BodySchemaOf<T>>>;
42
+ type HttpOperationRequestInput<T extends AnyHttpOperationDef> = RequestInputOf<HttpOperationRequestSections<T>>;
43
+ type HttpOperationRequestArguments<T extends AnyHttpOperationDef> = RequestArgumentsOf<HttpOperationRequestSections<T>>;
44
+ type HttpOperationFlatRequest<T extends AnyHttpOperationDef> = FlatRequestOf<T>;
45
+ type HttpOperationFlatInput<T extends AnyHttpOperationDef> = [HttpOperationFlatRequest<T>] extends [never] ? never : RequestInputOf<HttpOperationFlatRequest<T>>;
46
+ type HttpOperationPreferredRequest<T extends AnyHttpOperationDef> = [HttpOperationFlatInput<T>] extends [never] ? HttpOperationRequestInput<T> : HttpOperationFlatInput<T>;
47
+ type HttpOperationFlatArguments<T extends AnyHttpOperationDef> = [HttpOperationFlatInput<T>] extends [never] ? never : RequestArgumentsOf<HttpOperationFlatRequest<T>>;
48
+ type HttpOperationSuccessResponse<T extends AnyHttpOperationDef> = HttpOperationResponseByStatus<T, HttpOperationSuccessStatus<T>>;
49
+ type HttpOperationErrorStatus<T extends AnyHttpOperationDef> = Exclude<HttpOperationResponseStatus<T>, HttpSuccessStatusCode>;
50
+ type HttpOperationErrorBody<T extends AnyHttpOperationDef, TStatus extends HttpOperationErrorStatus<T> = HttpOperationErrorStatus<T>> = HttpOperationResponseByStatus<T, TStatus>;
51
+ type HttpOperationRequestMethod<T extends AnyHttpOperationDef> = (...args: HttpOperationRequestArguments<T>) => Promise<HttpOperationSuccessResponse<T>>;
52
+ type HttpOperationFlatMethod<T extends AnyHttpOperationDef> = (...args: HttpOperationFlatArguments<T>) => Promise<HttpOperationSuccessResponse<T>>;
53
+ type HttpOperationEntry<T extends AnyHttpOperationDef> = [HttpOperationFlatRequest<T>] extends [never] ? {
54
+ readonly request: HttpOperationRequestMethod<T>;
55
+ } : HttpOperationFlatMethod<T> & {
56
+ readonly request: HttpOperationRequestMethod<T>;
57
+ };
58
+ interface HttpOperationExecutor {
59
+ execute<T extends AnyHttpOperationDef>(operation: T, ...args: HttpOperationRequestArguments<T>): Promise<HttpOperationSuccessResponse<T>>;
60
+ }
61
+ //#endregion
62
+ export { HttpOperationEntry, HttpOperationErrorBody, HttpOperationErrorStatus, HttpOperationExecutor, HttpOperationFlatArguments, HttpOperationFlatInput, HttpOperationFlatMethod, HttpOperationFlatRequest, HttpOperationPreferredRequest, HttpOperationRequestArguments, HttpOperationRequestInput, HttpOperationRequestMethod, HttpOperationRequestSections, HttpOperationResponseByStatus, HttpOperationResponseStatus, HttpOperationSuccessResponse, HttpOperationSuccessStatus };
63
+ //# sourceMappingURL=inference.d.cts.map