@quickshops/sdk 1.0.0 → 1.0.4

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 (345) hide show
  1. package/README.md +88 -373
  2. package/esm/core.d.ts.map +1 -1
  3. package/esm/core.js +1 -0
  4. package/esm/core.js.map +1 -1
  5. package/esm/funcs/cart-cart-add-line.d.ts.map +1 -1
  6. package/esm/funcs/cart-cart-add-line.js +1 -0
  7. package/esm/funcs/cart-cart-add-line.js.map +1 -1
  8. package/esm/funcs/cart-cart-clear.d.ts.map +1 -1
  9. package/esm/funcs/cart-cart-clear.js +1 -0
  10. package/esm/funcs/cart-cart-clear.js.map +1 -1
  11. package/esm/funcs/cart-cart-create.d.ts.map +1 -1
  12. package/esm/funcs/cart-cart-create.js +1 -0
  13. package/esm/funcs/cart-cart-create.js.map +1 -1
  14. package/esm/funcs/cart-cart-get.d.ts.map +1 -1
  15. package/esm/funcs/cart-cart-get.js +1 -0
  16. package/esm/funcs/cart-cart-get.js.map +1 -1
  17. package/esm/funcs/cart-cart-remove-line.d.ts.map +1 -1
  18. package/esm/funcs/cart-cart-remove-line.js +1 -0
  19. package/esm/funcs/cart-cart-remove-line.js.map +1 -1
  20. package/esm/funcs/cart-cart-update-line.d.ts.map +1 -1
  21. package/esm/funcs/cart-cart-update-line.js +1 -0
  22. package/esm/funcs/cart-cart-update-line.js.map +1 -1
  23. package/esm/funcs/checkout-checkout-create-session.d.ts.map +1 -1
  24. package/esm/funcs/checkout-checkout-create-session.js +1 -0
  25. package/esm/funcs/checkout-checkout-create-session.js.map +1 -1
  26. package/esm/funcs/health-health-check.d.ts.map +1 -1
  27. package/esm/funcs/health-health-check.js +1 -0
  28. package/esm/funcs/health-health-check.js.map +1 -1
  29. package/esm/funcs/products-products-get-all.d.ts.map +1 -1
  30. package/esm/funcs/products-products-get-all.js +1 -0
  31. package/esm/funcs/products-products-get-all.js.map +1 -1
  32. package/esm/funcs/products-products-get-by-id.d.ts.map +1 -1
  33. package/esm/funcs/products-products-get-by-id.js +1 -0
  34. package/esm/funcs/products-products-get-by-id.js.map +1 -1
  35. package/esm/funcs/store-store-get.d.ts.map +1 -1
  36. package/esm/funcs/store-store-get.js +1 -0
  37. package/esm/funcs/store-store-get.js.map +1 -1
  38. package/esm/funcs/subscription-subscription-create-portal-session.d.ts.map +1 -1
  39. package/esm/funcs/subscription-subscription-create-portal-session.js +1 -0
  40. package/esm/funcs/subscription-subscription-create-portal-session.js.map +1 -1
  41. package/esm/hooks/hooks.d.ts.map +1 -1
  42. package/esm/hooks/hooks.js +1 -0
  43. package/esm/hooks/hooks.js.map +1 -1
  44. package/esm/hooks/index.d.ts.map +1 -1
  45. package/esm/hooks/index.js +1 -0
  46. package/esm/hooks/index.js.map +1 -1
  47. package/esm/hooks/types.d.ts.map +1 -1
  48. package/esm/hooks/types.js +1 -0
  49. package/esm/hooks/types.js.map +1 -1
  50. package/esm/index.d.ts.map +1 -1
  51. package/esm/index.js +1 -0
  52. package/esm/index.js.map +1 -1
  53. package/esm/lib/base64.d.ts.map +1 -1
  54. package/esm/lib/base64.js +1 -0
  55. package/esm/lib/base64.js.map +1 -1
  56. package/esm/lib/config.d.ts +2 -2
  57. package/esm/lib/config.d.ts.map +1 -1
  58. package/esm/lib/config.js +3 -2
  59. package/esm/lib/config.js.map +1 -1
  60. package/esm/lib/encodings.d.ts.map +1 -1
  61. package/esm/lib/encodings.js +1 -0
  62. package/esm/lib/encodings.js.map +1 -1
  63. package/esm/lib/env.d.ts.map +1 -1
  64. package/esm/lib/env.js +1 -0
  65. package/esm/lib/env.js.map +1 -1
  66. package/esm/lib/files.d.ts.map +1 -1
  67. package/esm/lib/files.js +1 -0
  68. package/esm/lib/files.js.map +1 -1
  69. package/esm/lib/http.d.ts.map +1 -1
  70. package/esm/lib/http.js +1 -0
  71. package/esm/lib/http.js.map +1 -1
  72. package/esm/lib/logger.d.ts.map +1 -1
  73. package/esm/lib/logger.js +1 -0
  74. package/esm/lib/logger.js.map +1 -1
  75. package/esm/lib/matchers.d.ts.map +1 -1
  76. package/esm/lib/matchers.js +1 -0
  77. package/esm/lib/matchers.js.map +1 -1
  78. package/esm/lib/primitives.d.ts.map +1 -1
  79. package/esm/lib/primitives.js +1 -0
  80. package/esm/lib/primitives.js.map +1 -1
  81. package/esm/lib/retries.d.ts.map +1 -1
  82. package/esm/lib/retries.js +1 -0
  83. package/esm/lib/retries.js.map +1 -1
  84. package/esm/lib/schemas.d.ts.map +1 -1
  85. package/esm/lib/schemas.js +1 -0
  86. package/esm/lib/schemas.js.map +1 -1
  87. package/esm/lib/sdks.d.ts.map +1 -1
  88. package/esm/lib/sdks.js +1 -0
  89. package/esm/lib/sdks.js.map +1 -1
  90. package/esm/lib/security.d.ts.map +1 -1
  91. package/esm/lib/security.js +1 -0
  92. package/esm/lib/security.js.map +1 -1
  93. package/esm/lib/url.d.ts.map +1 -1
  94. package/esm/lib/url.js +1 -0
  95. package/esm/lib/url.js.map +1 -1
  96. package/esm/models/errors/cart-add-line.d.ts.map +1 -1
  97. package/esm/models/errors/cart-add-line.js +1 -0
  98. package/esm/models/errors/cart-add-line.js.map +1 -1
  99. package/esm/models/errors/cart-clear.d.ts.map +1 -1
  100. package/esm/models/errors/cart-clear.js +1 -0
  101. package/esm/models/errors/cart-clear.js.map +1 -1
  102. package/esm/models/errors/cart-create.d.ts.map +1 -1
  103. package/esm/models/errors/cart-create.js +1 -0
  104. package/esm/models/errors/cart-create.js.map +1 -1
  105. package/esm/models/errors/cart-get.d.ts.map +1 -1
  106. package/esm/models/errors/cart-get.js +1 -0
  107. package/esm/models/errors/cart-get.js.map +1 -1
  108. package/esm/models/errors/cart-remove-line.d.ts.map +1 -1
  109. package/esm/models/errors/cart-remove-line.js +1 -0
  110. package/esm/models/errors/cart-remove-line.js.map +1 -1
  111. package/esm/models/errors/cart-update-line.d.ts.map +1 -1
  112. package/esm/models/errors/cart-update-line.js +1 -0
  113. package/esm/models/errors/cart-update-line.js.map +1 -1
  114. package/esm/models/errors/checkout-create-session.d.ts.map +1 -1
  115. package/esm/models/errors/checkout-create-session.js +1 -0
  116. package/esm/models/errors/checkout-create-session.js.map +1 -1
  117. package/esm/models/errors/health-check.d.ts.map +1 -1
  118. package/esm/models/errors/health-check.js +1 -0
  119. package/esm/models/errors/health-check.js.map +1 -1
  120. package/esm/models/errors/http-client-errors.d.ts.map +1 -1
  121. package/esm/models/errors/http-client-errors.js +1 -0
  122. package/esm/models/errors/http-client-errors.js.map +1 -1
  123. package/esm/models/errors/index.d.ts.map +1 -1
  124. package/esm/models/errors/index.js +1 -0
  125. package/esm/models/errors/index.js.map +1 -1
  126. package/esm/models/errors/products-get-all.d.ts.map +1 -1
  127. package/esm/models/errors/products-get-all.js +1 -0
  128. package/esm/models/errors/products-get-all.js.map +1 -1
  129. package/esm/models/errors/products-get-by-id.d.ts.map +1 -1
  130. package/esm/models/errors/products-get-by-id.js +1 -0
  131. package/esm/models/errors/products-get-by-id.js.map +1 -1
  132. package/esm/models/errors/quickshops-default-error.d.ts.map +1 -1
  133. package/esm/models/errors/quickshops-default-error.js +1 -0
  134. package/esm/models/errors/quickshops-default-error.js.map +1 -1
  135. package/esm/models/errors/quickshops-error.d.ts.map +1 -1
  136. package/esm/models/errors/quickshops-error.js +1 -0
  137. package/esm/models/errors/quickshops-error.js.map +1 -1
  138. package/esm/models/errors/response-validation-error.d.ts.map +1 -1
  139. package/esm/models/errors/response-validation-error.js +1 -0
  140. package/esm/models/errors/response-validation-error.js.map +1 -1
  141. package/esm/models/errors/sdk-validation-error.d.ts.map +1 -1
  142. package/esm/models/errors/sdk-validation-error.js +1 -0
  143. package/esm/models/errors/sdk-validation-error.js.map +1 -1
  144. package/esm/models/errors/store-get.d.ts.map +1 -1
  145. package/esm/models/errors/store-get.js +1 -0
  146. package/esm/models/errors/store-get.js.map +1 -1
  147. package/esm/models/errors/subscription-create-portal-session.d.ts.map +1 -1
  148. package/esm/models/errors/subscription-create-portal-session.js +1 -0
  149. package/esm/models/errors/subscription-create-portal-session.js.map +1 -1
  150. package/esm/models/index.d.ts.map +1 -1
  151. package/esm/models/index.js +1 -0
  152. package/esm/models/index.js.map +1 -1
  153. package/esm/models/operations/cart-add-line.d.ts.map +1 -1
  154. package/esm/models/operations/cart-add-line.js +1 -0
  155. package/esm/models/operations/cart-add-line.js.map +1 -1
  156. package/esm/models/operations/cart-clear.d.ts.map +1 -1
  157. package/esm/models/operations/cart-clear.js +1 -0
  158. package/esm/models/operations/cart-clear.js.map +1 -1
  159. package/esm/models/operations/cart-create.d.ts.map +1 -1
  160. package/esm/models/operations/cart-create.js +1 -0
  161. package/esm/models/operations/cart-create.js.map +1 -1
  162. package/esm/models/operations/cart-get.d.ts.map +1 -1
  163. package/esm/models/operations/cart-get.js +1 -0
  164. package/esm/models/operations/cart-get.js.map +1 -1
  165. package/esm/models/operations/cart-remove-line.d.ts.map +1 -1
  166. package/esm/models/operations/cart-remove-line.js +1 -0
  167. package/esm/models/operations/cart-remove-line.js.map +1 -1
  168. package/esm/models/operations/cart-update-line.d.ts.map +1 -1
  169. package/esm/models/operations/cart-update-line.js +1 -0
  170. package/esm/models/operations/cart-update-line.js.map +1 -1
  171. package/esm/models/operations/checkout-create-session.d.ts.map +1 -1
  172. package/esm/models/operations/checkout-create-session.js +1 -0
  173. package/esm/models/operations/checkout-create-session.js.map +1 -1
  174. package/esm/models/operations/health-check.d.ts.map +1 -1
  175. package/esm/models/operations/health-check.js +1 -0
  176. package/esm/models/operations/health-check.js.map +1 -1
  177. package/esm/models/operations/index.d.ts.map +1 -1
  178. package/esm/models/operations/index.js +1 -0
  179. package/esm/models/operations/index.js.map +1 -1
  180. package/esm/models/operations/products-get-all.d.ts.map +1 -1
  181. package/esm/models/operations/products-get-all.js +1 -0
  182. package/esm/models/operations/products-get-all.js.map +1 -1
  183. package/esm/models/operations/products-get-by-id.d.ts.map +1 -1
  184. package/esm/models/operations/products-get-by-id.js +1 -0
  185. package/esm/models/operations/products-get-by-id.js.map +1 -1
  186. package/esm/models/operations/store-get.d.ts.map +1 -1
  187. package/esm/models/operations/store-get.js +1 -0
  188. package/esm/models/operations/store-get.js.map +1 -1
  189. package/esm/models/operations/subscription-create-portal-session.d.ts.map +1 -1
  190. package/esm/models/operations/subscription-create-portal-session.js +1 -0
  191. package/esm/models/operations/subscription-create-portal-session.js.map +1 -1
  192. package/esm/models/security.d.ts.map +1 -1
  193. package/esm/models/security.js +1 -0
  194. package/esm/models/security.js.map +1 -1
  195. package/esm/sdk/cart.d.ts.map +1 -1
  196. package/esm/sdk/cart.js +1 -0
  197. package/esm/sdk/cart.js.map +1 -1
  198. package/esm/sdk/checkout.d.ts.map +1 -1
  199. package/esm/sdk/checkout.js +1 -0
  200. package/esm/sdk/checkout.js.map +1 -1
  201. package/esm/sdk/health.d.ts.map +1 -1
  202. package/esm/sdk/health.js +1 -0
  203. package/esm/sdk/health.js.map +1 -1
  204. package/esm/sdk/index.d.ts.map +1 -1
  205. package/esm/sdk/index.js +1 -0
  206. package/esm/sdk/index.js.map +1 -1
  207. package/esm/sdk/products.d.ts.map +1 -1
  208. package/esm/sdk/products.js +1 -0
  209. package/esm/sdk/products.js.map +1 -1
  210. package/esm/sdk/sdk.d.ts.map +1 -1
  211. package/esm/sdk/sdk.js +1 -0
  212. package/esm/sdk/sdk.js.map +1 -1
  213. package/esm/sdk/store.d.ts.map +1 -1
  214. package/esm/sdk/store.js +1 -0
  215. package/esm/sdk/store.js.map +1 -1
  216. package/esm/sdk/subscription.d.ts.map +1 -1
  217. package/esm/sdk/subscription.js +1 -0
  218. package/esm/sdk/subscription.js.map +1 -1
  219. package/esm/types/async.d.ts.map +1 -1
  220. package/esm/types/async.js +1 -0
  221. package/esm/types/async.js.map +1 -1
  222. package/esm/types/blobs.d.ts.map +1 -1
  223. package/esm/types/blobs.js +1 -0
  224. package/esm/types/blobs.js.map +1 -1
  225. package/esm/types/const-date-time.d.ts.map +1 -1
  226. package/esm/types/const-date-time.js +1 -0
  227. package/esm/types/const-date-time.js.map +1 -1
  228. package/esm/types/default-to-zero-value.d.ts.map +1 -1
  229. package/esm/types/default-to-zero-value.js +1 -0
  230. package/esm/types/default-to-zero-value.js.map +1 -1
  231. package/esm/types/enums.d.ts.map +1 -1
  232. package/esm/types/enums.js +1 -0
  233. package/esm/types/enums.js.map +1 -1
  234. package/esm/types/fp.d.ts.map +1 -1
  235. package/esm/types/fp.js +1 -0
  236. package/esm/types/fp.js.map +1 -1
  237. package/esm/types/index.d.ts.map +1 -1
  238. package/esm/types/index.js +1 -0
  239. package/esm/types/index.js.map +1 -1
  240. package/esm/types/operations.d.ts.map +1 -1
  241. package/esm/types/operations.js +1 -0
  242. package/esm/types/operations.js.map +1 -1
  243. package/esm/types/primitives.d.ts.map +1 -1
  244. package/esm/types/primitives.js +1 -0
  245. package/esm/types/primitives.js.map +1 -1
  246. package/esm/types/rfcdate.d.ts.map +1 -1
  247. package/esm/types/rfcdate.js +1 -0
  248. package/esm/types/rfcdate.js.map +1 -1
  249. package/esm/types/smart-union.d.ts.map +1 -1
  250. package/esm/types/smart-union.js +1 -0
  251. package/esm/types/smart-union.js.map +1 -1
  252. package/esm/types/streams.d.ts.map +1 -1
  253. package/esm/types/streams.js +1 -0
  254. package/esm/types/streams.js.map +1 -1
  255. package/esm/types/unrecognized.d.ts.map +1 -1
  256. package/esm/types/unrecognized.js +1 -0
  257. package/esm/types/unrecognized.js.map +1 -1
  258. package/examples/healthHealthCheck.example.ts +1 -0
  259. package/jsr.json +1 -1
  260. package/package.json +3 -2
  261. package/src/core.ts +1 -0
  262. package/src/funcs/cart-cart-add-line.ts +1 -0
  263. package/src/funcs/cart-cart-clear.ts +1 -0
  264. package/src/funcs/cart-cart-create.ts +1 -0
  265. package/src/funcs/cart-cart-get.ts +1 -0
  266. package/src/funcs/cart-cart-remove-line.ts +1 -0
  267. package/src/funcs/cart-cart-update-line.ts +1 -0
  268. package/src/funcs/checkout-checkout-create-session.ts +1 -0
  269. package/src/funcs/health-health-check.ts +1 -0
  270. package/src/funcs/products-products-get-all.ts +1 -0
  271. package/src/funcs/products-products-get-by-id.ts +1 -0
  272. package/src/funcs/store-store-get.ts +1 -0
  273. package/src/funcs/subscription-subscription-create-portal-session.ts +1 -0
  274. package/src/hooks/hooks.ts +1 -0
  275. package/src/hooks/index.ts +1 -0
  276. package/src/hooks/types.ts +1 -0
  277. package/src/index.ts +1 -0
  278. package/src/lib/base64.ts +1 -0
  279. package/src/lib/config.ts +3 -2
  280. package/src/lib/encodings.ts +1 -0
  281. package/src/lib/env.ts +1 -0
  282. package/src/lib/files.ts +1 -0
  283. package/src/lib/http.ts +1 -0
  284. package/src/lib/logger.ts +1 -0
  285. package/src/lib/matchers.ts +1 -0
  286. package/src/lib/primitives.ts +1 -0
  287. package/src/lib/retries.ts +1 -0
  288. package/src/lib/schemas.ts +1 -0
  289. package/src/lib/sdks.ts +1 -0
  290. package/src/lib/security.ts +1 -0
  291. package/src/lib/url.ts +1 -0
  292. package/src/models/errors/cart-add-line.ts +1 -0
  293. package/src/models/errors/cart-clear.ts +1 -0
  294. package/src/models/errors/cart-create.ts +1 -0
  295. package/src/models/errors/cart-get.ts +1 -0
  296. package/src/models/errors/cart-remove-line.ts +1 -0
  297. package/src/models/errors/cart-update-line.ts +1 -0
  298. package/src/models/errors/checkout-create-session.ts +1 -0
  299. package/src/models/errors/health-check.ts +1 -0
  300. package/src/models/errors/http-client-errors.ts +1 -0
  301. package/src/models/errors/index.ts +1 -0
  302. package/src/models/errors/products-get-all.ts +1 -0
  303. package/src/models/errors/products-get-by-id.ts +1 -0
  304. package/src/models/errors/quickshops-default-error.ts +1 -0
  305. package/src/models/errors/quickshops-error.ts +1 -0
  306. package/src/models/errors/response-validation-error.ts +1 -0
  307. package/src/models/errors/sdk-validation-error.ts +1 -0
  308. package/src/models/errors/store-get.ts +1 -0
  309. package/src/models/errors/subscription-create-portal-session.ts +1 -0
  310. package/src/models/index.ts +1 -0
  311. package/src/models/operations/cart-add-line.ts +1 -0
  312. package/src/models/operations/cart-clear.ts +1 -0
  313. package/src/models/operations/cart-create.ts +1 -0
  314. package/src/models/operations/cart-get.ts +1 -0
  315. package/src/models/operations/cart-remove-line.ts +1 -0
  316. package/src/models/operations/cart-update-line.ts +1 -0
  317. package/src/models/operations/checkout-create-session.ts +1 -0
  318. package/src/models/operations/health-check.ts +1 -0
  319. package/src/models/operations/index.ts +1 -0
  320. package/src/models/operations/products-get-all.ts +1 -0
  321. package/src/models/operations/products-get-by-id.ts +1 -0
  322. package/src/models/operations/store-get.ts +1 -0
  323. package/src/models/operations/subscription-create-portal-session.ts +1 -0
  324. package/src/models/security.ts +1 -0
  325. package/src/sdk/cart.ts +1 -0
  326. package/src/sdk/checkout.ts +1 -0
  327. package/src/sdk/health.ts +1 -0
  328. package/src/sdk/index.ts +1 -0
  329. package/src/sdk/products.ts +1 -0
  330. package/src/sdk/sdk.ts +1 -0
  331. package/src/sdk/store.ts +1 -0
  332. package/src/sdk/subscription.ts +1 -0
  333. package/src/types/async.ts +1 -0
  334. package/src/types/blobs.ts +1 -0
  335. package/src/types/const-date-time.ts +1 -0
  336. package/src/types/default-to-zero-value.ts +1 -0
  337. package/src/types/enums.ts +1 -0
  338. package/src/types/fp.ts +1 -0
  339. package/src/types/index.ts +1 -0
  340. package/src/types/operations.ts +1 -0
  341. package/src/types/primitives.ts +1 -0
  342. package/src/types/rfcdate.ts +1 -0
  343. package/src/types/smart-union.ts +1 -0
  344. package/src/types/streams.ts +1 -0
  345. package/src/types/unrecognized.ts +1 -0
