dub 0.62.4 → 0.63.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 (571) hide show
  1. package/README.md +40 -31
  2. package/bin/mcp-server.js +293 -147
  3. package/bin/mcp-server.js.map +70 -68
  4. package/dist/commonjs/funcs/analyticsRetrieve.d.ts +3 -2
  5. package/dist/commonjs/funcs/analyticsRetrieve.d.ts.map +1 -1
  6. package/dist/commonjs/funcs/analyticsRetrieve.js +1 -1
  7. package/dist/commonjs/funcs/analyticsRetrieve.js.map +1 -1
  8. package/dist/commonjs/funcs/commissionsList.d.ts +3 -2
  9. package/dist/commonjs/funcs/commissionsList.d.ts.map +1 -1
  10. package/dist/commonjs/funcs/commissionsList.js +1 -1
  11. package/dist/commonjs/funcs/commissionsList.js.map +1 -1
  12. package/dist/commonjs/funcs/commissionsUpdate.d.ts +3 -2
  13. package/dist/commonjs/funcs/commissionsUpdate.d.ts.map +1 -1
  14. package/dist/commonjs/funcs/commissionsUpdate.js +1 -1
  15. package/dist/commonjs/funcs/commissionsUpdate.js.map +1 -1
  16. package/dist/commonjs/funcs/customersCreate.d.ts +3 -2
  17. package/dist/commonjs/funcs/customersCreate.d.ts.map +1 -1
  18. package/dist/commonjs/funcs/customersCreate.js +1 -1
  19. package/dist/commonjs/funcs/customersCreate.js.map +1 -1
  20. package/dist/commonjs/funcs/customersDelete.d.ts +3 -2
  21. package/dist/commonjs/funcs/customersDelete.d.ts.map +1 -1
  22. package/dist/commonjs/funcs/customersDelete.js +1 -1
  23. package/dist/commonjs/funcs/customersDelete.js.map +1 -1
  24. package/dist/commonjs/funcs/customersGet.d.ts +3 -2
  25. package/dist/commonjs/funcs/customersGet.d.ts.map +1 -1
  26. package/dist/commonjs/funcs/customersGet.js +1 -1
  27. package/dist/commonjs/funcs/customersGet.js.map +1 -1
  28. package/dist/commonjs/funcs/customersList.d.ts +3 -2
  29. package/dist/commonjs/funcs/customersList.d.ts.map +1 -1
  30. package/dist/commonjs/funcs/customersList.js +1 -1
  31. package/dist/commonjs/funcs/customersList.js.map +1 -1
  32. package/dist/commonjs/funcs/customersUpdate.d.ts +3 -2
  33. package/dist/commonjs/funcs/customersUpdate.d.ts.map +1 -1
  34. package/dist/commonjs/funcs/customersUpdate.js +1 -1
  35. package/dist/commonjs/funcs/customersUpdate.js.map +1 -1
  36. package/dist/commonjs/funcs/domainsCheckStatus.d.ts +3 -2
  37. package/dist/commonjs/funcs/domainsCheckStatus.d.ts.map +1 -1
  38. package/dist/commonjs/funcs/domainsCheckStatus.js +1 -1
  39. package/dist/commonjs/funcs/domainsCheckStatus.js.map +1 -1
  40. package/dist/commonjs/funcs/domainsCreate.d.ts +3 -2
  41. package/dist/commonjs/funcs/domainsCreate.d.ts.map +1 -1
  42. package/dist/commonjs/funcs/domainsCreate.js +1 -1
  43. package/dist/commonjs/funcs/domainsCreate.js.map +1 -1
  44. package/dist/commonjs/funcs/domainsDelete.d.ts +3 -2
  45. package/dist/commonjs/funcs/domainsDelete.d.ts.map +1 -1
  46. package/dist/commonjs/funcs/domainsDelete.js +1 -1
  47. package/dist/commonjs/funcs/domainsDelete.js.map +1 -1
  48. package/dist/commonjs/funcs/domainsList.d.ts +3 -2
  49. package/dist/commonjs/funcs/domainsList.d.ts.map +1 -1
  50. package/dist/commonjs/funcs/domainsList.js +1 -1
  51. package/dist/commonjs/funcs/domainsList.js.map +1 -1
  52. package/dist/commonjs/funcs/domainsRegister.d.ts +3 -2
  53. package/dist/commonjs/funcs/domainsRegister.d.ts.map +1 -1
  54. package/dist/commonjs/funcs/domainsRegister.js +1 -1
  55. package/dist/commonjs/funcs/domainsRegister.js.map +1 -1
  56. package/dist/commonjs/funcs/domainsUpdate.d.ts +3 -2
  57. package/dist/commonjs/funcs/domainsUpdate.d.ts.map +1 -1
  58. package/dist/commonjs/funcs/domainsUpdate.js +1 -1
  59. package/dist/commonjs/funcs/domainsUpdate.js.map +1 -1
  60. package/dist/commonjs/funcs/embedTokensReferrals.d.ts +3 -2
  61. package/dist/commonjs/funcs/embedTokensReferrals.d.ts.map +1 -1
  62. package/dist/commonjs/funcs/embedTokensReferrals.js +1 -1
  63. package/dist/commonjs/funcs/embedTokensReferrals.js.map +1 -1
  64. package/dist/commonjs/funcs/eventsList.d.ts +3 -2
  65. package/dist/commonjs/funcs/eventsList.d.ts.map +1 -1
  66. package/dist/commonjs/funcs/eventsList.js +1 -1
  67. package/dist/commonjs/funcs/eventsList.js.map +1 -1
  68. package/dist/commonjs/funcs/foldersCreate.d.ts +3 -2
  69. package/dist/commonjs/funcs/foldersCreate.d.ts.map +1 -1
  70. package/dist/commonjs/funcs/foldersCreate.js +1 -1
  71. package/dist/commonjs/funcs/foldersCreate.js.map +1 -1
  72. package/dist/commonjs/funcs/foldersDelete.d.ts +3 -2
  73. package/dist/commonjs/funcs/foldersDelete.d.ts.map +1 -1
  74. package/dist/commonjs/funcs/foldersDelete.js +1 -1
  75. package/dist/commonjs/funcs/foldersDelete.js.map +1 -1
  76. package/dist/commonjs/funcs/foldersList.d.ts +3 -2
  77. package/dist/commonjs/funcs/foldersList.d.ts.map +1 -1
  78. package/dist/commonjs/funcs/foldersList.js +1 -1
  79. package/dist/commonjs/funcs/foldersList.js.map +1 -1
  80. package/dist/commonjs/funcs/foldersUpdate.d.ts +3 -2
  81. package/dist/commonjs/funcs/foldersUpdate.d.ts.map +1 -1
  82. package/dist/commonjs/funcs/foldersUpdate.js +1 -1
  83. package/dist/commonjs/funcs/foldersUpdate.js.map +1 -1
  84. package/dist/commonjs/funcs/linksCount.d.ts +3 -2
  85. package/dist/commonjs/funcs/linksCount.d.ts.map +1 -1
  86. package/dist/commonjs/funcs/linksCount.js +1 -1
  87. package/dist/commonjs/funcs/linksCount.js.map +1 -1
  88. package/dist/commonjs/funcs/linksCreate.d.ts +3 -2
  89. package/dist/commonjs/funcs/linksCreate.d.ts.map +1 -1
  90. package/dist/commonjs/funcs/linksCreate.js +1 -1
  91. package/dist/commonjs/funcs/linksCreate.js.map +1 -1
  92. package/dist/commonjs/funcs/linksCreateMany.d.ts +3 -2
  93. package/dist/commonjs/funcs/linksCreateMany.d.ts.map +1 -1
  94. package/dist/commonjs/funcs/linksCreateMany.js +1 -1
  95. package/dist/commonjs/funcs/linksCreateMany.js.map +1 -1
  96. package/dist/commonjs/funcs/linksDelete.d.ts +3 -2
  97. package/dist/commonjs/funcs/linksDelete.d.ts.map +1 -1
  98. package/dist/commonjs/funcs/linksDelete.js +1 -1
  99. package/dist/commonjs/funcs/linksDelete.js.map +1 -1
  100. package/dist/commonjs/funcs/linksDeleteMany.d.ts +3 -2
  101. package/dist/commonjs/funcs/linksDeleteMany.d.ts.map +1 -1
  102. package/dist/commonjs/funcs/linksDeleteMany.js +1 -1
  103. package/dist/commonjs/funcs/linksDeleteMany.js.map +1 -1
  104. package/dist/commonjs/funcs/linksGet.d.ts +3 -2
  105. package/dist/commonjs/funcs/linksGet.d.ts.map +1 -1
  106. package/dist/commonjs/funcs/linksGet.js +1 -1
  107. package/dist/commonjs/funcs/linksGet.js.map +1 -1
  108. package/dist/commonjs/funcs/linksList.d.ts +3 -2
  109. package/dist/commonjs/funcs/linksList.d.ts.map +1 -1
  110. package/dist/commonjs/funcs/linksList.js +1 -1
  111. package/dist/commonjs/funcs/linksList.js.map +1 -1
  112. package/dist/commonjs/funcs/linksUpdate.d.ts +3 -2
  113. package/dist/commonjs/funcs/linksUpdate.d.ts.map +1 -1
  114. package/dist/commonjs/funcs/linksUpdate.js +1 -1
  115. package/dist/commonjs/funcs/linksUpdate.js.map +1 -1
  116. package/dist/commonjs/funcs/linksUpdateMany.d.ts +3 -2
  117. package/dist/commonjs/funcs/linksUpdateMany.d.ts.map +1 -1
  118. package/dist/commonjs/funcs/linksUpdateMany.js +1 -1
  119. package/dist/commonjs/funcs/linksUpdateMany.js.map +1 -1
  120. package/dist/commonjs/funcs/linksUpsert.d.ts +3 -2
  121. package/dist/commonjs/funcs/linksUpsert.d.ts.map +1 -1
  122. package/dist/commonjs/funcs/linksUpsert.js +1 -1
  123. package/dist/commonjs/funcs/linksUpsert.js.map +1 -1
  124. package/dist/commonjs/funcs/partnersAnalytics.d.ts +3 -2
  125. package/dist/commonjs/funcs/partnersAnalytics.d.ts.map +1 -1
  126. package/dist/commonjs/funcs/partnersAnalytics.js +1 -1
  127. package/dist/commonjs/funcs/partnersAnalytics.js.map +1 -1
  128. package/dist/commonjs/funcs/partnersCreate.d.ts +3 -2
  129. package/dist/commonjs/funcs/partnersCreate.d.ts.map +1 -1
  130. package/dist/commonjs/funcs/partnersCreate.js +1 -1
  131. package/dist/commonjs/funcs/partnersCreate.js.map +1 -1
  132. package/dist/commonjs/funcs/partnersCreateLink.d.ts +3 -2
  133. package/dist/commonjs/funcs/partnersCreateLink.d.ts.map +1 -1
  134. package/dist/commonjs/funcs/partnersCreateLink.js +1 -1
  135. package/dist/commonjs/funcs/partnersCreateLink.js.map +1 -1
  136. package/dist/commonjs/funcs/partnersRetrieveLinks.d.ts +3 -2
  137. package/dist/commonjs/funcs/partnersRetrieveLinks.d.ts.map +1 -1
  138. package/dist/commonjs/funcs/partnersRetrieveLinks.js +1 -1
  139. package/dist/commonjs/funcs/partnersRetrieveLinks.js.map +1 -1
  140. package/dist/commonjs/funcs/partnersUpsertLink.d.ts +3 -2
  141. package/dist/commonjs/funcs/partnersUpsertLink.d.ts.map +1 -1
  142. package/dist/commonjs/funcs/partnersUpsertLink.js +1 -1
  143. package/dist/commonjs/funcs/partnersUpsertLink.js.map +1 -1
  144. package/dist/commonjs/funcs/qrCodesGet.d.ts +3 -2
  145. package/dist/commonjs/funcs/qrCodesGet.d.ts.map +1 -1
  146. package/dist/commonjs/funcs/qrCodesGet.js +1 -1
  147. package/dist/commonjs/funcs/qrCodesGet.js.map +1 -1
  148. package/dist/commonjs/funcs/tagsCreate.d.ts +3 -2
  149. package/dist/commonjs/funcs/tagsCreate.d.ts.map +1 -1
  150. package/dist/commonjs/funcs/tagsCreate.js +1 -1
  151. package/dist/commonjs/funcs/tagsCreate.js.map +1 -1
  152. package/dist/commonjs/funcs/tagsDelete.d.ts +3 -2
  153. package/dist/commonjs/funcs/tagsDelete.d.ts.map +1 -1
  154. package/dist/commonjs/funcs/tagsDelete.js +1 -1
  155. package/dist/commonjs/funcs/tagsDelete.js.map +1 -1
  156. package/dist/commonjs/funcs/tagsList.d.ts +3 -2
  157. package/dist/commonjs/funcs/tagsList.d.ts.map +1 -1
  158. package/dist/commonjs/funcs/tagsList.js +1 -1
  159. package/dist/commonjs/funcs/tagsList.js.map +1 -1
  160. package/dist/commonjs/funcs/tagsUpdate.d.ts +3 -2
  161. package/dist/commonjs/funcs/tagsUpdate.d.ts.map +1 -1
  162. package/dist/commonjs/funcs/tagsUpdate.js +1 -1
  163. package/dist/commonjs/funcs/tagsUpdate.js.map +1 -1
  164. package/dist/commonjs/funcs/trackLead.d.ts +3 -2
  165. package/dist/commonjs/funcs/trackLead.d.ts.map +1 -1
  166. package/dist/commonjs/funcs/trackLead.js +1 -1
  167. package/dist/commonjs/funcs/trackLead.js.map +1 -1
  168. package/dist/commonjs/funcs/trackSale.d.ts +3 -2
  169. package/dist/commonjs/funcs/trackSale.d.ts.map +1 -1
  170. package/dist/commonjs/funcs/trackSale.js +1 -1
  171. package/dist/commonjs/funcs/trackSale.js.map +1 -1
  172. package/dist/commonjs/funcs/workspacesGet.d.ts +3 -2
  173. package/dist/commonjs/funcs/workspacesGet.d.ts.map +1 -1
  174. package/dist/commonjs/funcs/workspacesGet.js +1 -1
  175. package/dist/commonjs/funcs/workspacesGet.js.map +1 -1
  176. package/dist/commonjs/funcs/workspacesUpdate.d.ts +3 -2
  177. package/dist/commonjs/funcs/workspacesUpdate.d.ts.map +1 -1
  178. package/dist/commonjs/funcs/workspacesUpdate.js +1 -1
  179. package/dist/commonjs/funcs/workspacesUpdate.js.map +1 -1
  180. package/dist/commonjs/lib/config.d.ts +3 -3
  181. package/dist/commonjs/lib/config.js +3 -3
  182. package/dist/commonjs/lib/matchers.d.ts +3 -10
  183. package/dist/commonjs/lib/matchers.d.ts.map +1 -1
  184. package/dist/commonjs/lib/matchers.js +34 -32
  185. package/dist/commonjs/lib/matchers.js.map +1 -1
  186. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  187. package/dist/commonjs/mcp-server/server.js +1 -1
  188. package/dist/commonjs/models/components/partnerenrolledevent.d.ts +3 -0
  189. package/dist/commonjs/models/components/partnerenrolledevent.d.ts.map +1 -1
  190. package/dist/commonjs/models/components/partnerenrolledevent.js +1 -0
  191. package/dist/commonjs/models/components/partnerenrolledevent.js.map +1 -1
  192. package/dist/commonjs/models/errors/badrequest.d.ts +7 -2
  193. package/dist/commonjs/models/errors/badrequest.d.ts.map +1 -1
  194. package/dist/commonjs/models/errors/badrequest.js +12 -4
  195. package/dist/commonjs/models/errors/badrequest.js.map +1 -1
  196. package/dist/commonjs/models/errors/conflict.d.ts +7 -2
  197. package/dist/commonjs/models/errors/conflict.d.ts.map +1 -1
  198. package/dist/commonjs/models/errors/conflict.js +12 -4
  199. package/dist/commonjs/models/errors/conflict.js.map +1 -1
  200. package/dist/commonjs/models/errors/duberror.d.ts +19 -0
  201. package/dist/commonjs/models/errors/duberror.d.ts.map +1 -0
  202. package/dist/commonjs/models/errors/duberror.js +20 -0
  203. package/dist/commonjs/models/errors/duberror.js.map +1 -0
  204. package/dist/commonjs/models/errors/forbidden.d.ts +7 -2
  205. package/dist/commonjs/models/errors/forbidden.d.ts.map +1 -1
  206. package/dist/commonjs/models/errors/forbidden.js +12 -4
  207. package/dist/commonjs/models/errors/forbidden.js.map +1 -1
  208. package/dist/commonjs/models/errors/index.d.ts +1 -0
  209. package/dist/commonjs/models/errors/index.d.ts.map +1 -1
  210. package/dist/commonjs/models/errors/index.js +1 -0
  211. package/dist/commonjs/models/errors/index.js.map +1 -1
  212. package/dist/commonjs/models/errors/internalservererror.d.ts +7 -2
  213. package/dist/commonjs/models/errors/internalservererror.d.ts.map +1 -1
  214. package/dist/commonjs/models/errors/internalservererror.js +12 -4
  215. package/dist/commonjs/models/errors/internalservererror.js.map +1 -1
  216. package/dist/commonjs/models/errors/inviteexpired.d.ts +7 -2
  217. package/dist/commonjs/models/errors/inviteexpired.d.ts.map +1 -1
  218. package/dist/commonjs/models/errors/inviteexpired.js +12 -4
  219. package/dist/commonjs/models/errors/inviteexpired.js.map +1 -1
  220. package/dist/commonjs/models/errors/notfound.d.ts +7 -2
  221. package/dist/commonjs/models/errors/notfound.d.ts.map +1 -1
  222. package/dist/commonjs/models/errors/notfound.js +12 -4
  223. package/dist/commonjs/models/errors/notfound.js.map +1 -1
  224. package/dist/commonjs/models/errors/ratelimitexceeded.d.ts +7 -2
  225. package/dist/commonjs/models/errors/ratelimitexceeded.d.ts.map +1 -1
  226. package/dist/commonjs/models/errors/ratelimitexceeded.js +12 -4
  227. package/dist/commonjs/models/errors/ratelimitexceeded.js.map +1 -1
  228. package/dist/commonjs/models/errors/responsevalidationerror.d.ts +26 -0
  229. package/dist/commonjs/models/errors/responsevalidationerror.d.ts.map +1 -0
  230. package/dist/commonjs/models/errors/responsevalidationerror.js +56 -0
  231. package/dist/commonjs/models/errors/responsevalidationerror.js.map +1 -0
  232. package/dist/commonjs/models/errors/sdkerror.d.ts +8 -18
  233. package/dist/commonjs/models/errors/sdkerror.d.ts.map +1 -1
  234. package/dist/commonjs/models/errors/sdkerror.js +17 -10
  235. package/dist/commonjs/models/errors/sdkerror.js.map +1 -1
  236. package/dist/commonjs/models/errors/sdkvalidationerror.d.ts +1 -0
  237. package/dist/commonjs/models/errors/sdkvalidationerror.d.ts.map +1 -1
  238. package/dist/commonjs/models/errors/sdkvalidationerror.js +14 -0
  239. package/dist/commonjs/models/errors/sdkvalidationerror.js.map +1 -1
  240. package/dist/commonjs/models/errors/unauthorized.d.ts +7 -2
  241. package/dist/commonjs/models/errors/unauthorized.d.ts.map +1 -1
  242. package/dist/commonjs/models/errors/unauthorized.js +12 -4
  243. package/dist/commonjs/models/errors/unauthorized.js.map +1 -1
  244. package/dist/commonjs/models/errors/unprocessableentity.d.ts +7 -2
  245. package/dist/commonjs/models/errors/unprocessableentity.d.ts.map +1 -1
  246. package/dist/commonjs/models/errors/unprocessableentity.js +12 -4
  247. package/dist/commonjs/models/errors/unprocessableentity.js.map +1 -1
  248. package/dist/commonjs/models/operations/createpartner.d.ts +3 -0
  249. package/dist/commonjs/models/operations/createpartner.d.ts.map +1 -1
  250. package/dist/commonjs/models/operations/createpartner.js +1 -0
  251. package/dist/commonjs/models/operations/createpartner.js.map +1 -1
  252. package/dist/commonjs/models/operations/listevents.d.ts +3 -3
  253. package/dist/commonjs/models/operations/retrieveanalytics.d.ts +3 -3
  254. package/dist/esm/funcs/analyticsRetrieve.d.ts +3 -2
  255. package/dist/esm/funcs/analyticsRetrieve.d.ts.map +1 -1
  256. package/dist/esm/funcs/analyticsRetrieve.js +1 -1
  257. package/dist/esm/funcs/analyticsRetrieve.js.map +1 -1
  258. package/dist/esm/funcs/commissionsList.d.ts +3 -2
  259. package/dist/esm/funcs/commissionsList.d.ts.map +1 -1
  260. package/dist/esm/funcs/commissionsList.js +1 -1
  261. package/dist/esm/funcs/commissionsList.js.map +1 -1
  262. package/dist/esm/funcs/commissionsUpdate.d.ts +3 -2
  263. package/dist/esm/funcs/commissionsUpdate.d.ts.map +1 -1
  264. package/dist/esm/funcs/commissionsUpdate.js +1 -1
  265. package/dist/esm/funcs/commissionsUpdate.js.map +1 -1
  266. package/dist/esm/funcs/customersCreate.d.ts +3 -2
  267. package/dist/esm/funcs/customersCreate.d.ts.map +1 -1
  268. package/dist/esm/funcs/customersCreate.js +1 -1
  269. package/dist/esm/funcs/customersCreate.js.map +1 -1
  270. package/dist/esm/funcs/customersDelete.d.ts +3 -2
  271. package/dist/esm/funcs/customersDelete.d.ts.map +1 -1
  272. package/dist/esm/funcs/customersDelete.js +1 -1
  273. package/dist/esm/funcs/customersDelete.js.map +1 -1
  274. package/dist/esm/funcs/customersGet.d.ts +3 -2
  275. package/dist/esm/funcs/customersGet.d.ts.map +1 -1
  276. package/dist/esm/funcs/customersGet.js +1 -1
  277. package/dist/esm/funcs/customersGet.js.map +1 -1
  278. package/dist/esm/funcs/customersList.d.ts +3 -2
  279. package/dist/esm/funcs/customersList.d.ts.map +1 -1
  280. package/dist/esm/funcs/customersList.js +1 -1
  281. package/dist/esm/funcs/customersList.js.map +1 -1
  282. package/dist/esm/funcs/customersUpdate.d.ts +3 -2
  283. package/dist/esm/funcs/customersUpdate.d.ts.map +1 -1
  284. package/dist/esm/funcs/customersUpdate.js +1 -1
  285. package/dist/esm/funcs/customersUpdate.js.map +1 -1
  286. package/dist/esm/funcs/domainsCheckStatus.d.ts +3 -2
  287. package/dist/esm/funcs/domainsCheckStatus.d.ts.map +1 -1
  288. package/dist/esm/funcs/domainsCheckStatus.js +1 -1
  289. package/dist/esm/funcs/domainsCheckStatus.js.map +1 -1
  290. package/dist/esm/funcs/domainsCreate.d.ts +3 -2
  291. package/dist/esm/funcs/domainsCreate.d.ts.map +1 -1
  292. package/dist/esm/funcs/domainsCreate.js +1 -1
  293. package/dist/esm/funcs/domainsCreate.js.map +1 -1
  294. package/dist/esm/funcs/domainsDelete.d.ts +3 -2
  295. package/dist/esm/funcs/domainsDelete.d.ts.map +1 -1
  296. package/dist/esm/funcs/domainsDelete.js +1 -1
  297. package/dist/esm/funcs/domainsDelete.js.map +1 -1
  298. package/dist/esm/funcs/domainsList.d.ts +3 -2
  299. package/dist/esm/funcs/domainsList.d.ts.map +1 -1
  300. package/dist/esm/funcs/domainsList.js +1 -1
  301. package/dist/esm/funcs/domainsList.js.map +1 -1
  302. package/dist/esm/funcs/domainsRegister.d.ts +3 -2
  303. package/dist/esm/funcs/domainsRegister.d.ts.map +1 -1
  304. package/dist/esm/funcs/domainsRegister.js +1 -1
  305. package/dist/esm/funcs/domainsRegister.js.map +1 -1
  306. package/dist/esm/funcs/domainsUpdate.d.ts +3 -2
  307. package/dist/esm/funcs/domainsUpdate.d.ts.map +1 -1
  308. package/dist/esm/funcs/domainsUpdate.js +1 -1
  309. package/dist/esm/funcs/domainsUpdate.js.map +1 -1
  310. package/dist/esm/funcs/embedTokensReferrals.d.ts +3 -2
  311. package/dist/esm/funcs/embedTokensReferrals.d.ts.map +1 -1
  312. package/dist/esm/funcs/embedTokensReferrals.js +1 -1
  313. package/dist/esm/funcs/embedTokensReferrals.js.map +1 -1
  314. package/dist/esm/funcs/eventsList.d.ts +3 -2
  315. package/dist/esm/funcs/eventsList.d.ts.map +1 -1
  316. package/dist/esm/funcs/eventsList.js +1 -1
  317. package/dist/esm/funcs/eventsList.js.map +1 -1
  318. package/dist/esm/funcs/foldersCreate.d.ts +3 -2
  319. package/dist/esm/funcs/foldersCreate.d.ts.map +1 -1
  320. package/dist/esm/funcs/foldersCreate.js +1 -1
  321. package/dist/esm/funcs/foldersCreate.js.map +1 -1
  322. package/dist/esm/funcs/foldersDelete.d.ts +3 -2
  323. package/dist/esm/funcs/foldersDelete.d.ts.map +1 -1
  324. package/dist/esm/funcs/foldersDelete.js +1 -1
  325. package/dist/esm/funcs/foldersDelete.js.map +1 -1
  326. package/dist/esm/funcs/foldersList.d.ts +3 -2
  327. package/dist/esm/funcs/foldersList.d.ts.map +1 -1
  328. package/dist/esm/funcs/foldersList.js +1 -1
  329. package/dist/esm/funcs/foldersList.js.map +1 -1
  330. package/dist/esm/funcs/foldersUpdate.d.ts +3 -2
  331. package/dist/esm/funcs/foldersUpdate.d.ts.map +1 -1
  332. package/dist/esm/funcs/foldersUpdate.js +1 -1
  333. package/dist/esm/funcs/foldersUpdate.js.map +1 -1
  334. package/dist/esm/funcs/linksCount.d.ts +3 -2
  335. package/dist/esm/funcs/linksCount.d.ts.map +1 -1
  336. package/dist/esm/funcs/linksCount.js +1 -1
  337. package/dist/esm/funcs/linksCount.js.map +1 -1
  338. package/dist/esm/funcs/linksCreate.d.ts +3 -2
  339. package/dist/esm/funcs/linksCreate.d.ts.map +1 -1
  340. package/dist/esm/funcs/linksCreate.js +1 -1
  341. package/dist/esm/funcs/linksCreate.js.map +1 -1
  342. package/dist/esm/funcs/linksCreateMany.d.ts +3 -2
  343. package/dist/esm/funcs/linksCreateMany.d.ts.map +1 -1
  344. package/dist/esm/funcs/linksCreateMany.js +1 -1
  345. package/dist/esm/funcs/linksCreateMany.js.map +1 -1
  346. package/dist/esm/funcs/linksDelete.d.ts +3 -2
  347. package/dist/esm/funcs/linksDelete.d.ts.map +1 -1
  348. package/dist/esm/funcs/linksDelete.js +1 -1
  349. package/dist/esm/funcs/linksDelete.js.map +1 -1
  350. package/dist/esm/funcs/linksDeleteMany.d.ts +3 -2
  351. package/dist/esm/funcs/linksDeleteMany.d.ts.map +1 -1
  352. package/dist/esm/funcs/linksDeleteMany.js +1 -1
  353. package/dist/esm/funcs/linksDeleteMany.js.map +1 -1
  354. package/dist/esm/funcs/linksGet.d.ts +3 -2
  355. package/dist/esm/funcs/linksGet.d.ts.map +1 -1
  356. package/dist/esm/funcs/linksGet.js +1 -1
  357. package/dist/esm/funcs/linksGet.js.map +1 -1
  358. package/dist/esm/funcs/linksList.d.ts +3 -2
  359. package/dist/esm/funcs/linksList.d.ts.map +1 -1
  360. package/dist/esm/funcs/linksList.js +1 -1
  361. package/dist/esm/funcs/linksList.js.map +1 -1
  362. package/dist/esm/funcs/linksUpdate.d.ts +3 -2
  363. package/dist/esm/funcs/linksUpdate.d.ts.map +1 -1
  364. package/dist/esm/funcs/linksUpdate.js +1 -1
  365. package/dist/esm/funcs/linksUpdate.js.map +1 -1
  366. package/dist/esm/funcs/linksUpdateMany.d.ts +3 -2
  367. package/dist/esm/funcs/linksUpdateMany.d.ts.map +1 -1
  368. package/dist/esm/funcs/linksUpdateMany.js +1 -1
  369. package/dist/esm/funcs/linksUpdateMany.js.map +1 -1
  370. package/dist/esm/funcs/linksUpsert.d.ts +3 -2
  371. package/dist/esm/funcs/linksUpsert.d.ts.map +1 -1
  372. package/dist/esm/funcs/linksUpsert.js +1 -1
  373. package/dist/esm/funcs/linksUpsert.js.map +1 -1
  374. package/dist/esm/funcs/partnersAnalytics.d.ts +3 -2
  375. package/dist/esm/funcs/partnersAnalytics.d.ts.map +1 -1
  376. package/dist/esm/funcs/partnersAnalytics.js +1 -1
  377. package/dist/esm/funcs/partnersAnalytics.js.map +1 -1
  378. package/dist/esm/funcs/partnersCreate.d.ts +3 -2
  379. package/dist/esm/funcs/partnersCreate.d.ts.map +1 -1
  380. package/dist/esm/funcs/partnersCreate.js +1 -1
  381. package/dist/esm/funcs/partnersCreate.js.map +1 -1
  382. package/dist/esm/funcs/partnersCreateLink.d.ts +3 -2
  383. package/dist/esm/funcs/partnersCreateLink.d.ts.map +1 -1
  384. package/dist/esm/funcs/partnersCreateLink.js +1 -1
  385. package/dist/esm/funcs/partnersCreateLink.js.map +1 -1
  386. package/dist/esm/funcs/partnersRetrieveLinks.d.ts +3 -2
  387. package/dist/esm/funcs/partnersRetrieveLinks.d.ts.map +1 -1
  388. package/dist/esm/funcs/partnersRetrieveLinks.js +1 -1
  389. package/dist/esm/funcs/partnersRetrieveLinks.js.map +1 -1
  390. package/dist/esm/funcs/partnersUpsertLink.d.ts +3 -2
  391. package/dist/esm/funcs/partnersUpsertLink.d.ts.map +1 -1
  392. package/dist/esm/funcs/partnersUpsertLink.js +1 -1
  393. package/dist/esm/funcs/partnersUpsertLink.js.map +1 -1
  394. package/dist/esm/funcs/qrCodesGet.d.ts +3 -2
  395. package/dist/esm/funcs/qrCodesGet.d.ts.map +1 -1
  396. package/dist/esm/funcs/qrCodesGet.js +1 -1
  397. package/dist/esm/funcs/qrCodesGet.js.map +1 -1
  398. package/dist/esm/funcs/tagsCreate.d.ts +3 -2
  399. package/dist/esm/funcs/tagsCreate.d.ts.map +1 -1
  400. package/dist/esm/funcs/tagsCreate.js +1 -1
  401. package/dist/esm/funcs/tagsCreate.js.map +1 -1
  402. package/dist/esm/funcs/tagsDelete.d.ts +3 -2
  403. package/dist/esm/funcs/tagsDelete.d.ts.map +1 -1
  404. package/dist/esm/funcs/tagsDelete.js +1 -1
  405. package/dist/esm/funcs/tagsDelete.js.map +1 -1
  406. package/dist/esm/funcs/tagsList.d.ts +3 -2
  407. package/dist/esm/funcs/tagsList.d.ts.map +1 -1
  408. package/dist/esm/funcs/tagsList.js +1 -1
  409. package/dist/esm/funcs/tagsList.js.map +1 -1
  410. package/dist/esm/funcs/tagsUpdate.d.ts +3 -2
  411. package/dist/esm/funcs/tagsUpdate.d.ts.map +1 -1
  412. package/dist/esm/funcs/tagsUpdate.js +1 -1
  413. package/dist/esm/funcs/tagsUpdate.js.map +1 -1
  414. package/dist/esm/funcs/trackLead.d.ts +3 -2
  415. package/dist/esm/funcs/trackLead.d.ts.map +1 -1
  416. package/dist/esm/funcs/trackLead.js +1 -1
  417. package/dist/esm/funcs/trackLead.js.map +1 -1
  418. package/dist/esm/funcs/trackSale.d.ts +3 -2
  419. package/dist/esm/funcs/trackSale.d.ts.map +1 -1
  420. package/dist/esm/funcs/trackSale.js +1 -1
  421. package/dist/esm/funcs/trackSale.js.map +1 -1
  422. package/dist/esm/funcs/workspacesGet.d.ts +3 -2
  423. package/dist/esm/funcs/workspacesGet.d.ts.map +1 -1
  424. package/dist/esm/funcs/workspacesGet.js +1 -1
  425. package/dist/esm/funcs/workspacesGet.js.map +1 -1
  426. package/dist/esm/funcs/workspacesUpdate.d.ts +3 -2
  427. package/dist/esm/funcs/workspacesUpdate.d.ts.map +1 -1
  428. package/dist/esm/funcs/workspacesUpdate.js +1 -1
  429. package/dist/esm/funcs/workspacesUpdate.js.map +1 -1
  430. package/dist/esm/lib/config.d.ts +3 -3
  431. package/dist/esm/lib/config.js +3 -3
  432. package/dist/esm/lib/matchers.d.ts +3 -10
  433. package/dist/esm/lib/matchers.d.ts.map +1 -1
  434. package/dist/esm/lib/matchers.js +33 -30
  435. package/dist/esm/lib/matchers.js.map +1 -1
  436. package/dist/esm/mcp-server/mcp-server.js +1 -1
  437. package/dist/esm/mcp-server/server.js +1 -1
  438. package/dist/esm/models/components/partnerenrolledevent.d.ts +3 -0
  439. package/dist/esm/models/components/partnerenrolledevent.d.ts.map +1 -1
  440. package/dist/esm/models/components/partnerenrolledevent.js +1 -0
  441. package/dist/esm/models/components/partnerenrolledevent.js.map +1 -1
  442. package/dist/esm/models/errors/badrequest.d.ts +7 -2
  443. package/dist/esm/models/errors/badrequest.d.ts.map +1 -1
  444. package/dist/esm/models/errors/badrequest.js +12 -4
  445. package/dist/esm/models/errors/badrequest.js.map +1 -1
  446. package/dist/esm/models/errors/conflict.d.ts +7 -2
  447. package/dist/esm/models/errors/conflict.d.ts.map +1 -1
  448. package/dist/esm/models/errors/conflict.js +12 -4
  449. package/dist/esm/models/errors/conflict.js.map +1 -1
  450. package/dist/esm/models/errors/duberror.d.ts +19 -0
  451. package/dist/esm/models/errors/duberror.d.ts.map +1 -0
  452. package/dist/esm/models/errors/duberror.js +16 -0
  453. package/dist/esm/models/errors/duberror.js.map +1 -0
  454. package/dist/esm/models/errors/forbidden.d.ts +7 -2
  455. package/dist/esm/models/errors/forbidden.d.ts.map +1 -1
  456. package/dist/esm/models/errors/forbidden.js +12 -4
  457. package/dist/esm/models/errors/forbidden.js.map +1 -1
  458. package/dist/esm/models/errors/index.d.ts +1 -0
  459. package/dist/esm/models/errors/index.d.ts.map +1 -1
  460. package/dist/esm/models/errors/index.js +1 -0
  461. package/dist/esm/models/errors/index.js.map +1 -1
  462. package/dist/esm/models/errors/internalservererror.d.ts +7 -2
  463. package/dist/esm/models/errors/internalservererror.d.ts.map +1 -1
  464. package/dist/esm/models/errors/internalservererror.js +12 -4
  465. package/dist/esm/models/errors/internalservererror.js.map +1 -1
  466. package/dist/esm/models/errors/inviteexpired.d.ts +7 -2
  467. package/dist/esm/models/errors/inviteexpired.d.ts.map +1 -1
  468. package/dist/esm/models/errors/inviteexpired.js +12 -4
  469. package/dist/esm/models/errors/inviteexpired.js.map +1 -1
  470. package/dist/esm/models/errors/notfound.d.ts +7 -2
  471. package/dist/esm/models/errors/notfound.d.ts.map +1 -1
  472. package/dist/esm/models/errors/notfound.js +12 -4
  473. package/dist/esm/models/errors/notfound.js.map +1 -1
  474. package/dist/esm/models/errors/ratelimitexceeded.d.ts +7 -2
  475. package/dist/esm/models/errors/ratelimitexceeded.d.ts.map +1 -1
  476. package/dist/esm/models/errors/ratelimitexceeded.js +12 -4
  477. package/dist/esm/models/errors/ratelimitexceeded.js.map +1 -1
  478. package/dist/esm/models/errors/responsevalidationerror.d.ts +26 -0
  479. package/dist/esm/models/errors/responsevalidationerror.d.ts.map +1 -0
  480. package/dist/esm/models/errors/responsevalidationerror.js +29 -0
  481. package/dist/esm/models/errors/responsevalidationerror.js.map +1 -0
  482. package/dist/esm/models/errors/sdkerror.d.ts +8 -18
  483. package/dist/esm/models/errors/sdkerror.d.ts.map +1 -1
  484. package/dist/esm/models/errors/sdkerror.js +17 -10
  485. package/dist/esm/models/errors/sdkerror.js.map +1 -1
  486. package/dist/esm/models/errors/sdkvalidationerror.d.ts +1 -0
  487. package/dist/esm/models/errors/sdkvalidationerror.d.ts.map +1 -1
  488. package/dist/esm/models/errors/sdkvalidationerror.js +14 -0
  489. package/dist/esm/models/errors/sdkvalidationerror.js.map +1 -1
  490. package/dist/esm/models/errors/unauthorized.d.ts +7 -2
  491. package/dist/esm/models/errors/unauthorized.d.ts.map +1 -1
  492. package/dist/esm/models/errors/unauthorized.js +12 -4
  493. package/dist/esm/models/errors/unauthorized.js.map +1 -1
  494. package/dist/esm/models/errors/unprocessableentity.d.ts +7 -2
  495. package/dist/esm/models/errors/unprocessableentity.d.ts.map +1 -1
  496. package/dist/esm/models/errors/unprocessableentity.js +12 -4
  497. package/dist/esm/models/errors/unprocessableentity.js.map +1 -1
  498. package/dist/esm/models/operations/createpartner.d.ts +3 -0
  499. package/dist/esm/models/operations/createpartner.d.ts.map +1 -1
  500. package/dist/esm/models/operations/createpartner.js +1 -0
  501. package/dist/esm/models/operations/createpartner.js.map +1 -1
  502. package/dist/esm/models/operations/listevents.d.ts +3 -3
  503. package/dist/esm/models/operations/retrieveanalytics.d.ts +3 -3
  504. package/jsr.json +1 -1
  505. package/package.json +1 -1
  506. package/src/funcs/analyticsRetrieve.ts +21 -17
  507. package/src/funcs/commissionsList.ts +21 -17
  508. package/src/funcs/commissionsUpdate.ts +21 -17
  509. package/src/funcs/customersCreate.ts +21 -17
  510. package/src/funcs/customersDelete.ts +21 -17
  511. package/src/funcs/customersGet.ts +21 -17
  512. package/src/funcs/customersList.ts +21 -17
  513. package/src/funcs/customersUpdate.ts +21 -17
  514. package/src/funcs/domainsCheckStatus.ts +21 -17
  515. package/src/funcs/domainsCreate.ts +21 -17
  516. package/src/funcs/domainsDelete.ts +21 -17
  517. package/src/funcs/domainsList.ts +27 -22
  518. package/src/funcs/domainsRegister.ts +21 -17
  519. package/src/funcs/domainsUpdate.ts +21 -17
  520. package/src/funcs/embedTokensReferrals.ts +21 -17
  521. package/src/funcs/eventsList.ts +21 -17
  522. package/src/funcs/foldersCreate.ts +21 -17
  523. package/src/funcs/foldersDelete.ts +21 -17
  524. package/src/funcs/foldersList.ts +21 -17
  525. package/src/funcs/foldersUpdate.ts +21 -17
  526. package/src/funcs/linksCount.ts +21 -17
  527. package/src/funcs/linksCreate.ts +21 -17
  528. package/src/funcs/linksCreateMany.ts +21 -17
  529. package/src/funcs/linksDelete.ts +21 -17
  530. package/src/funcs/linksDeleteMany.ts +21 -17
  531. package/src/funcs/linksGet.ts +21 -17
  532. package/src/funcs/linksList.ts +27 -22
  533. package/src/funcs/linksUpdate.ts +21 -17
  534. package/src/funcs/linksUpdateMany.ts +21 -17
  535. package/src/funcs/linksUpsert.ts +21 -17
  536. package/src/funcs/partnersAnalytics.ts +21 -17
  537. package/src/funcs/partnersCreate.ts +21 -17
  538. package/src/funcs/partnersCreateLink.ts +21 -17
  539. package/src/funcs/partnersRetrieveLinks.ts +21 -17
  540. package/src/funcs/partnersUpsertLink.ts +21 -17
  541. package/src/funcs/qrCodesGet.ts +21 -17
  542. package/src/funcs/tagsCreate.ts +21 -17
  543. package/src/funcs/tagsDelete.ts +21 -17
  544. package/src/funcs/tagsList.ts +21 -17
  545. package/src/funcs/tagsUpdate.ts +21 -17
  546. package/src/funcs/trackLead.ts +21 -17
  547. package/src/funcs/trackSale.ts +21 -17
  548. package/src/funcs/workspacesGet.ts +21 -17
  549. package/src/funcs/workspacesUpdate.ts +21 -17
  550. package/src/lib/config.ts +3 -3
  551. package/src/lib/matchers.ts +44 -41
  552. package/src/mcp-server/mcp-server.ts +1 -1
  553. package/src/mcp-server/server.ts +1 -1
  554. package/src/models/components/partnerenrolledevent.ts +1 -0
  555. package/src/models/errors/badrequest.ts +15 -5
  556. package/src/models/errors/conflict.ts +15 -5
  557. package/src/models/errors/duberror.ts +35 -0
  558. package/src/models/errors/forbidden.ts +15 -5
  559. package/src/models/errors/index.ts +1 -0
  560. package/src/models/errors/internalservererror.ts +15 -5
  561. package/src/models/errors/inviteexpired.ts +15 -5
  562. package/src/models/errors/notfound.ts +15 -5
  563. package/src/models/errors/ratelimitexceeded.ts +15 -5
  564. package/src/models/errors/responsevalidationerror.ts +50 -0
  565. package/src/models/errors/sdkerror.ts +23 -31
  566. package/src/models/errors/sdkvalidationerror.ts +12 -0
  567. package/src/models/errors/unauthorized.ts +15 -5
  568. package/src/models/errors/unprocessableentity.ts +15 -5
  569. package/src/models/operations/createpartner.ts +1 -0
  570. package/src/models/operations/listevents.ts +3 -3
  571. package/src/models/operations/retrieveanalytics.ts +3 -3
package/bin/mcp-server.js CHANGED
@@ -34264,9 +34264,9 @@ var init_config = __esm(() => {
34264
34264
  SDK_METADATA = {
34265
34265
  language: "typescript",
34266
34266
  openapiDocVersion: "0.0.1",
34267
- sdkVersion: "0.62.4",
34268
- genVersion: "2.621.3",
34269
- userAgent: "speakeasy-sdk/typescript 0.62.4 2.621.3 0.0.1 dub"
34267
+ sdkVersion: "0.63.0",
34268
+ genVersion: "2.623.0",
34269
+ userAgent: "speakeasy-sdk/typescript 0.63.0 2.623.0 0.0.1 dub"
34270
34270
  };
34271
34271
  });
34272
34272
 
@@ -35215,25 +35215,23 @@ var init_tools = __esm(() => {
35215
35215
  init_shared();
35216
35216
  });
35217
35217
 
35218
- // src/models/errors/sdkerror.ts
35219
- var SDKError;
35220
- var init_sdkerror = __esm(() => {
35221
- SDKError = class SDKError extends Error {
35218
+ // src/models/errors/duberror.ts
35219
+ var DubError;
35220
+ var init_duberror = __esm(() => {
35221
+ DubError = class DubError extends Error {
35222
35222
  statusCode;
35223
- contentType;
35224
35223
  body;
35224
+ headers;
35225
+ contentType;
35225
35226
  rawResponse;
35226
- constructor(message, rawResponse, body = "") {
35227
- const statusCode = rawResponse.status;
35228
- const contentType2 = rawResponse.headers.get("content-type") || "";
35229
- const bodyString = body.length > 0 ? `
35230
- ${body}` : "";
35231
- super(`${message}: Status ${statusCode} Content-Type ${contentType2} Body ${bodyString}`);
35232
- this.body = body;
35233
- this.rawResponse = rawResponse;
35234
- this.statusCode = statusCode;
35235
- this.contentType = contentType2;
35236
- this.name = "SDKError";
35227
+ constructor(message, httpMeta) {
35228
+ super(message);
35229
+ this.statusCode = httpMeta.response.status;
35230
+ this.body = httpMeta.body;
35231
+ this.headers = httpMeta.response.headers;
35232
+ this.contentType = httpMeta.response.headers.get("content-type") || "";
35233
+ this.rawResponse = httpMeta.response;
35234
+ this.name = "DubError";
35237
35235
  }
35238
35236
  };
35239
35237
  });
@@ -35296,6 +35294,19 @@ var init_sdkvalidationerror = __esm(() => {
35296
35294
  SDKValidationError = class SDKValidationError extends Error {
35297
35295
  rawValue;
35298
35296
  rawMessage;
35297
+ static [Symbol.hasInstance](instance) {
35298
+ if (!(instance instanceof Error))
35299
+ return false;
35300
+ if (!("rawValue" in instance))
35301
+ return false;
35302
+ if (!("rawMessage" in instance))
35303
+ return false;
35304
+ if (!("pretty" in instance))
35305
+ return false;
35306
+ if (typeof instance.pretty !== "function")
35307
+ return false;
35308
+ return true;
35309
+ }
35299
35310
  constructor(message, cause, rawValue) {
35300
35311
  super(`${message}: ${cause}`);
35301
35312
  this.name = "SDKValidationError";
@@ -35314,16 +35325,56 @@ ${formatZodError(this.cause)}`;
35314
35325
  };
35315
35326
  });
35316
35327
 
35317
- // src/lib/schemas.ts
35318
- function safeParse(rawValue, fn, errorMessage) {
35319
- try {
35320
- return OK2(fn(rawValue));
35321
- } catch (err) {
35322
- return ERR(new SDKValidationError(errorMessage, err, rawValue));
35323
- }
35324
- }
35325
- var init_schemas = __esm(() => {
35328
+ // src/models/errors/responsevalidationerror.ts
35329
+ var ResponseValidationError;
35330
+ var init_responsevalidationerror = __esm(() => {
35331
+ init_esm();
35332
+ init_duberror();
35326
35333
  init_sdkvalidationerror();
35334
+ ResponseValidationError = class ResponseValidationError extends DubError {
35335
+ rawValue;
35336
+ rawMessage;
35337
+ constructor(message, extra) {
35338
+ super(message, extra);
35339
+ this.name = "ResponseValidationError";
35340
+ this.cause = extra.cause;
35341
+ this.rawValue = extra.rawValue;
35342
+ this.rawMessage = extra.rawMessage;
35343
+ }
35344
+ pretty() {
35345
+ if (this.cause instanceof ZodError) {
35346
+ return `${this.rawMessage}
35347
+ ${formatZodError(this.cause)}`;
35348
+ } else {
35349
+ return this.toString();
35350
+ }
35351
+ }
35352
+ };
35353
+ });
35354
+
35355
+ // src/models/errors/sdkerror.ts
35356
+ var SDKError;
35357
+ var init_sdkerror = __esm(() => {
35358
+ init_duberror();
35359
+ SDKError = class SDKError extends DubError {
35360
+ constructor(message, httpMeta) {
35361
+ if (message) {
35362
+ message += `: `;
35363
+ }
35364
+ message += `Status ${httpMeta.response.status}`;
35365
+ const contentType2 = httpMeta.response.headers.get("content-type") || `""`;
35366
+ if (contentType2 !== "application/json") {
35367
+ message += ` Content-Type ${contentType2.includes(" ") ? `"${contentType2}"` : contentType2}`;
35368
+ }
35369
+ const body = httpMeta.body || `""`;
35370
+ message += body.length > 100 ? `
35371
+ ` : " ";
35372
+ message += `Body ${body}`;
35373
+ message = message.trim();
35374
+ super(message, httpMeta);
35375
+ this.name = "SDKError";
35376
+ }
35377
+ };
35327
35378
  });
35328
35379
 
35329
35380
  // src/lib/matchers.ts
@@ -35340,7 +35391,7 @@ function fail(codes) {
35340
35391
  return { enc: "fail", codes };
35341
35392
  }
35342
35393
  function match(...matchers) {
35343
- return async function matchFunc(response, options) {
35394
+ return async function matchFunc(response, request, options) {
35344
35395
  let raw;
35345
35396
  let matcher;
35346
35397
  for (const match2 of matchers) {
@@ -35355,16 +35406,21 @@ function match(...matchers) {
35355
35406
  }
35356
35407
  }
35357
35408
  if (!matcher) {
35358
- const responseBody = await response.text();
35359
35409
  return [{
35360
35410
  ok: false,
35361
- error: new SDKError("Unexpected API response status or content-type", response, responseBody)
35362
- }, responseBody];
35411
+ error: new SDKError("Unexpected Status or Content-Type", {
35412
+ response,
35413
+ request,
35414
+ body: await response.text().catch(() => "")
35415
+ })
35416
+ }, raw];
35363
35417
  }
35364
35418
  const encoding = matcher.enc;
35419
+ let body = "";
35365
35420
  switch (encoding) {
35366
35421
  case "json":
35367
- raw = await response.json();
35422
+ body = await response.text();
35423
+ raw = JSON.parse(body);
35368
35424
  break;
35369
35425
  case "jsonl":
35370
35426
  raw = response.body;
@@ -35376,16 +35432,19 @@ function match(...matchers) {
35376
35432
  raw = response.body;
35377
35433
  break;
35378
35434
  case "text":
35379
- raw = await response.text();
35435
+ body = await response.text();
35436
+ raw = body;
35380
35437
  break;
35381
35438
  case "sse":
35382
35439
  raw = response.body;
35383
35440
  break;
35384
35441
  case "nil":
35385
- raw = await discardResponseBody(response);
35442
+ body = await response.text();
35443
+ raw = undefined;
35386
35444
  break;
35387
35445
  case "fail":
35388
- raw = await response.text();
35446
+ body = await response.text();
35447
+ raw = body;
35389
35448
  break;
35390
35449
  default:
35391
35450
  throw new Error(`Unsupported response type: ${encoding}`);
@@ -35393,7 +35452,7 @@ function match(...matchers) {
35393
35452
  if (matcher.enc === "fail") {
35394
35453
  return [{
35395
35454
  ok: false,
35396
- error: new SDKError("API error occurred", response, typeof raw === "string" ? raw : "")
35455
+ error: new SDKError("API error occurred", { request, response, body })
35397
35456
  }, raw];
35398
35457
  }
35399
35458
  const resultKey = matcher.key || options?.resultKey;
@@ -35402,7 +35461,10 @@ function match(...matchers) {
35402
35461
  data = {
35403
35462
  ...options?.extraFields,
35404
35463
  ...matcher.hdrs ? { Headers: unpackHeaders(response.headers) } : null,
35405
- ...isPlainObject(raw) ? raw : null
35464
+ ...isPlainObject(raw) ? raw : null,
35465
+ request$: request,
35466
+ response$: response,
35467
+ body$: body
35406
35468
  };
35407
35469
  } else if (resultKey) {
35408
35470
  data = {
@@ -35420,11 +35482,11 @@ function match(...matchers) {
35420
35482
  data = raw;
35421
35483
  }
35422
35484
  if ("err" in matcher) {
35423
- const result = safeParse(data, (v2) => matcher.schema.parse(v2), "Response validation failed");
35485
+ const result = safeParseResponse(data, (v2) => matcher.schema.parse(v2), "Response validation failed", { request, response, body });
35424
35486
  return [result.ok ? { ok: false, error: result.value } : result, raw];
35425
35487
  } else {
35426
35488
  return [
35427
- safeParse(data, (v2) => matcher.schema.parse(v2), "Response validation failed"),
35489
+ safeParseResponse(data, (v2) => matcher.schema.parse(v2), "Response validation failed", { request, response, body }),
35428
35490
  raw
35429
35491
  ];
35430
35492
  }
@@ -35437,26 +35499,23 @@ function unpackHeaders(headers) {
35437
35499
  }
35438
35500
  return out;
35439
35501
  }
35440
- async function discardResponseBody(res) {
35441
- const reader = res.body?.getReader();
35442
- if (reader == null) {
35443
- return;
35444
- }
35502
+ function safeParseResponse(rawValue, fn, errorMessage, httpMeta) {
35445
35503
  try {
35446
- let done = false;
35447
- while (!done) {
35448
- const res2 = await reader.read();
35449
- done = res2.done;
35450
- }
35451
- } finally {
35452
- reader.releaseLock();
35504
+ return OK2(fn(rawValue));
35505
+ } catch (err) {
35506
+ return ERR(new ResponseValidationError(errorMessage, {
35507
+ cause: err,
35508
+ rawValue,
35509
+ rawMessage: errorMessage,
35510
+ ...httpMeta
35511
+ }));
35453
35512
  }
35454
35513
  }
35455
35514
  var DEFAULT_CONTENT_TYPES, headerValRE;
35456
35515
  var init_matchers = __esm(() => {
35516
+ init_responsevalidationerror();
35457
35517
  init_sdkerror();
35458
35518
  init_http();
35459
- init_schemas();
35460
35519
  DEFAULT_CONTENT_TYPES = {
35461
35520
  jsonl: "application/jsonl",
35462
35521
  json: "application/json",
@@ -35498,6 +35557,18 @@ function compactMap(values) {
35498
35557
  var init_primitives = () => {
35499
35558
  };
35500
35559
 
35560
+ // src/lib/schemas.ts
35561
+ function safeParse(rawValue, fn, errorMessage) {
35562
+ try {
35563
+ return OK2(fn(rawValue));
35564
+ } catch (err) {
35565
+ return ERR(new SDKValidationError(errorMessage, err, rawValue));
35566
+ }
35567
+ }
35568
+ var init_schemas = __esm(() => {
35569
+ init_sdkvalidationerror();
35570
+ });
35571
+
35501
35572
  // src/lib/security.ts
35502
35573
  function resolveSecurity(...options) {
35503
35574
  const state = {
@@ -35628,15 +35699,16 @@ var Code, BadRequest, Code$inboundSchema, Code$outboundSchema, Code$, ErrorT$inb
35628
35699
  var init_badrequest = __esm(() => {
35629
35700
  init_esm();
35630
35701
  init_primitives();
35702
+ init_duberror();
35631
35703
  Code = {
35632
35704
  BadRequest: "bad_request"
35633
35705
  };
35634
- BadRequest = class BadRequest extends Error {
35706
+ BadRequest = class BadRequest extends DubError {
35635
35707
  error;
35636
35708
  data$;
35637
- constructor(err) {
35709
+ constructor(err, httpMeta) {
35638
35710
  const message = err.error?.message || "API error occurred";
35639
- super(message);
35711
+ super(message, httpMeta);
35640
35712
  this.data$ = err;
35641
35713
  this.error = err.error;
35642
35714
  this.name = "BadRequest";
@@ -35671,9 +35743,16 @@ var init_badrequest = __esm(() => {
35671
35743
  ErrorT$.outboundSchema = ErrorT$outboundSchema;
35672
35744
  })(ErrorT$ ||= {});
35673
35745
  BadRequest$inboundSchema = objectType({
35674
- error: lazyType(() => ErrorT$inboundSchema)
35746
+ error: lazyType(() => ErrorT$inboundSchema),
35747
+ request$: instanceOfType(Request),
35748
+ response$: instanceOfType(Response),
35749
+ body$: stringType()
35675
35750
  }).transform((v2) => {
35676
- return new BadRequest(v2);
35751
+ return new BadRequest(v2, {
35752
+ request: v2.request$,
35753
+ response: v2.response$,
35754
+ body: v2.body$
35755
+ });
35677
35756
  });
35678
35757
  BadRequest$outboundSchema = instanceOfType(BadRequest).transform((v2) => v2.data$).pipe(objectType({
35679
35758
  error: lazyType(() => ErrorT$outboundSchema)
@@ -35689,15 +35768,16 @@ var ConflictCode, Conflict, ConflictCode$inboundSchema, ConflictCode$outboundSch
35689
35768
  var init_conflict = __esm(() => {
35690
35769
  init_esm();
35691
35770
  init_primitives();
35771
+ init_duberror();
35692
35772
  ConflictCode = {
35693
35773
  Conflict: "conflict"
35694
35774
  };
35695
- Conflict = class Conflict extends Error {
35775
+ Conflict = class Conflict extends DubError {
35696
35776
  error;
35697
35777
  data$;
35698
- constructor(err) {
35778
+ constructor(err, httpMeta) {
35699
35779
  const message = err.error?.message || "API error occurred";
35700
- super(message);
35780
+ super(message, httpMeta);
35701
35781
  this.data$ = err;
35702
35782
  this.error = err.error;
35703
35783
  this.name = "Conflict";
@@ -35732,9 +35812,16 @@ var init_conflict = __esm(() => {
35732
35812
  ConflictError$.outboundSchema = ConflictError$outboundSchema;
35733
35813
  })(ConflictError$ ||= {});
35734
35814
  Conflict$inboundSchema = objectType({
35735
- error: lazyType(() => ConflictError$inboundSchema)
35815
+ error: lazyType(() => ConflictError$inboundSchema),
35816
+ request$: instanceOfType(Request),
35817
+ response$: instanceOfType(Response),
35818
+ body$: stringType()
35736
35819
  }).transform((v2) => {
35737
- return new Conflict(v2);
35820
+ return new Conflict(v2, {
35821
+ request: v2.request$,
35822
+ response: v2.response$,
35823
+ body: v2.body$
35824
+ });
35738
35825
  });
35739
35826
  Conflict$outboundSchema = instanceOfType(Conflict).transform((v2) => v2.data$).pipe(objectType({
35740
35827
  error: lazyType(() => ConflictError$outboundSchema)
@@ -35750,15 +35837,16 @@ var ForbiddenCode, Forbidden, ForbiddenCode$inboundSchema, ForbiddenCode$outboun
35750
35837
  var init_forbidden = __esm(() => {
35751
35838
  init_esm();
35752
35839
  init_primitives();
35840
+ init_duberror();
35753
35841
  ForbiddenCode = {
35754
35842
  Forbidden: "forbidden"
35755
35843
  };
35756
- Forbidden = class Forbidden extends Error {
35844
+ Forbidden = class Forbidden extends DubError {
35757
35845
  error;
35758
35846
  data$;
35759
- constructor(err) {
35847
+ constructor(err, httpMeta) {
35760
35848
  const message = err.error?.message || "API error occurred";
35761
- super(message);
35849
+ super(message, httpMeta);
35762
35850
  this.data$ = err;
35763
35851
  this.error = err.error;
35764
35852
  this.name = "Forbidden";
@@ -35793,9 +35881,16 @@ var init_forbidden = __esm(() => {
35793
35881
  ForbiddenError$.outboundSchema = ForbiddenError$outboundSchema;
35794
35882
  })(ForbiddenError$ ||= {});
35795
35883
  Forbidden$inboundSchema = objectType({
35796
- error: lazyType(() => ForbiddenError$inboundSchema)
35884
+ error: lazyType(() => ForbiddenError$inboundSchema),
35885
+ request$: instanceOfType(Request),
35886
+ response$: instanceOfType(Response),
35887
+ body$: stringType()
35797
35888
  }).transform((v2) => {
35798
- return new Forbidden(v2);
35889
+ return new Forbidden(v2, {
35890
+ request: v2.request$,
35891
+ response: v2.response$,
35892
+ body: v2.body$
35893
+ });
35799
35894
  });
35800
35895
  Forbidden$outboundSchema = instanceOfType(Forbidden).transform((v2) => v2.data$).pipe(objectType({
35801
35896
  error: lazyType(() => ForbiddenError$outboundSchema)
@@ -35811,15 +35906,16 @@ var InternalServerErrorCode, InternalServerError, InternalServerErrorCode$inboun
35811
35906
  var init_internalservererror = __esm(() => {
35812
35907
  init_esm();
35813
35908
  init_primitives();
35909
+ init_duberror();
35814
35910
  InternalServerErrorCode = {
35815
35911
  InternalServerError: "internal_server_error"
35816
35912
  };
35817
- InternalServerError = class InternalServerError extends Error {
35913
+ InternalServerError = class InternalServerError extends DubError {
35818
35914
  error;
35819
35915
  data$;
35820
- constructor(err) {
35916
+ constructor(err, httpMeta) {
35821
35917
  const message = err.error?.message || "API error occurred";
35822
- super(message);
35918
+ super(message, httpMeta);
35823
35919
  this.data$ = err;
35824
35920
  this.error = err.error;
35825
35921
  this.name = "InternalServerError";
@@ -35854,9 +35950,16 @@ var init_internalservererror = __esm(() => {
35854
35950
  InternalServerErrorError$.outboundSchema = InternalServerErrorError$outboundSchema;
35855
35951
  })(InternalServerErrorError$ ||= {});
35856
35952
  InternalServerError$inboundSchema = objectType({
35857
- error: lazyType(() => InternalServerErrorError$inboundSchema)
35953
+ error: lazyType(() => InternalServerErrorError$inboundSchema),
35954
+ request$: instanceOfType(Request),
35955
+ response$: instanceOfType(Response),
35956
+ body$: stringType()
35858
35957
  }).transform((v2) => {
35859
- return new InternalServerError(v2);
35958
+ return new InternalServerError(v2, {
35959
+ request: v2.request$,
35960
+ response: v2.response$,
35961
+ body: v2.body$
35962
+ });
35860
35963
  });
35861
35964
  InternalServerError$outboundSchema = instanceOfType(InternalServerError).transform((v2) => v2.data$).pipe(objectType({
35862
35965
  error: lazyType(() => InternalServerErrorError$outboundSchema)
@@ -35872,15 +35975,16 @@ var InviteExpiredCode, InviteExpired, InviteExpiredCode$inboundSchema, InviteExp
35872
35975
  var init_inviteexpired = __esm(() => {
35873
35976
  init_esm();
35874
35977
  init_primitives();
35978
+ init_duberror();
35875
35979
  InviteExpiredCode = {
35876
35980
  InviteExpired: "invite_expired"
35877
35981
  };
35878
- InviteExpired = class InviteExpired extends Error {
35982
+ InviteExpired = class InviteExpired extends DubError {
35879
35983
  error;
35880
35984
  data$;
35881
- constructor(err) {
35985
+ constructor(err, httpMeta) {
35882
35986
  const message = err.error?.message || "API error occurred";
35883
- super(message);
35987
+ super(message, httpMeta);
35884
35988
  this.data$ = err;
35885
35989
  this.error = err.error;
35886
35990
  this.name = "InviteExpired";
@@ -35915,9 +36019,16 @@ var init_inviteexpired = __esm(() => {
35915
36019
  InviteExpiredError$.outboundSchema = InviteExpiredError$outboundSchema;
35916
36020
  })(InviteExpiredError$ ||= {});
35917
36021
  InviteExpired$inboundSchema = objectType({
35918
- error: lazyType(() => InviteExpiredError$inboundSchema)
36022
+ error: lazyType(() => InviteExpiredError$inboundSchema),
36023
+ request$: instanceOfType(Request),
36024
+ response$: instanceOfType(Response),
36025
+ body$: stringType()
35919
36026
  }).transform((v2) => {
35920
- return new InviteExpired(v2);
36027
+ return new InviteExpired(v2, {
36028
+ request: v2.request$,
36029
+ response: v2.response$,
36030
+ body: v2.body$
36031
+ });
35921
36032
  });
35922
36033
  InviteExpired$outboundSchema = instanceOfType(InviteExpired).transform((v2) => v2.data$).pipe(objectType({
35923
36034
  error: lazyType(() => InviteExpiredError$outboundSchema)
@@ -35933,15 +36044,16 @@ var NotFoundCode, NotFound, NotFoundCode$inboundSchema, NotFoundCode$outboundSch
35933
36044
  var init_notfound = __esm(() => {
35934
36045
  init_esm();
35935
36046
  init_primitives();
36047
+ init_duberror();
35936
36048
  NotFoundCode = {
35937
36049
  NotFound: "not_found"
35938
36050
  };
35939
- NotFound = class NotFound extends Error {
36051
+ NotFound = class NotFound extends DubError {
35940
36052
  error;
35941
36053
  data$;
35942
- constructor(err) {
36054
+ constructor(err, httpMeta) {
35943
36055
  const message = err.error?.message || "API error occurred";
35944
- super(message);
36056
+ super(message, httpMeta);
35945
36057
  this.data$ = err;
35946
36058
  this.error = err.error;
35947
36059
  this.name = "NotFound";
@@ -35976,9 +36088,16 @@ var init_notfound = __esm(() => {
35976
36088
  NotFoundError$.outboundSchema = NotFoundError$outboundSchema;
35977
36089
  })(NotFoundError$ ||= {});
35978
36090
  NotFound$inboundSchema = objectType({
35979
- error: lazyType(() => NotFoundError$inboundSchema)
36091
+ error: lazyType(() => NotFoundError$inboundSchema),
36092
+ request$: instanceOfType(Request),
36093
+ response$: instanceOfType(Response),
36094
+ body$: stringType()
35980
36095
  }).transform((v2) => {
35981
- return new NotFound(v2);
36096
+ return new NotFound(v2, {
36097
+ request: v2.request$,
36098
+ response: v2.response$,
36099
+ body: v2.body$
36100
+ });
35982
36101
  });
35983
36102
  NotFound$outboundSchema = instanceOfType(NotFound).transform((v2) => v2.data$).pipe(objectType({
35984
36103
  error: lazyType(() => NotFoundError$outboundSchema)
@@ -35994,15 +36113,16 @@ var RateLimitExceededCode, RateLimitExceeded, RateLimitExceededCode$inboundSchem
35994
36113
  var init_ratelimitexceeded = __esm(() => {
35995
36114
  init_esm();
35996
36115
  init_primitives();
36116
+ init_duberror();
35997
36117
  RateLimitExceededCode = {
35998
36118
  RateLimitExceeded: "rate_limit_exceeded"
35999
36119
  };
36000
- RateLimitExceeded = class RateLimitExceeded extends Error {
36120
+ RateLimitExceeded = class RateLimitExceeded extends DubError {
36001
36121
  error;
36002
36122
  data$;
36003
- constructor(err) {
36123
+ constructor(err, httpMeta) {
36004
36124
  const message = err.error?.message || "API error occurred";
36005
- super(message);
36125
+ super(message, httpMeta);
36006
36126
  this.data$ = err;
36007
36127
  this.error = err.error;
36008
36128
  this.name = "RateLimitExceeded";
@@ -36037,9 +36157,16 @@ var init_ratelimitexceeded = __esm(() => {
36037
36157
  RateLimitExceededError$.outboundSchema = RateLimitExceededError$outboundSchema;
36038
36158
  })(RateLimitExceededError$ ||= {});
36039
36159
  RateLimitExceeded$inboundSchema = objectType({
36040
- error: lazyType(() => RateLimitExceededError$inboundSchema)
36160
+ error: lazyType(() => RateLimitExceededError$inboundSchema),
36161
+ request$: instanceOfType(Request),
36162
+ response$: instanceOfType(Response),
36163
+ body$: stringType()
36041
36164
  }).transform((v2) => {
36042
- return new RateLimitExceeded(v2);
36165
+ return new RateLimitExceeded(v2, {
36166
+ request: v2.request$,
36167
+ response: v2.response$,
36168
+ body: v2.body$
36169
+ });
36043
36170
  });
36044
36171
  RateLimitExceeded$outboundSchema = instanceOfType(RateLimitExceeded).transform((v2) => v2.data$).pipe(objectType({
36045
36172
  error: lazyType(() => RateLimitExceededError$outboundSchema)
@@ -36055,15 +36182,16 @@ var UnauthorizedCode, Unauthorized, UnauthorizedCode$inboundSchema, Unauthorized
36055
36182
  var init_unauthorized = __esm(() => {
36056
36183
  init_esm();
36057
36184
  init_primitives();
36185
+ init_duberror();
36058
36186
  UnauthorizedCode = {
36059
36187
  Unauthorized: "unauthorized"
36060
36188
  };
36061
- Unauthorized = class Unauthorized extends Error {
36189
+ Unauthorized = class Unauthorized extends DubError {
36062
36190
  error;
36063
36191
  data$;
36064
- constructor(err) {
36192
+ constructor(err, httpMeta) {
36065
36193
  const message = err.error?.message || "API error occurred";
36066
- super(message);
36194
+ super(message, httpMeta);
36067
36195
  this.data$ = err;
36068
36196
  this.error = err.error;
36069
36197
  this.name = "Unauthorized";
@@ -36098,9 +36226,16 @@ var init_unauthorized = __esm(() => {
36098
36226
  UnauthorizedError$.outboundSchema = UnauthorizedError$outboundSchema;
36099
36227
  })(UnauthorizedError$ ||= {});
36100
36228
  Unauthorized$inboundSchema = objectType({
36101
- error: lazyType(() => UnauthorizedError$inboundSchema)
36229
+ error: lazyType(() => UnauthorizedError$inboundSchema),
36230
+ request$: instanceOfType(Request),
36231
+ response$: instanceOfType(Response),
36232
+ body$: stringType()
36102
36233
  }).transform((v2) => {
36103
- return new Unauthorized(v2);
36234
+ return new Unauthorized(v2, {
36235
+ request: v2.request$,
36236
+ response: v2.response$,
36237
+ body: v2.body$
36238
+ });
36104
36239
  });
36105
36240
  Unauthorized$outboundSchema = instanceOfType(Unauthorized).transform((v2) => v2.data$).pipe(objectType({
36106
36241
  error: lazyType(() => UnauthorizedError$outboundSchema)
@@ -36116,15 +36251,16 @@ var UnprocessableEntityCode, UnprocessableEntity, UnprocessableEntityCode$inboun
36116
36251
  var init_unprocessableentity = __esm(() => {
36117
36252
  init_esm();
36118
36253
  init_primitives();
36254
+ init_duberror();
36119
36255
  UnprocessableEntityCode = {
36120
36256
  UnprocessableEntity: "unprocessable_entity"
36121
36257
  };
36122
- UnprocessableEntity = class UnprocessableEntity extends Error {
36258
+ UnprocessableEntity = class UnprocessableEntity extends DubError {
36123
36259
  error;
36124
36260
  data$;
36125
- constructor(err) {
36261
+ constructor(err, httpMeta) {
36126
36262
  const message = err.error?.message || "API error occurred";
36127
- super(message);
36263
+ super(message, httpMeta);
36128
36264
  this.data$ = err;
36129
36265
  this.error = err.error;
36130
36266
  this.name = "UnprocessableEntity";
@@ -36159,9 +36295,16 @@ var init_unprocessableentity = __esm(() => {
36159
36295
  UnprocessableEntityError$.outboundSchema = UnprocessableEntityError$outboundSchema;
36160
36296
  })(UnprocessableEntityError$ ||= {});
36161
36297
  UnprocessableEntity$inboundSchema = objectType({
36162
- error: lazyType(() => UnprocessableEntityError$inboundSchema)
36298
+ error: lazyType(() => UnprocessableEntityError$inboundSchema),
36299
+ request$: instanceOfType(Request),
36300
+ response$: instanceOfType(Response),
36301
+ body$: stringType()
36163
36302
  }).transform((v2) => {
36164
- return new UnprocessableEntity(v2);
36303
+ return new UnprocessableEntity(v2, {
36304
+ request: v2.request$,
36305
+ response: v2.response$,
36306
+ body: v2.body$
36307
+ });
36165
36308
  });
36166
36309
  UnprocessableEntity$outboundSchema = instanceOfType(UnprocessableEntity).transform((v2) => v2.data$).pipe(objectType({
36167
36310
  error: lazyType(() => UnprocessableEntityError$outboundSchema)
@@ -36182,6 +36325,7 @@ var init_errors2 = __esm(() => {
36182
36325
  init_inviteexpired();
36183
36326
  init_notfound();
36184
36327
  init_ratelimitexceeded();
36328
+ init_responsevalidationerror();
36185
36329
  init_sdkerror();
36186
36330
  init_sdkvalidationerror();
36187
36331
  init_unauthorized();
@@ -46354,7 +46498,8 @@ var init_partnerenrolledevent = __esm(() => {
46354
46498
  Rejected: "rejected",
46355
46499
  Invited: "invited",
46356
46500
  Declined: "declined",
46357
- Banned: "banned"
46501
+ Banned: "banned",
46502
+ Archived: "archived"
46358
46503
  };
46359
46504
  PartnerEnrolledEventEvent$inboundSchema = nativeEnumType(PartnerEnrolledEventEvent);
46360
46505
  PartnerEnrolledEventEvent$outboundSchema = PartnerEnrolledEventEvent$inboundSchema;
@@ -50221,7 +50366,8 @@ var init_createpartner = __esm(() => {
50221
50366
  Rejected: "rejected",
50222
50367
  Invited: "invited",
50223
50368
  Declined: "declined",
50224
- Banned: "banned"
50369
+ Banned: "banned",
50370
+ Archived: "archived"
50225
50371
  };
50226
50372
  Country$inboundSchema2 = nativeEnumType(Country2);
50227
50373
  Country$outboundSchema2 = Country$inboundSchema2;
@@ -53831,7 +53977,7 @@ async function $do(client, request, options) {
53831
53977
  const responseFields = {
53832
53978
  HttpMeta: { Response: response, Request: req }
53833
53979
  };
53834
- const [result] = await match(json(200, RetrieveAnalyticsResponseBody$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
53980
+ const [result] = await match(json(200, RetrieveAnalyticsResponseBody$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
53835
53981
  if (!result.ok) {
53836
53982
  return [result, { status: "complete", request: req, response }];
53837
53983
  }
@@ -53961,7 +54107,7 @@ async function $do2(client, request, options) {
53961
54107
  const responseFields = {
53962
54108
  HttpMeta: { Response: response, Request: req }
53963
54109
  };
53964
- const [result] = await match(json(200, arrayType(ListCommissionsResponseBody$inboundSchema)), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
54110
+ const [result] = await match(json(200, arrayType(ListCommissionsResponseBody$inboundSchema)), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
53965
54111
  if (!result.ok) {
53966
54112
  return [result, { status: "complete", request: req, response }];
53967
54113
  }
@@ -54083,7 +54229,7 @@ async function $do3(client, request, options) {
54083
54229
  const responseFields = {
54084
54230
  HttpMeta: { Response: response, Request: req }
54085
54231
  };
54086
- const [result] = await match(json(200, UpdateCommissionResponseBody$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
54232
+ const [result] = await match(json(200, UpdateCommissionResponseBody$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
54087
54233
  if (!result.ok) {
54088
54234
  return [result, { status: "complete", request: req, response }];
54089
54235
  }
@@ -54198,7 +54344,7 @@ async function $do4(client, request, options) {
54198
54344
  const responseFields = {
54199
54345
  HttpMeta: { Response: response, Request: req }
54200
54346
  };
54201
- const [result] = await match(json(201, CreateCustomerResponseBody$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
54347
+ const [result] = await match(json(201, CreateCustomerResponseBody$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
54202
54348
  if (!result.ok) {
54203
54349
  return [result, { status: "complete", request: req, response }];
54204
54350
  }
@@ -54321,7 +54467,7 @@ async function $do5(client, id, options) {
54321
54467
  const responseFields = {
54322
54468
  HttpMeta: { Response: response, Request: req }
54323
54469
  };
54324
- const [result] = await match(json(200, DeleteCustomerResponseBody$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
54470
+ const [result] = await match(json(200, DeleteCustomerResponseBody$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
54325
54471
  if (!result.ok) {
54326
54472
  return [result, { status: "complete", request: req, response }];
54327
54473
  }
@@ -54445,7 +54591,7 @@ async function $do6(client, request, options) {
54445
54591
  const responseFields = {
54446
54592
  HttpMeta: { Response: response, Request: req }
54447
54593
  };
54448
- const [result] = await match(json(200, GetCustomerResponseBody$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
54594
+ const [result] = await match(json(200, GetCustomerResponseBody$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
54449
54595
  if (!result.ok) {
54450
54596
  return [result, { status: "complete", request: req, response }];
54451
54597
  }
@@ -54572,7 +54718,7 @@ async function $do7(client, request, options) {
54572
54718
  const responseFields = {
54573
54719
  HttpMeta: { Response: response, Request: req }
54574
54720
  };
54575
- const [result] = await match(json(200, arrayType(GetCustomersResponseBody$inboundSchema)), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
54721
+ const [result] = await match(json(200, arrayType(GetCustomersResponseBody$inboundSchema)), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
54576
54722
  if (!result.ok) {
54577
54723
  return [result, { status: "complete", request: req, response }];
54578
54724
  }
@@ -54698,7 +54844,7 @@ async function $do8(client, request, options) {
54698
54844
  const responseFields = {
54699
54845
  HttpMeta: { Response: response, Request: req }
54700
54846
  };
54701
- const [result] = await match(json(200, UpdateCustomerResponseBody$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
54847
+ const [result] = await match(json(200, UpdateCustomerResponseBody$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
54702
54848
  if (!result.ok) {
54703
54849
  return [result, { status: "complete", request: req, response }];
54704
54850
  }
@@ -54816,7 +54962,7 @@ async function $do9(client, request, options) {
54816
54962
  const responseFields = {
54817
54963
  HttpMeta: { Response: response, Request: req }
54818
54964
  };
54819
- const [result] = await match(json(200, arrayType(CheckDomainStatusResponseBody$inboundSchema)), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
54965
+ const [result] = await match(json(200, arrayType(CheckDomainStatusResponseBody$inboundSchema)), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
54820
54966
  if (!result.ok) {
54821
54967
  return [result, { status: "complete", request: req, response }];
54822
54968
  }
@@ -54932,7 +55078,7 @@ async function $do10(client, request, options) {
54932
55078
  const responseFields = {
54933
55079
  HttpMeta: { Response: response, Request: req }
54934
55080
  };
54935
- const [result] = await match(json(201, DomainSchema$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
55081
+ const [result] = await match(json(201, DomainSchema$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
54936
55082
  if (!result.ok) {
54937
55083
  return [result, { status: "complete", request: req, response }];
54938
55084
  }
@@ -55056,7 +55202,7 @@ async function $do11(client, slug, options) {
55056
55202
  const responseFields = {
55057
55203
  HttpMeta: { Response: response, Request: req }
55058
55204
  };
55059
- const [result] = await match(json(200, DeleteDomainResponseBody$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
55205
+ const [result] = await match(json(200, DeleteDomainResponseBody$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
55060
55206
  if (!result.ok) {
55061
55207
  return [result, { status: "complete", request: req, response }];
55062
55208
  }
@@ -55211,7 +55357,7 @@ async function $do12(client, request, options) {
55211
55357
  };
55212
55358
  const [result, raw] = await match(json(200, ListDomainsResponse$inboundSchema, {
55213
55359
  key: "Result"
55214
- }), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
55360
+ }), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
55215
55361
  if (!result.ok) {
55216
55362
  return [haltIterator(result), {
55217
55363
  status: "complete",
@@ -55356,7 +55502,7 @@ async function $do13(client, request, options) {
55356
55502
  const responseFields = {
55357
55503
  HttpMeta: { Response: response, Request: req }
55358
55504
  };
55359
- const [result] = await match(json(201, RegisterDomainResponseBody$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
55505
+ const [result] = await match(json(201, RegisterDomainResponseBody$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
55360
55506
  if (!result.ok) {
55361
55507
  return [result, { status: "complete", request: req, response }];
55362
55508
  }
@@ -55481,7 +55627,7 @@ async function $do14(client, slug, requestBody, options) {
55481
55627
  const responseFields = {
55482
55628
  HttpMeta: { Response: response, Request: req }
55483
55629
  };
55484
- const [result] = await match(json(200, DomainSchema$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
55630
+ const [result] = await match(json(200, DomainSchema$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
55485
55631
  if (!result.ok) {
55486
55632
  return [result, { status: "complete", request: req, response }];
55487
55633
  }
@@ -55599,7 +55745,7 @@ async function $do15(client, request, options) {
55599
55745
  const responseFields = {
55600
55746
  HttpMeta: { Response: response, Request: req }
55601
55747
  };
55602
- const [result] = await match(json(201, CreateReferralsEmbedTokenResponseBody$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
55748
+ const [result] = await match(json(201, CreateReferralsEmbedTokenResponseBody$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
55603
55749
  if (!result.ok) {
55604
55750
  return [result, { status: "complete", request: req, response }];
55605
55751
  }
@@ -55755,7 +55901,7 @@ async function $do16(client, request, options) {
55755
55901
  const responseFields = {
55756
55902
  HttpMeta: { Response: response, Request: req }
55757
55903
  };
55758
- const [result] = await match(json(200, arrayType(ListEventsResponseBody$inboundSchema)), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
55904
+ const [result] = await match(json(200, arrayType(ListEventsResponseBody$inboundSchema)), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
55759
55905
  if (!result.ok) {
55760
55906
  return [result, { status: "complete", request: req, response }];
55761
55907
  }
@@ -55871,7 +56017,7 @@ async function $do17(client, request, options) {
55871
56017
  const responseFields = {
55872
56018
  HttpMeta: { Response: response, Request: req }
55873
56019
  };
55874
- const [result] = await match(json(201, FolderSchema$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
56020
+ const [result] = await match(json(201, FolderSchema$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
55875
56021
  if (!result.ok) {
55876
56022
  return [result, { status: "complete", request: req, response }];
55877
56023
  }
@@ -55995,7 +56141,7 @@ async function $do18(client, id, options) {
55995
56141
  const responseFields = {
55996
56142
  HttpMeta: { Response: response, Request: req }
55997
56143
  };
55998
- const [result] = await match(json(200, DeleteFolderResponseBody$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
56144
+ const [result] = await match(json(200, DeleteFolderResponseBody$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
55999
56145
  if (!result.ok) {
56000
56146
  return [result, { status: "complete", request: req, response }];
56001
56147
  }
@@ -56115,7 +56261,7 @@ async function $do19(client, request, options) {
56115
56261
  const responseFields = {
56116
56262
  HttpMeta: { Response: response, Request: req }
56117
56263
  };
56118
- const [result] = await match(json(200, arrayType(FolderSchema$inboundSchema)), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
56264
+ const [result] = await match(json(200, arrayType(FolderSchema$inboundSchema)), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
56119
56265
  if (!result.ok) {
56120
56266
  return [result, { status: "complete", request: req, response }];
56121
56267
  }
@@ -56242,7 +56388,7 @@ async function $do20(client, id, requestBody, options) {
56242
56388
  const responseFields = {
56243
56389
  HttpMeta: { Response: response, Request: req }
56244
56390
  };
56245
- const [result] = await match(json(200, FolderSchema$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
56391
+ const [result] = await match(json(200, FolderSchema$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
56246
56392
  if (!result.ok) {
56247
56393
  return [result, { status: "complete", request: req, response }];
56248
56394
  }
@@ -56374,7 +56520,7 @@ async function $do21(client, request, options) {
56374
56520
  const responseFields = {
56375
56521
  HttpMeta: { Response: response, Request: req }
56376
56522
  };
56377
- const [result] = await match(json(200, numberType()), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
56523
+ const [result] = await match(json(200, numberType()), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
56378
56524
  if (!result.ok) {
56379
56525
  return [result, { status: "complete", request: req, response }];
56380
56526
  }
@@ -56490,7 +56636,7 @@ async function $do22(client, request, options) {
56490
56636
  const responseFields = {
56491
56637
  HttpMeta: { Response: response, Request: req }
56492
56638
  };
56493
- const [result] = await match(json(200, LinkSchema$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
56639
+ const [result] = await match(json(200, LinkSchema$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
56494
56640
  if (!result.ok) {
56495
56641
  return [result, { status: "complete", request: req, response }];
56496
56642
  }
@@ -56606,7 +56752,7 @@ async function $do23(client, request, options) {
56606
56752
  const responseFields = {
56607
56753
  HttpMeta: { Response: response, Request: req }
56608
56754
  };
56609
- const [result] = await match(json(200, arrayType(ResponseBody$inboundSchema)), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
56755
+ const [result] = await match(json(200, arrayType(ResponseBody$inboundSchema)), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
56610
56756
  if (!result.ok) {
56611
56757
  return [result, { status: "complete", request: req, response }];
56612
56758
  }
@@ -56731,7 +56877,7 @@ async function $do24(client, linkId, options) {
56731
56877
  const responseFields = {
56732
56878
  HttpMeta: { Response: response, Request: req }
56733
56879
  };
56734
- const [result] = await match(json(200, DeleteLinkResponseBody$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
56880
+ const [result] = await match(json(200, DeleteLinkResponseBody$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
56735
56881
  if (!result.ok) {
56736
56882
  return [result, { status: "complete", request: req, response }];
56737
56883
  }
@@ -56849,7 +56995,7 @@ async function $do25(client, request, options) {
56849
56995
  const responseFields = {
56850
56996
  HttpMeta: { Response: response, Request: req }
56851
56997
  };
56852
- const [result] = await match(json(200, BulkDeleteLinksResponseBody$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
56998
+ const [result] = await match(json(200, BulkDeleteLinksResponseBody$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
56853
56999
  if (!result.ok) {
56854
57000
  return [result, { status: "complete", request: req, response }];
56855
57001
  }
@@ -56970,7 +57116,7 @@ async function $do26(client, request, options) {
56970
57116
  const responseFields = {
56971
57117
  HttpMeta: { Response: response, Request: req }
56972
57118
  };
56973
- const [result] = await match(json(200, LinkSchema$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
57119
+ const [result] = await match(json(200, LinkSchema$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
56974
57120
  if (!result.ok) {
56975
57121
  return [result, { status: "complete", request: req, response }];
56976
57122
  }
@@ -57104,7 +57250,7 @@ async function $do27(client, request, options) {
57104
57250
  const responseFields = {
57105
57251
  HttpMeta: { Response: response, Request: req }
57106
57252
  };
57107
- const [result, raw] = await match(json(200, GetLinksResponse$inboundSchema, { key: "Result" }), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
57253
+ const [result, raw] = await match(json(200, GetLinksResponse$inboundSchema, { key: "Result" }), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
57108
57254
  if (!result.ok) {
57109
57255
  return [haltIterator(result), {
57110
57256
  status: "complete",
@@ -57259,7 +57405,7 @@ async function $do28(client, linkId, requestBody, options) {
57259
57405
  const responseFields = {
57260
57406
  HttpMeta: { Response: response, Request: req }
57261
57407
  };
57262
- const [result] = await match(json(200, LinkSchema$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
57408
+ const [result] = await match(json(200, LinkSchema$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
57263
57409
  if (!result.ok) {
57264
57410
  return [result, { status: "complete", request: req, response }];
57265
57411
  }
@@ -57377,7 +57523,7 @@ async function $do29(client, request, options) {
57377
57523
  const responseFields = {
57378
57524
  HttpMeta: { Response: response, Request: req }
57379
57525
  };
57380
- const [result] = await match(json(200, arrayType(LinkSchema$inboundSchema)), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
57526
+ const [result] = await match(json(200, arrayType(LinkSchema$inboundSchema)), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
57381
57527
  if (!result.ok) {
57382
57528
  return [result, { status: "complete", request: req, response }];
57383
57529
  }
@@ -57494,7 +57640,7 @@ async function $do30(client, request, options) {
57494
57640
  const responseFields = {
57495
57641
  HttpMeta: { Response: response, Request: req }
57496
57642
  };
57497
- const [result] = await match(json(200, LinkSchema$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
57643
+ const [result] = await match(json(200, LinkSchema$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
57498
57644
  if (!result.ok) {
57499
57645
  return [result, { status: "complete", request: req, response }];
57500
57646
  }
@@ -57620,7 +57766,7 @@ async function $do31(client, request, options) {
57620
57766
  const responseFields = {
57621
57767
  HttpMeta: { Response: response, Request: req }
57622
57768
  };
57623
- const [result] = await match(json(200, RetrievePartnerAnalyticsResponseBody$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
57769
+ const [result] = await match(json(200, RetrievePartnerAnalyticsResponseBody$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
57624
57770
  if (!result.ok) {
57625
57771
  return [result, { status: "complete", request: req, response }];
57626
57772
  }
@@ -57735,7 +57881,7 @@ async function $do32(client, request, options) {
57735
57881
  const responseFields = {
57736
57882
  HttpMeta: { Response: response, Request: req }
57737
57883
  };
57738
- const [result] = await match(json(201, CreatePartnerResponseBody$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
57884
+ const [result] = await match(json(201, CreatePartnerResponseBody$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
57739
57885
  if (!result.ok) {
57740
57886
  return [result, { status: "complete", request: req, response }];
57741
57887
  }
@@ -57850,7 +57996,7 @@ async function $do33(client, request, options) {
57850
57996
  const responseFields = {
57851
57997
  HttpMeta: { Response: response, Request: req }
57852
57998
  };
57853
- const [result] = await match(json(201, LinkSchema$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
57999
+ const [result] = await match(json(201, LinkSchema$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
57854
58000
  if (!result.ok) {
57855
58001
  return [result, { status: "complete", request: req, response }];
57856
58002
  }
@@ -57971,7 +58117,7 @@ async function $do34(client, request, options) {
57971
58117
  const responseFields = {
57972
58118
  HttpMeta: { Response: response, Request: req }
57973
58119
  };
57974
- const [result] = await match(json(200, arrayType(Link$inboundSchema2)), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
58120
+ const [result] = await match(json(200, arrayType(Link$inboundSchema2)), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
57975
58121
  if (!result.ok) {
57976
58122
  return [result, { status: "complete", request: req, response }];
57977
58123
  }
@@ -58087,7 +58233,7 @@ async function $do35(client, request, options) {
58087
58233
  const responseFields = {
58088
58234
  HttpMeta: { Response: response, Request: req }
58089
58235
  };
58090
- const [result] = await match(json(200, LinkSchema$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
58236
+ const [result] = await match(json(200, LinkSchema$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
58091
58237
  if (!result.ok) {
58092
58238
  return [result, { status: "complete", request: req, response }];
58093
58239
  }
@@ -58214,7 +58360,7 @@ async function $do36(client, request, options) {
58214
58360
  const responseFields = {
58215
58361
  HttpMeta: { Response: response, Request: req }
58216
58362
  };
58217
- const [result] = await match(text(200, stringType(), { ctype: "image/png" }), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
58363
+ const [result] = await match(text(200, stringType(), { ctype: "image/png" }), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
58218
58364
  if (!result.ok) {
58219
58365
  return [result, { status: "complete", request: req, response }];
58220
58366
  }
@@ -58330,7 +58476,7 @@ async function $do37(client, request, options) {
58330
58476
  const responseFields = {
58331
58477
  HttpMeta: { Response: response, Request: req }
58332
58478
  };
58333
- const [result] = await match(json(201, TagSchema$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
58479
+ const [result] = await match(json(201, TagSchema$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
58334
58480
  if (!result.ok) {
58335
58481
  return [result, { status: "complete", request: req, response }];
58336
58482
  }
@@ -58454,7 +58600,7 @@ async function $do38(client, id, options) {
58454
58600
  const responseFields = {
58455
58601
  HttpMeta: { Response: response, Request: req }
58456
58602
  };
58457
- const [result] = await match(json(200, DeleteTagResponseBody$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
58603
+ const [result] = await match(json(200, DeleteTagResponseBody$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
58458
58604
  if (!result.ok) {
58459
58605
  return [result, { status: "complete", request: req, response }];
58460
58606
  }
@@ -58577,7 +58723,7 @@ async function $do39(client, request, options) {
58577
58723
  const responseFields = {
58578
58724
  HttpMeta: { Response: response, Request: req }
58579
58725
  };
58580
- const [result] = await match(json(200, arrayType(TagSchema$inboundSchema)), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
58726
+ const [result] = await match(json(200, arrayType(TagSchema$inboundSchema)), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
58581
58727
  if (!result.ok) {
58582
58728
  return [result, { status: "complete", request: req, response }];
58583
58729
  }
@@ -58704,7 +58850,7 @@ async function $do40(client, id, requestBody, options) {
58704
58850
  const responseFields = {
58705
58851
  HttpMeta: { Response: response, Request: req }
58706
58852
  };
58707
- const [result] = await match(json(200, TagSchema$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
58853
+ const [result] = await match(json(200, TagSchema$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
58708
58854
  if (!result.ok) {
58709
58855
  return [result, { status: "complete", request: req, response }];
58710
58856
  }
@@ -58822,7 +58968,7 @@ async function $do41(client, request, options) {
58822
58968
  const responseFields = {
58823
58969
  HttpMeta: { Response: response, Request: req }
58824
58970
  };
58825
- const [result] = await match(json(200, TrackLeadResponseBody$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
58971
+ const [result] = await match(json(200, TrackLeadResponseBody$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
58826
58972
  if (!result.ok) {
58827
58973
  return [result, { status: "complete", request: req, response }];
58828
58974
  }
@@ -58937,7 +59083,7 @@ async function $do42(client, request, options) {
58937
59083
  const responseFields = {
58938
59084
  HttpMeta: { Response: response, Request: req }
58939
59085
  };
58940
- const [result] = await match(json(200, TrackSaleResponseBody$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
59086
+ const [result] = await match(json(200, TrackSaleResponseBody$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
58941
59087
  if (!result.ok) {
58942
59088
  return [result, { status: "complete", request: req, response }];
58943
59089
  }
@@ -59057,7 +59203,7 @@ async function $do43(client, request, options) {
59057
59203
  const responseFields = {
59058
59204
  HttpMeta: { Response: response, Request: req }
59059
59205
  };
59060
- const [result] = await match(json(200, WorkspaceSchema$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
59206
+ const [result] = await match(json(200, WorkspaceSchema$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
59061
59207
  if (!result.ok) {
59062
59208
  return [result, { status: "complete", request: req, response }];
59063
59209
  }
@@ -59183,7 +59329,7 @@ async function $do44(client, idOrSlug, requestBody, options) {
59183
59329
  const responseFields = {
59184
59330
  HttpMeta: { Response: response, Request: req }
59185
59331
  };
59186
- const [result] = await match(json(200, WorkspaceSchema$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
59332
+ const [result] = await match(json(200, WorkspaceSchema$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
59187
59333
  if (!result.ok) {
59188
59334
  return [result, { status: "complete", request: req, response }];
59189
59335
  }
@@ -59237,7 +59383,7 @@ Update a workspace by ID or slug.`,
59237
59383
  function createMCPServer(deps) {
59238
59384
  const server = new McpServer({
59239
59385
  name: "Dub",
59240
- version: "0.62.4"
59386
+ version: "0.63.0"
59241
59387
  });
59242
59388
  const client = new DubCore({
59243
59389
  token: deps.token,
@@ -60539,7 +60685,7 @@ var routes = rn({
60539
60685
  var app = Ve(routes, {
60540
60686
  name: "mcp",
60541
60687
  versionInfo: {
60542
- currentVersion: "0.62.4"
60688
+ currentVersion: "0.63.0"
60543
60689
  }
60544
60690
  });
60545
60691
  _t(app, process3.argv.slice(2), buildContext(process3));
@@ -60547,5 +60693,5 @@ export {
60547
60693
  app
60548
60694
  };
60549
60695
 
60550
- //# debugId=A305ECC9E74876E164756E2164756E21
60696
+ //# debugId=2E1008996068ED5C64756E2164756E21
60551
60697
  //# sourceMappingURL=mcp-server.js.map