package/README.md CHANGED
@@ -1,45 +1,34 @@
1
- # quickshops
1
+ # @quickshops/sdk
2
2
 
3
- Developer-friendly & type-safe Typescript SDK specifically catered to leverage *quickshops* API.
3
+ Developer-friendly and type-safe TypeScript SDK for the *QuickShops Headless API*.
4
4
 
5
- [![Built by Speakeasy](https://img.shields.io/badge/Built_by-SPEAKEASY-374151?style=for-the-badge&labelColor=f3f4f6)](https://www.speakeasy.com/?utm_source=quickshops&utm_campaign=typescript)
6
- [![License: MIT](https://img.shields.io/badge/LICENSE_//_MIT-3b5bdb?style=for-the-badge&labelColor=eff6ff)](https://opensource.org/licenses/MIT)
5
+ [![Made by QuickShops](https://img.shields.io/badge/Made_by-QuickShops-111827?style=for-the-badge&labelColor=f9fafb)](https://quickshops.app)
6
+ [![License: Proprietary](https://img.shields.io/badge/License-Proprietary-374151?style=for-the-badge&labelColor=f3f4f6)](https://quickshops.app)
7
7
 
8
-
9
- <br /><br />
10
- > [!IMPORTANT]
11
- > This SDK is not yet ready for production use. To complete setup please follow the steps outlined in your [workspace](https://app.speakeasy.com/org/quickshops-hv1/quickshops-sdk). Delete this section before > publishing to a package manager.
12
-
13
- <!-- Start Summary [summary] -->
14
8
  ## Summary
15
9
 
16
- Quickshops Headless API: Headless commerce API for Quickshops starter templates and external storefronts.
17
- <!-- End Summary [summary] -->
10
+ QuickShops Headless API for starter templates and custom storefronts. Use this SDK server-side to fetch products, manage carts, start checkout, and handle subscriptions.
11
+
12
+ This package is **closed source** and proprietary to QuickShops. Full docs: [docs.quickshops.app](https://docs.quickshops.app/sdk/installation).
18
13
 
19
- <!-- Start Table of Contents [toc] -->
20
14
  ## Table of Contents
21
- <!-- $toc-max-depth=2 -->
22
- * [quickshops](#quickshops)
23
- * [SDK Installation](#sdk-installation)
24
- * [Requirements](#requirements)
25
- * [SDK Example Usage](#sdk-example-usage)
26
- * [Authentication](#authentication)
27
- * [Available Resources and Operations](#available-resources-and-operations)
28
- * [Standalone functions](#standalone-functions)
29
- * [Retries](#retries)
30
- * [Error Handling](#error-handling)
31
- * [Custom HTTP Client](#custom-http-client)
32
- * [Debugging](#debugging)
33
- * [Development](#development)
34
- * [Maturity](#maturity)
35
- * [Contributions](#contributions)
36
-
37
- <!-- End Table of Contents [toc] -->
38
-
39
- <!-- Start SDK Installation [installation] -->
15
+
16
+ - [@quickshops/sdk](#quickshops-sdk)
17
+ - [Summary](#summary)
18
+ - [Table of Contents](#table-of-contents)
19
+ - [SDK Installation](#sdk-installation)
20
+ - [Requirements](#requirements)
21
+ - [SDK Example Usage](#sdk-example-usage)
22
+ - [Authentication](#authentication)
23
+ - [Available Resources and Operations](#available-resources-and-operations)
24
+ - [Error Handling](#error-handling)
25
+ - [Development](#development)
26
+ - [Maturity](#maturity)
27
+ - [License](#license)
28
+
40
29
  ## SDK Installation
41
30
 
42
- The SDK can be installed with either [npm](https://www.npmjs.com/), [pnpm](https://pnpm.io/), [bun](https://bun.sh/) or [yarn](https://classic.yarnpkg.com/en/) package managers.
31
+ The SDK can be installed with [npm](https://www.npmjs.com/), [pnpm](https://pnpm.io/), [bun](https://bun.sh/), or [yarn](https://classic.yarnpkg.com/en/).
43
32
 
44
33
  ### NPM
45
34
 
@@ -66,17 +55,12 @@ yarn add @quickshops/sdk
66
55
  ```
67
56
 
68
57
  > [!NOTE]
69
- > This package is published as an ES Module (ESM) only. For applications using
70
- > CommonJS, use `await import("@quickshops/sdk")` to import and use this package.
71
- <!-- End SDK Installation [installation] -->
58
+ > This package is published as an ES Module (ESM) only. For CommonJS apps, use `await import("@quickshops/sdk")`.
72
59
 
73
- <!-- Start Requirements [requirements] -->
74
60
  ## Requirements
75
61
 
76
- For supported JavaScript runtimes, please consult [RUNTIMES.md](RUNTIMES.md).
77
- <!-- End Requirements [requirements] -->
62
+ For supported JavaScript runtimes, see [RUNTIMES.md](RUNTIMES.md).
78
63
 
79
- <!-- Start SDK Example Usage [usage] -->
80
64
  ## SDK Example Usage
81
65
 
82
66
  ### Example
@@ -84,403 +68,134 @@ For supported JavaScript runtimes, please consult [RUNTIMES.md](RUNTIMES.md).
84
68
  ```typescript
85
69
  import { Quickshops } from "@quickshops/sdk";
86
70
 
87
- const quickshops = new Quickshops({
88
- serverURL: "https://api.example.com",
89
- bearerAuth: process.env["QUICKSHOPS_BEARER_AUTH"] ?? "",
71
+ const qs = new Quickshops({
72
+ serverURL: "https://api.quickshops.app",
73
+ bearerAuth: process.env.HEADLESS_API_KEY!,
90
74
  });
91
75
 
92
76
  async function run() {
93
- const result = await quickshops.health.healthCheck();
94
-
95
- console.log(result);
77
+ const { data: products } = await qs.products.productsGetAll();
78
+ console.log(products);
96
79
  }
97
80
 
98
81
  run();
99
-
100
82
  ```
101
- <!-- End SDK Example Usage [usage] -->
102
83
 
103
- <!-- Start Authentication [security] -->
84
+ Use the SDK in server-only code (API routes, server actions, loaders). Never expose your API key to the browser.
85
+
104
86
  ## Authentication
105
87
 
106
88
  ### Per-Client Security Schemes
107
89
 
108
90
  This SDK supports the following security scheme globally:
109
91
 
110
- | Name | Type | Scheme | Environment Variable |
111
- | ------------ | ---- | ----------- | ------------------------ |
92
+ | Name | Type | Scheme | Environment Variable |
93
+ | --- | --- | --- | --- |
112
94
  | `bearerAuth` | http | HTTP Bearer | `QUICKSHOPS_BEARER_AUTH` |
113
95
 
114
- To authenticate with the API the `bearerAuth` parameter must be set when initializing the SDK client instance. For example:
96
+ Set `bearerAuth` when creating the client. API keys start with `qk_` and are sent as `Authorization: Bearer qk_...`.
97
+
115
98
  ```typescript
116
99
  import { Quickshops } from "@quickshops/sdk";
117
100
 
118
- const quickshops = new Quickshops({
119
- serverURL: "https://api.example.com",
120
- bearerAuth: process.env["QUICKSHOPS_BEARER_AUTH"] ?? "",
101
+ const qs = new Quickshops({
102
+ serverURL: "https://api.quickshops.app",
103
+ bearerAuth: process.env.HEADLESS_API_KEY!,
121
104
  });
122
105
 
123
- async function run() {
124
- const result = await quickshops.health.healthCheck();
125
-
126
- console.log(result);
127
- }
128
-
129
- run();
130
-
106
+ const { data: store } = await qs.store.storeGet();
131
107
  ```
132
- <!-- End Authentication [security] -->
133
108
 
134
- <!-- Start Available Resources and Operations [operations] -->
109
+ The API base URL is `https://api.quickshops.app` (the SDK adds `/v1` to each path).
110
+
135
111
  ## Available Resources and Operations
136
112
 
137
113
  <details open>
138
114
  <summary>Available methods</summary>
139
115
 
140
- ### [Cart](docs/sdks/cart/README.md)
141
-
142
- * [cartGet](docs/sdks/cart/README.md#cartget) - Get cart
143
- * [cartClear](docs/sdks/cart/README.md#cartclear) - Clear cart
144
- * [cartCreate](docs/sdks/cart/README.md#cartcreate) - Create cart
145
- * [cartUpdateLine](docs/sdks/cart/README.md#cartupdateline) - Update cart line quantity
146
- * [cartRemoveLine](docs/sdks/cart/README.md#cartremoveline) - Remove cart line
147
- * [cartAddLine](docs/sdks/cart/README.md#cartaddline) - Add cart line
148
-
149
- ### [Checkout](docs/sdks/checkout/README.md)
150
-
151
- * [checkoutCreateSession](docs/sdks/checkout/README.md#checkoutcreatesession) - Create checkout session
152
-
153
- ### [Health](docs/sdks/health/README.md)
154
-
155
- * [healthCheck](docs/sdks/health/README.md#healthcheck) - Health check
156
-
157
- ### [Products](docs/sdks/products/README.md)
116
+ ### [Store](https://docs.quickshops.app/api/products)
158
117
 
159
- * [productsGetAll](docs/sdks/products/README.md#productsgetall) - List products
160
- * [productsGetById](docs/sdks/products/README.md#productsgetbyid) - Get product
118
+ * `storeGet` Get store for API key
161
119
 
162
- ### [Store](docs/sdks/store/README.md)
120
+ ### [Products](https://docs.quickshops.app/api/products)
163
121
 
164
- * [storeGet](docs/sdks/store/README.md#storeget) - Get store for API key
122
+ * `productsGetAll` List products
123
+ * `productsGetById` — Get product
165
124
 
166
- ### [Subscription](docs/sdks/subscription/README.md)
125
+ ### [Cart](https://docs.quickshops.app/api/cart)
167
126
 
168
- * [subscriptionCreatePortalSession](docs/sdks/subscription/README.md#subscriptioncreateportalsession) - Create subscription portal session
127
+ * `cartCreate` Create cart
128
+ * `cartGet` — Get cart
129
+ * `cartAddLine` — Add cart line
130
+ * `cartUpdateLine` — Update cart line quantity
131
+ * `cartRemoveLine` — Remove cart line
132
+ * `cartClear` — Clear cart
169
133
 
170
- </details>
171
- <!-- End Available Resources and Operations [operations] -->
172
-
173
- <!-- Start Standalone functions [standalone-funcs] -->
174
- ## Standalone functions
134
+ ### [Checkout](https://docs.quickshops.app/api/checkout)
175
135
 
176
- All the methods listed above are available as standalone functions. These
177
- functions are ideal for use in applications running in the browser, serverless
178
- runtimes or other environments where application bundle size is a primary
179
- concern. When using a bundler to build your application, all unused
180
- functionality will be either excluded from the final bundle or tree-shaken away.
136
+ * `checkoutCreateSession` Create checkout session
181
137
 
182
- To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
138
+ ### [Subscription](https://docs.quickshops.app/api/subscriptions)
183
139
 
184
- <details>
140
+ * `subscriptionCreatePortalSession` — Create subscription portal session
185
141
 
186
- <summary>Available standalone functions</summary>
142
+ ### [Health](https://docs.quickshops.app/api/overview)
187
143
 
188
- - [`cartCartAddLine`](docs/sdks/cart/README.md#cartaddline) - Add cart line
189
- - [`cartCartClear`](docs/sdks/cart/README.md#cartclear) - Clear cart
190
- - [`cartCartCreate`](docs/sdks/cart/README.md#cartcreate) - Create cart
191
- - [`cartCartGet`](docs/sdks/cart/README.md#cartget) - Get cart
192
- - [`cartCartRemoveLine`](docs/sdks/cart/README.md#cartremoveline) - Remove cart line
193
- - [`cartCartUpdateLine`](docs/sdks/cart/README.md#cartupdateline) - Update cart line quantity
194
- - [`checkoutCheckoutCreateSession`](docs/sdks/checkout/README.md#checkoutcreatesession) - Create checkout session
195
- - [`healthHealthCheck`](docs/sdks/health/README.md#healthcheck) - Health check
196
- - [`productsProductsGetAll`](docs/sdks/products/README.md#productsgetall) - List products
197
- - [`productsProductsGetById`](docs/sdks/products/README.md#productsgetbyid) - Get product
198
- - [`storeStoreGet`](docs/sdks/store/README.md#storeget) - Get store for API key
199
- - [`subscriptionSubscriptionCreatePortalSession`](docs/sdks/subscription/README.md#subscriptioncreateportalsession) - Create subscription portal session
144
+ * `healthCheck` Health check
200
145
 
201
146
  </details>
202
- <!-- End Standalone functions [standalone-funcs] -->
203
-
204
- <!-- Start Retries [retries] -->
205
- ## Retries
206
-
207
- Some of the endpoints in this SDK support retries. If you use the SDK without any configuration, it will fall back to the default retry strategy provided by the API. However, the default retry strategy can be overridden on a per-operation basis, or across the entire SDK.
208
-
209
- To change the default retry strategy for a single API call, simply provide a retryConfig object to the call:
210
- ```typescript
211
- import { Quickshops } from "@quickshops/sdk";
212
-
213
- const quickshops = new Quickshops({
214
- serverURL: "https://api.example.com",
215
- bearerAuth: process.env["QUICKSHOPS_BEARER_AUTH"] ?? "",
216
- });
217
-
218
- async function run() {
219
- const result = await quickshops.health.healthCheck({
220
- retries: {
221
- strategy: "backoff",
222
- backoff: {
223
- initialInterval: 1,
224
- maxInterval: 50,
225
- exponent: 1.1,
226
- maxElapsedTime: 100,
227
- },
228
- retryConnectionErrors: false,
229
- },
230
- });
231
-
232
- console.log(result);
233
- }
234
-
235
- run();
236
-
237
- ```
238
-
239
- If you'd like to override the default retry strategy for all operations that support retries, you can provide a retryConfig at SDK initialization:
240
- ```typescript
241
- import { Quickshops } from "@quickshops/sdk";
242
-
243
- const quickshops = new Quickshops({
244
- serverURL: "https://api.example.com",
245
- retryConfig: {
246
- strategy: "backoff",
247
- backoff: {
248
- initialInterval: 1,
249
- maxInterval: 50,
250
- exponent: 1.1,
251
- maxElapsedTime: 100,
252
- },
253
- retryConnectionErrors: false,
254
- },
255
- bearerAuth: process.env["QUICKSHOPS_BEARER_AUTH"] ?? "",
256
- });
257
-
258
- async function run() {
259
- const result = await quickshops.health.healthCheck();
260
-
261
- console.log(result);
262
- }
263
147
 
264
- run();
265
-
266
- ```
267
- <!-- End Retries [retries] -->
148
+ Method reference with request shapes: [docs.quickshops.app/sdk/installation](https://docs.quickshops.app/sdk/installation#method-reference).
268
149
 
269
- <!-- Start Error Handling [errors] -->
270
150
  ## Error Handling
271
151
 
272
- [`QuickshopsError`](./src/models/errors/quickshops-error.ts) is the base class for all HTTP error responses. It has the following properties:
152
+ [`QuickshopsError`](https://docs.quickshops.app/sdk/error-handling) is the base class for HTTP error responses.
273
153
 
274
- | Property | Type | Description |
275
- | ------------------- | ---------- | --------------------------------------------------------------------------------------- |
276
- | `error.message` | `string` | Error message |
277
- | `error.statusCode` | `number` | HTTP response status code eg `404` |
278
- | `error.headers` | `Headers` | HTTP response headers |
279
- | `error.body` | `string` | HTTP body. Can be empty string if no body is returned. |
280
- | `error.rawResponse` | `Response` | Raw HTTP response |
281
- | `error.data$` | | Optional. Some errors may contain structured data. [See Error Classes](#error-classes). |
154
+ | Property | Type | Description |
155
+ | --- | --- | --- |
156
+ | `error.message` | `string` | Error message |
157
+ | `error.statusCode` | `number` | HTTP status code, e.g. `404` |
158
+ | `error.headers` | `Headers` | Response headers |
159
+ | `error.body` | `string` | Response body |
160
+ | `error.rawResponse` | `Response` | Raw HTTP response |
161
+ | `error.data$` | `object` | Optional structured error payload |
282
162
 
283
163
  ### Example
164
+
284
165
  ```typescript
285
166
  import { Quickshops } from "@quickshops/sdk";
286
167
  import * as errors from "@quickshops/sdk/models/errors";
287
168
 
288
- const quickshops = new Quickshops({
289
- serverURL: "https://api.example.com",
290
- bearerAuth: process.env["QUICKSHOPS_BEARER_AUTH"] ?? "",
169
+ const qs = new Quickshops({
170
+ serverURL: "https://api.quickshops.app",
171
+ bearerAuth: process.env.HEADLESS_API_KEY!,
291
172
  });
292
173
 
293
- async function run() {
294
- try {
295
- const result = await quickshops.health.healthCheck();
296
-
297
- console.log(result);
298
- } catch (error) {
299
- // The base class for HTTP error responses
300
- if (error instanceof errors.QuickshopsError) {
301
- console.log(error.message);
302
- console.log(error.statusCode);
303
- console.log(error.body);
304
- console.log(error.headers);
305
-
306
- // Depending on the method different errors may be thrown
307
- if (error instanceof errors.HealthCheckUnauthorizedError) {
308
- console.log(error.data$.error); // string
309
- console.log(error.data$.code); // string
310
- }
311
- }
174
+ try {
175
+ await qs.products.productsGetById({ productId: "prod_123" });
176
+ } catch (error) {
177
+ if (error instanceof errors.QuickshopsError) {
178
+ console.log(error.statusCode, error.message);
312
179
  }
313
180
  }
314
-
315
- run();
316
-
317
- ```
318
-
319
- ### Error Classes
320
- **Primary error:**
321
- * [`QuickshopsError`](./src/models/errors/quickshops-error.ts): The base class for HTTP error responses.
322
-
323
- <details><summary>Less common errors (62)</summary>
324
-
325
- <br />
326
-
327
- **Network errors:**
328
- * [`ConnectionError`](./src/models/errors/http-client-errors.ts): HTTP client was unable to make a request to a server.
329
- * [`RequestTimeoutError`](./src/models/errors/http-client-errors.ts): HTTP request timed out due to an AbortSignal signal.
330
- * [`RequestAbortedError`](./src/models/errors/http-client-errors.ts): HTTP request was aborted by the client.
331
- * [`InvalidRequestError`](./src/models/errors/http-client-errors.ts): Any input used to create a request is invalid.
332
- * [`UnexpectedClientError`](./src/models/errors/http-client-errors.ts): Unrecognised or unexpected error.
333
-
334
-
335
- **Inherit from [`QuickshopsError`](./src/models/errors/quickshops-error.ts)**:
336
- * [`CartClearBadRequestError`](./src/models/errors/cart-clear-bad-request-error.ts): Response for status 400. Status code `400`. Applicable to 1 of 12 methods.*
337
- * [`CartCreateBadRequestError`](./src/models/errors/cart-create-bad-request-error.ts): Response for status 400. Status code `400`. Applicable to 1 of 12 methods.*
338
- * [`CartUpdateLineBadRequestError`](./src/models/errors/cart-update-line-bad-request-error.ts): Response for status 400. Status code `400`. Applicable to 1 of 12 methods.*
339
- * [`CartRemoveLineBadRequestError`](./src/models/errors/cart-remove-line-bad-request-error.ts): Response for status 400. Status code `400`. Applicable to 1 of 12 methods.*
340
- * [`CartAddLineBadRequestError`](./src/models/errors/cart-add-line-bad-request-error.ts): Response for status 400. Status code `400`. Applicable to 1 of 12 methods.*
341
- * [`CheckoutCreateSessionBadRequestError`](./src/models/errors/checkout-create-session-bad-request-error.ts): Response for status 400. Status code `400`. Applicable to 1 of 12 methods.*
342
- * [`SubscriptionCreatePortalSessionBadRequestError`](./src/models/errors/subscription-create-portal-session-bad-request-error.ts): Response for status 400. Status code `400`. Applicable to 1 of 12 methods.*
343
- * [`HealthCheckUnauthorizedError`](./src/models/errors/health-check-unauthorized-error.ts): Response for status 401. Status code `401`. Applicable to 1 of 12 methods.*
344
- * [`StoreGetUnauthorizedError`](./src/models/errors/store-get-unauthorized-error.ts): Response for status 401. Status code `401`. Applicable to 1 of 12 methods.*
345
- * [`ProductsGetAllUnauthorizedError`](./src/models/errors/products-get-all-unauthorized-error.ts): Response for status 401. Status code `401`. Applicable to 1 of 12 methods.*
346
- * [`ProductsGetByIdUnauthorizedError`](./src/models/errors/products-get-by-id-unauthorized-error.ts): Response for status 401. Status code `401`. Applicable to 1 of 12 methods.*
347
- * [`CartGetUnauthorizedError`](./src/models/errors/cart-get-unauthorized-error.ts): Response for status 401. Status code `401`. Applicable to 1 of 12 methods.*
348
- * [`CartClearUnauthorizedError`](./src/models/errors/cart-clear-unauthorized-error.ts): Response for status 401. Status code `401`. Applicable to 1 of 12 methods.*
349
- * [`CartCreateUnauthorizedError`](./src/models/errors/cart-create-unauthorized-error.ts): Response for status 401. Status code `401`. Applicable to 1 of 12 methods.*
350
- * [`CartUpdateLineUnauthorizedError`](./src/models/errors/cart-update-line-unauthorized-error.ts): Response for status 401. Status code `401`. Applicable to 1 of 12 methods.*
351
- * [`CartRemoveLineUnauthorizedError`](./src/models/errors/cart-remove-line-unauthorized-error.ts): Response for status 401. Status code `401`. Applicable to 1 of 12 methods.*
352
- * [`CartAddLineUnauthorizedError`](./src/models/errors/cart-add-line-unauthorized-error.ts): Response for status 401. Status code `401`. Applicable to 1 of 12 methods.*
353
- * [`CheckoutCreateSessionUnauthorizedError`](./src/models/errors/checkout-create-session-unauthorized-error.ts): Response for status 401. Status code `401`. Applicable to 1 of 12 methods.*
354
- * [`SubscriptionCreatePortalSessionUnauthorizedError`](./src/models/errors/subscription-create-portal-session-unauthorized-error.ts): Response for status 401. Status code `401`. Applicable to 1 of 12 methods.*
355
- * [`HealthCheckForbiddenError`](./src/models/errors/health-check-forbidden-error.ts): Response for status 403. Status code `403`. Applicable to 1 of 12 methods.*
356
- * [`StoreGetForbiddenError`](./src/models/errors/store-get-forbidden-error.ts): Response for status 403. Status code `403`. Applicable to 1 of 12 methods.*
357
- * [`ProductsGetAllForbiddenError`](./src/models/errors/products-get-all-forbidden-error.ts): Response for status 403. Status code `403`. Applicable to 1 of 12 methods.*
358
- * [`ProductsGetByIdForbiddenError`](./src/models/errors/products-get-by-id-forbidden-error.ts): Response for status 403. Status code `403`. Applicable to 1 of 12 methods.*
359
- * [`CartGetForbiddenError`](./src/models/errors/cart-get-forbidden-error.ts): Response for status 403. Status code `403`. Applicable to 1 of 12 methods.*
360
- * [`CartClearForbiddenError`](./src/models/errors/cart-clear-forbidden-error.ts): Response for status 403. Status code `403`. Applicable to 1 of 12 methods.*
361
- * [`CartCreateForbiddenError`](./src/models/errors/cart-create-forbidden-error.ts): Response for status 403. Status code `403`. Applicable to 1 of 12 methods.*
362
- * [`CartUpdateLineForbiddenError`](./src/models/errors/cart-update-line-forbidden-error.ts): Response for status 403. Status code `403`. Applicable to 1 of 12 methods.*
363
- * [`CartRemoveLineForbiddenError`](./src/models/errors/cart-remove-line-forbidden-error.ts): Response for status 403. Status code `403`. Applicable to 1 of 12 methods.*
364
- * [`CartAddLineForbiddenError`](./src/models/errors/cart-add-line-forbidden-error.ts): Response for status 403. Status code `403`. Applicable to 1 of 12 methods.*
365
- * [`CheckoutCreateSessionForbiddenError`](./src/models/errors/checkout-create-session-forbidden-error.ts): Response for status 403. Status code `403`. Applicable to 1 of 12 methods.*
366
- * [`SubscriptionCreatePortalSessionForbiddenError`](./src/models/errors/subscription-create-portal-session-forbidden-error.ts): Response for status 403. Status code `403`. Applicable to 1 of 12 methods.*
367
- * [`StoreGetNotFoundError`](./src/models/errors/store-get-not-found-error.ts): Response for status 404. Status code `404`. Applicable to 1 of 12 methods.*
368
- * [`ProductsGetByIdNotFoundError`](./src/models/errors/products-get-by-id-not-found-error.ts): Response for status 404. Status code `404`. Applicable to 1 of 12 methods.*
369
- * [`CartGetNotFoundError`](./src/models/errors/cart-get-not-found-error.ts): Response for status 404. Status code `404`. Applicable to 1 of 12 methods.*
370
- * [`CartUpdateLineNotFoundError`](./src/models/errors/cart-update-line-not-found-error.ts): Response for status 404. Status code `404`. Applicable to 1 of 12 methods.*
371
- * [`CartRemoveLineNotFoundError`](./src/models/errors/cart-remove-line-not-found-error.ts): Response for status 404. Status code `404`. Applicable to 1 of 12 methods.*
372
- * [`CartAddLineNotFoundError`](./src/models/errors/cart-add-line-not-found-error.ts): Response for status 404. Status code `404`. Applicable to 1 of 12 methods.*
373
- * [`CartClearConflictError`](./src/models/errors/cart-clear-conflict-error.ts): Response for status 409. Status code `409`. Applicable to 1 of 12 methods.*
374
- * [`CartCreateConflictError`](./src/models/errors/cart-create-conflict-error.ts): Response for status 409. Status code `409`. Applicable to 1 of 12 methods.*
375
- * [`CartUpdateLineConflictError`](./src/models/errors/cart-update-line-conflict-error.ts): Response for status 409. Status code `409`. Applicable to 1 of 12 methods.*
376
- * [`CartRemoveLineConflictError`](./src/models/errors/cart-remove-line-conflict-error.ts): Response for status 409. Status code `409`. Applicable to 1 of 12 methods.*
377
- * [`CartAddLineConflictError`](./src/models/errors/cart-add-line-conflict-error.ts): Response for status 409. Status code `409`. Applicable to 1 of 12 methods.*
378
- * [`CheckoutCreateSessionConflictError`](./src/models/errors/checkout-create-session-conflict-error.ts): Response for status 409. Status code `409`. Applicable to 1 of 12 methods.*
379
- * [`SubscriptionCreatePortalSessionConflictError`](./src/models/errors/subscription-create-portal-session-conflict-error.ts): Response for status 409. Status code `409`. Applicable to 1 of 12 methods.*
380
- * [`HealthCheckTooManyRequestsError`](./src/models/errors/health-check-too-many-requests-error.ts): Response for status 429. Status code `429`. Applicable to 1 of 12 methods.*
381
- * [`StoreGetTooManyRequestsError`](./src/models/errors/store-get-too-many-requests-error.ts): Response for status 429. Status code `429`. Applicable to 1 of 12 methods.*
382
- * [`ProductsGetAllTooManyRequestsError`](./src/models/errors/products-get-all-too-many-requests-error.ts): Response for status 429. Status code `429`. Applicable to 1 of 12 methods.*
383
- * [`ProductsGetByIdTooManyRequestsError`](./src/models/errors/products-get-by-id-too-many-requests-error.ts): Response for status 429. Status code `429`. Applicable to 1 of 12 methods.*
384
- * [`CartGetTooManyRequestsError`](./src/models/errors/cart-get-too-many-requests-error.ts): Response for status 429. Status code `429`. Applicable to 1 of 12 methods.*
385
- * [`CartClearTooManyRequestsError`](./src/models/errors/cart-clear-too-many-requests-error.ts): Response for status 429. Status code `429`. Applicable to 1 of 12 methods.*
386
- * [`CartCreateTooManyRequestsError`](./src/models/errors/cart-create-too-many-requests-error.ts): Response for status 429. Status code `429`. Applicable to 1 of 12 methods.*
387
- * [`CartUpdateLineTooManyRequestsError`](./src/models/errors/cart-update-line-too-many-requests-error.ts): Response for status 429. Status code `429`. Applicable to 1 of 12 methods.*
388
- * [`CartRemoveLineTooManyRequestsError`](./src/models/errors/cart-remove-line-too-many-requests-error.ts): Response for status 429. Status code `429`. Applicable to 1 of 12 methods.*
389
- * [`CartAddLineTooManyRequestsError`](./src/models/errors/cart-add-line-too-many-requests-error.ts): Response for status 429. Status code `429`. Applicable to 1 of 12 methods.*
390
- * [`CheckoutCreateSessionTooManyRequestsError`](./src/models/errors/checkout-create-session-too-many-requests-error.ts): Response for status 429. Status code `429`. Applicable to 1 of 12 methods.*
391
- * [`SubscriptionCreatePortalSessionTooManyRequestsError`](./src/models/errors/subscription-create-portal-session-too-many-requests-error.ts): Response for status 429. Status code `429`. Applicable to 1 of 12 methods.*
392
- * [`ResponseValidationError`](./src/models/errors/response-validation-error.ts): Type mismatch between the data returned from the server and the structure expected by the SDK. See `error.rawValue` for the raw value and `error.pretty()` for a nicely formatted multi-line string.
393
-
394
- </details>
395
-
396
- \* Check [the method documentation](#available-resources-and-operations) to see if the error is applicable.
397
- <!-- End Error Handling [errors] -->
398
-
399
- <!-- Start Custom HTTP Client [http-client] -->
400
- ## Custom HTTP Client
401
-
402
- The TypeScript SDK makes API calls using an `HTTPClient` that wraps the native
403
- [Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API). This
404
- client is a thin wrapper around `fetch` and provides the ability to attach hooks
405
- around the request lifecycle that can be used to modify the request or handle
406
- errors and response.
407
-
408
- The `HTTPClient` constructor takes an optional `fetcher` argument that can be
409
- used to integrate a third-party HTTP client or when writing tests to mock out
410
- the HTTP client and feed in fixtures.
411
-
412
- The following example shows how to:
413
- - route requests through a proxy server using [undici](https://www.npmjs.com/package/undici)'s ProxyAgent
414
- - use the `"beforeRequest"` hook to add a custom header and a timeout to requests
415
- - use the `"requestError"` hook to log errors
416
-
417
- ```typescript
418
- import { Quickshops } from "@quickshops/sdk";
419
- import { ProxyAgent } from "undici";
420
- import { HTTPClient } from "@quickshops/sdk/lib/http";
421
-
422
- const dispatcher = new ProxyAgent("http://proxy.example.com:8080");
423
-
424
- const httpClient = new HTTPClient({
425
- // 'fetcher' takes a function that has the same signature as native 'fetch'.
426
- fetcher: (input, init) =>
427
- // 'dispatcher' is specific to undici and not part of the standard Fetch API.
428
- fetch(input, { ...init, dispatcher } as RequestInit),
429
- });
430
-
431
- httpClient.addHook("beforeRequest", (request) => {
432
- const nextRequest = new Request(request, {
433
- signal: request.signal || AbortSignal.timeout(5000)
434
- });
435
-
436
- nextRequest.headers.set("x-custom-header", "custom value");
437
-
438
- return nextRequest;
439
- });
440
-
441
- httpClient.addHook("requestError", (error, request) => {
442
- console.group("Request Error");
443
- console.log("Reason:", `${error}`);
444
- console.log("Endpoint:", `${request.method} ${request.url}`);
445
- console.groupEnd();
446
- });
447
-
448
- const sdk = new Quickshops({ httpClient: httpClient });
449
181
  ```
450
- <!-- End Custom HTTP Client [http-client] -->
451
182
 
452
- <!-- Start Debugging [debug] -->
453
- ## Debugging
183
+ See [error handling](https://docs.quickshops.app/sdk/error-handling) for typed errors and retries.
454
184
 
455
- You can setup your SDK to emit debug logs for SDK requests and responses.
456
-
457
- You can pass a logger that matches `console`'s interface as an SDK option.
458
-
459
- > [!WARNING]
460
- > Beware that debug logging will reveal secrets, like API tokens in headers, in log messages printed to a console or files. It's recommended to use this feature only during local development and not in production.
461
-
462
- ```typescript
463
- import { Quickshops } from "@quickshops/sdk";
464
-
465
- const sdk = new Quickshops({ debugLogger: console });
466
- ```
185
+ # Development
467
186
 
468
- You can also enable a default debug logger by setting an environment variable `QUICKSHOPS_DEBUG` to true.
469
- <!-- End Debugging [debug] -->
187
+ ## Maturity
470
188
 
471
- <!-- Placeholder for Future Speakeasy SDK Sections -->
189
+ This SDK is in beta. There may be breaking changes between minor versions. Pin a specific package version in production.
472
190
 
473
- # Development
191
+ ## License
474
192
 
475
- ## Maturity
193
+ `@quickshops/sdk` is closed source software owned by QuickShops. All rights reserved.
476
194
 
477
- This SDK is in beta, and there may be breaking changes between versions without a major version update. Therefore, we recommend pinning usage
478
- to a specific package version. This way, you can install the same version each time without breaking changes unless you are intentionally
479
- looking for the latest version.
195
+ You may install and use this SDK only to build applications that integrate with QuickShops. You may not copy, modify, sublicense, or redistribute the SDK except as permitted by QuickShops.
480
196
 
481
- ## Contributions
197
+ Questions: [quickshops.app](https://quickshops.app)
482
198
 
483
- While we value open-source contributions to this SDK, this library is generated programmatically. Any manual changes added to internal files will be overwritten on the next generation.
484
- We look forward to hearing your feedback. Feel free to open a PR or an issue with a proof of concept and we'll do our best to include it in a future release.
199
+ ### Made by QuickShops
485
200
 
486
- ### SDK Created by [Speakeasy](https://www.speakeasy.com/?utm_source=quickshops&utm_campaign=typescript)
201
+ Published and maintained by [QuickShops](https://quickshops.app).
package/esm/core.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../src/core.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C;;;;;GAKG;AACH,qBAAa,cAAe,SAAQ,SAAS;CAAG"}
1
+ {"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../src/core.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C;;;;;GAKG;AACH,qBAAa,cAAe,SAAQ,SAAS;CAAG"}
package/esm/core.js CHANGED
@@ -1,5 +1,6 @@
1
1
  /*
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: c13268be3b0c
3
4
  */
4
5
  import { ClientSDK } from "./lib/sdks.js";
5
6
  /**
package/esm/core.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"core.js","sourceRoot":"","sources":["../src/core.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C;;;;;GAKG;AACH,MAAM,OAAO,cAAe,SAAQ,SAAS;CAAG"}
1
+ {"version":3,"file":"core.js","sourceRoot":"","sources":["../src/core.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C;;;;;GAKG;AACH,MAAM,OAAO,cAAe,SAAQ,SAAS;CAAG"}
@@ -1 +1 @@
1
- {"version":3,"file":"cart-cart-add-line.d.ts","sourceRoot":"","sources":["../../src/funcs/cart-cart-add-line.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAM5C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AACvE,OAAO,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AACxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAC9E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;GAEG;AACH,wBAAgB,eAAe,CAC7B,MAAM,EAAE,cAAc,EACtB,OAAO,EAAE,UAAU,CAAC,kBAAkB,E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AC,4BAA4B,GACnC,MAAM,CAAC,yBAAyB,GAChC,MAAM,CAAC,wBAAwB,GAC/B,MAAM,CAAC,wBAAwB,GAC/B,MAAM,CAAC,+BAA+B,GACtC,eAAe,GACf,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
@@ -1,5 +1,6 @@
1
1
  /*
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 5594f81977d0
3
4
  */
4
5
  import * as z from "zod/v4-mini";
5
6
  import { encodeJSON, encodeSimple } from "../lib/encodings.js";
@@ -1 +1 @@
1
- {"version":3,"file":"cart-cart-add-line.js","sourceRoot":"","sources":["../../src/funcs/cart-cart-add-line.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,CAAC,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAQ3C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AAIpD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAGxD;;GAEG;AACH,MAAM,UAAU,eAAe,CAC7B,MAAsB,EACtB,OAAsC,EACtC,OAAwB,EAmBxB;IACA,OAAO,IAAI,UAAU,CAAC,GAAG,CACvB,MAAM,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{"version":3,"file":"cart-cart-clear.d.ts","sourceRoot":"","sources":["../../src/funcs/cart-cart-clear.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAM5C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AACvE,OAAO,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AACxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAC9E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;GAEG;AACH,wBAAgB,aAAa,CAC3B,MAAM,EAAE,cAAc,EACtB,OAAO,EAAE,UAAU,CAAC,gBAAgB,EACpC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,iBAAiB,EAC1B,MAAM,CAAC,wBAAwB,GAC/B,MAAM,CAAC,0BAA0B,GACjC,MAAM,CAAC,uBAAuB,GAC9B,MAAM,CAAC,sBAAsB,GAC7B,MAAM,CAAC,6BAA6B,GACpC,eAAe,GACf,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
1
+ {"version":3,"file":"cart-cart-clear.d.ts","sourceRoot":"","sources":["../../src/funcs/cart-cart-clear.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAM5C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AACvE,OAAO,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AACxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAC9E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;GAEG;AACH,wBAAgB,aAAa,CAC3B,MAAM,EAAE,cAAc,EACtB,OAAO,EAAE,UAAU,CAAC,gBAAgB,EACpC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,iBAAiB,EAC1B,MAAM,CAAC,wBAAwB,GAC/B,MAAM,CAAC,0BAA0B,GACjC,MAAM,CAAC,uBAAuB,GAC9B,MAAM,CAAC,sBAAsB,GAC7B,MAAM,CAAC,6BAA6B,GACpC,eAAe,GACf,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
@@ -1,5 +1,6 @@
1
1
  /*
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: bc6723bf889b
3
4
  */
4
5
  import * as z from "zod/v4-mini";
5
6
  import { encodeSimple } from "../lib/encodings.js";