dub 0.46.7 → 0.46.9

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 (334) hide show
  1. package/README.md +0 -2
  2. package/RUNTIMES.md +27 -1
  3. package/dist/commonjs/funcs/analyticsRetrieve.js +29 -29
  4. package/dist/commonjs/funcs/analyticsRetrieve.js.map +1 -1
  5. package/dist/commonjs/funcs/customersCreate.js +4 -4
  6. package/dist/commonjs/funcs/customersCreate.js.map +1 -1
  7. package/dist/commonjs/funcs/customersDelete.js +4 -4
  8. package/dist/commonjs/funcs/customersDelete.js.map +1 -1
  9. package/dist/commonjs/funcs/customersGet.js +4 -4
  10. package/dist/commonjs/funcs/customersGet.js.map +1 -1
  11. package/dist/commonjs/funcs/customersList.js +4 -4
  12. package/dist/commonjs/funcs/customersList.js.map +1 -1
  13. package/dist/commonjs/funcs/customersUpdate.js +4 -4
  14. package/dist/commonjs/funcs/customersUpdate.js.map +1 -1
  15. package/dist/commonjs/funcs/domainsCreate.js +4 -4
  16. package/dist/commonjs/funcs/domainsCreate.js.map +1 -1
  17. package/dist/commonjs/funcs/domainsDelete.js +4 -4
  18. package/dist/commonjs/funcs/domainsDelete.js.map +1 -1
  19. package/dist/commonjs/funcs/domainsList.js +10 -10
  20. package/dist/commonjs/funcs/domainsList.js.map +1 -1
  21. package/dist/commonjs/funcs/domainsUpdate.js +4 -4
  22. package/dist/commonjs/funcs/domainsUpdate.js.map +1 -1
  23. package/dist/commonjs/funcs/embedTokensCreate.js +4 -4
  24. package/dist/commonjs/funcs/embedTokensCreate.js.map +1 -1
  25. package/dist/commonjs/funcs/eventsList.js +32 -32
  26. package/dist/commonjs/funcs/eventsList.js.map +1 -1
  27. package/dist/commonjs/funcs/linksCount.js +13 -13
  28. package/dist/commonjs/funcs/linksCount.js.map +1 -1
  29. package/dist/commonjs/funcs/linksCreate.js +4 -4
  30. package/dist/commonjs/funcs/linksCreate.js.map +1 -1
  31. package/dist/commonjs/funcs/linksCreateMany.js +4 -4
  32. package/dist/commonjs/funcs/linksCreateMany.js.map +1 -1
  33. package/dist/commonjs/funcs/linksDelete.js +4 -4
  34. package/dist/commonjs/funcs/linksDelete.js.map +1 -1
  35. package/dist/commonjs/funcs/linksDeleteMany.js +4 -4
  36. package/dist/commonjs/funcs/linksDeleteMany.js.map +1 -1
  37. package/dist/commonjs/funcs/linksGet.js +8 -8
  38. package/dist/commonjs/funcs/linksGet.js.map +1 -1
  39. package/dist/commonjs/funcs/linksList.js +17 -17
  40. package/dist/commonjs/funcs/linksList.js.map +1 -1
  41. package/dist/commonjs/funcs/linksUpdate.js +4 -4
  42. package/dist/commonjs/funcs/linksUpdate.js.map +1 -1
  43. package/dist/commonjs/funcs/linksUpdateMany.js +4 -4
  44. package/dist/commonjs/funcs/linksUpdateMany.js.map +1 -1
  45. package/dist/commonjs/funcs/linksUpsert.js +4 -4
  46. package/dist/commonjs/funcs/linksUpsert.js.map +1 -1
  47. package/dist/commonjs/funcs/metatagsGet.js +4 -4
  48. package/dist/commonjs/funcs/metatagsGet.js.map +1 -1
  49. package/dist/commonjs/funcs/qrCodesGet.js +4 -4
  50. package/dist/commonjs/funcs/qrCodesGet.js.map +1 -1
  51. package/dist/commonjs/funcs/tagsCreate.js +4 -4
  52. package/dist/commonjs/funcs/tagsCreate.js.map +1 -1
  53. package/dist/commonjs/funcs/tagsDelete.js +4 -4
  54. package/dist/commonjs/funcs/tagsDelete.js.map +1 -1
  55. package/dist/commonjs/funcs/tagsList.js +4 -4
  56. package/dist/commonjs/funcs/tagsList.js.map +1 -1
  57. package/dist/commonjs/funcs/tagsUpdate.js +4 -4
  58. package/dist/commonjs/funcs/tagsUpdate.js.map +1 -1
  59. package/dist/commonjs/funcs/trackLead.js +4 -4
  60. package/dist/commonjs/funcs/trackLead.js.map +1 -1
  61. package/dist/commonjs/funcs/trackSale.js +4 -4
  62. package/dist/commonjs/funcs/trackSale.js.map +1 -1
  63. package/dist/commonjs/funcs/workspacesGet.js +4 -4
  64. package/dist/commonjs/funcs/workspacesGet.js.map +1 -1
  65. package/dist/commonjs/funcs/workspacesUpdate.js +4 -4
  66. package/dist/commonjs/funcs/workspacesUpdate.js.map +1 -1
  67. package/dist/commonjs/hooks/auth.js +1 -2
  68. package/dist/commonjs/hooks/auth.js.map +1 -1
  69. package/dist/commonjs/hooks/base-url.js +1 -2
  70. package/dist/commonjs/hooks/base-url.js.map +1 -1
  71. package/dist/commonjs/lib/config.d.ts +3 -3
  72. package/dist/commonjs/lib/config.js +4 -5
  73. package/dist/commonjs/lib/config.js.map +1 -1
  74. package/dist/commonjs/lib/encodings.js +18 -19
  75. package/dist/commonjs/lib/encodings.js.map +1 -1
  76. package/dist/commonjs/lib/http.js +1 -2
  77. package/dist/commonjs/lib/http.js.map +1 -1
  78. package/dist/commonjs/lib/matchers.js +5 -6
  79. package/dist/commonjs/lib/matchers.js.map +1 -1
  80. package/dist/commonjs/lib/primitives.js +1 -1
  81. package/dist/commonjs/lib/primitives.js.map +1 -1
  82. package/dist/commonjs/lib/retries.js +3 -4
  83. package/dist/commonjs/lib/retries.js.map +1 -1
  84. package/dist/commonjs/lib/sdks.js +15 -16
  85. package/dist/commonjs/lib/sdks.js.map +1 -1
  86. package/dist/commonjs/lib/security.js +2 -2
  87. package/dist/commonjs/lib/security.js.map +1 -1
  88. package/dist/commonjs/lib/url.js +1 -1
  89. package/dist/commonjs/lib/url.js.map +1 -1
  90. package/dist/commonjs/models/components/leadcreatedevent.d.ts +177 -0
  91. package/dist/commonjs/models/components/leadcreatedevent.d.ts.map +1 -1
  92. package/dist/commonjs/models/components/leadcreatedevent.js +161 -1
  93. package/dist/commonjs/models/components/leadcreatedevent.js.map +1 -1
  94. package/dist/commonjs/models/components/leadevent.d.ts +177 -0
  95. package/dist/commonjs/models/components/leadevent.d.ts.map +1 -1
  96. package/dist/commonjs/models/components/leadevent.js +158 -1
  97. package/dist/commonjs/models/components/leadevent.js.map +1 -1
  98. package/dist/commonjs/models/components/salecreatedevent.d.ts +177 -0
  99. package/dist/commonjs/models/components/salecreatedevent.d.ts.map +1 -1
  100. package/dist/commonjs/models/components/salecreatedevent.js +161 -1
  101. package/dist/commonjs/models/components/salecreatedevent.js.map +1 -1
  102. package/dist/commonjs/models/components/saleevent.d.ts +177 -0
  103. package/dist/commonjs/models/components/saleevent.d.ts.map +1 -1
  104. package/dist/commonjs/models/components/saleevent.js +159 -1
  105. package/dist/commonjs/models/components/saleevent.js.map +1 -1
  106. package/dist/commonjs/models/errors/badrequest.js +1 -2
  107. package/dist/commonjs/models/errors/badrequest.js.map +1 -1
  108. package/dist/commonjs/models/errors/conflict.js +1 -2
  109. package/dist/commonjs/models/errors/conflict.js.map +1 -1
  110. package/dist/commonjs/models/errors/forbidden.js +1 -2
  111. package/dist/commonjs/models/errors/forbidden.js.map +1 -1
  112. package/dist/commonjs/models/errors/httpclienterrors.js +2 -2
  113. package/dist/commonjs/models/errors/httpclienterrors.js.map +1 -1
  114. package/dist/commonjs/models/errors/internalservererror.js +1 -2
  115. package/dist/commonjs/models/errors/internalservererror.js.map +1 -1
  116. package/dist/commonjs/models/errors/inviteexpired.js +1 -2
  117. package/dist/commonjs/models/errors/inviteexpired.js.map +1 -1
  118. package/dist/commonjs/models/errors/notfound.js +1 -2
  119. package/dist/commonjs/models/errors/notfound.js.map +1 -1
  120. package/dist/commonjs/models/errors/ratelimitexceeded.js +1 -2
  121. package/dist/commonjs/models/errors/ratelimitexceeded.js.map +1 -1
  122. package/dist/commonjs/models/errors/unauthorized.js +1 -2
  123. package/dist/commonjs/models/errors/unauthorized.js.map +1 -1
  124. package/dist/commonjs/models/errors/unprocessableentity.js +1 -2
  125. package/dist/commonjs/models/errors/unprocessableentity.js.map +1 -1
  126. package/dist/commonjs/models/operations/createcustomer.d.ts +178 -0
  127. package/dist/commonjs/models/operations/createcustomer.d.ts.map +1 -1
  128. package/dist/commonjs/models/operations/createcustomer.js +158 -1
  129. package/dist/commonjs/models/operations/createcustomer.js.map +1 -1
  130. package/dist/commonjs/models/operations/getcustomer.d.ts +178 -0
  131. package/dist/commonjs/models/operations/getcustomer.d.ts.map +1 -1
  132. package/dist/commonjs/models/operations/getcustomer.js +158 -1
  133. package/dist/commonjs/models/operations/getcustomer.js.map +1 -1
  134. package/dist/commonjs/models/operations/getcustomers.d.ts +178 -0
  135. package/dist/commonjs/models/operations/getcustomers.d.ts.map +1 -1
  136. package/dist/commonjs/models/operations/getcustomers.js +155 -1
  137. package/dist/commonjs/models/operations/getcustomers.js.map +1 -1
  138. package/dist/commonjs/models/operations/index.d.ts +0 -1
  139. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  140. package/dist/commonjs/models/operations/index.js +0 -1
  141. package/dist/commonjs/models/operations/index.js.map +1 -1
  142. package/dist/commonjs/models/operations/updatecustomer.d.ts +178 -0
  143. package/dist/commonjs/models/operations/updatecustomer.d.ts.map +1 -1
  144. package/dist/commonjs/models/operations/updatecustomer.js +158 -1
  145. package/dist/commonjs/models/operations/updatecustomer.js.map +1 -1
  146. package/dist/commonjs/sdk/sdk.js +11 -22
  147. package/dist/commonjs/sdk/sdk.js.map +1 -1
  148. package/dist/commonjs/sdk/track.d.ts +0 -9
  149. package/dist/commonjs/sdk/track.d.ts.map +1 -1
  150. package/dist/commonjs/sdk/track.js +0 -12
  151. package/dist/commonjs/sdk/track.js.map +1 -1
  152. package/dist/esm/funcs/analyticsRetrieve.js +29 -29
  153. package/dist/esm/funcs/analyticsRetrieve.js.map +1 -1
  154. package/dist/esm/funcs/customersCreate.js +4 -4
  155. package/dist/esm/funcs/customersCreate.js.map +1 -1
  156. package/dist/esm/funcs/customersDelete.js +4 -4
  157. package/dist/esm/funcs/customersDelete.js.map +1 -1
  158. package/dist/esm/funcs/customersGet.js +4 -4
  159. package/dist/esm/funcs/customersGet.js.map +1 -1
  160. package/dist/esm/funcs/customersList.js +4 -4
  161. package/dist/esm/funcs/customersList.js.map +1 -1
  162. package/dist/esm/funcs/customersUpdate.js +4 -4
  163. package/dist/esm/funcs/customersUpdate.js.map +1 -1
  164. package/dist/esm/funcs/domainsCreate.js +4 -4
  165. package/dist/esm/funcs/domainsCreate.js.map +1 -1
  166. package/dist/esm/funcs/domainsDelete.js +4 -4
  167. package/dist/esm/funcs/domainsDelete.js.map +1 -1
  168. package/dist/esm/funcs/domainsList.js +10 -10
  169. package/dist/esm/funcs/domainsList.js.map +1 -1
  170. package/dist/esm/funcs/domainsUpdate.js +4 -4
  171. package/dist/esm/funcs/domainsUpdate.js.map +1 -1
  172. package/dist/esm/funcs/embedTokensCreate.js +4 -4
  173. package/dist/esm/funcs/embedTokensCreate.js.map +1 -1
  174. package/dist/esm/funcs/eventsList.js +32 -32
  175. package/dist/esm/funcs/eventsList.js.map +1 -1
  176. package/dist/esm/funcs/linksCount.js +13 -13
  177. package/dist/esm/funcs/linksCount.js.map +1 -1
  178. package/dist/esm/funcs/linksCreate.js +4 -4
  179. package/dist/esm/funcs/linksCreate.js.map +1 -1
  180. package/dist/esm/funcs/linksCreateMany.js +4 -4
  181. package/dist/esm/funcs/linksCreateMany.js.map +1 -1
  182. package/dist/esm/funcs/linksDelete.js +4 -4
  183. package/dist/esm/funcs/linksDelete.js.map +1 -1
  184. package/dist/esm/funcs/linksDeleteMany.js +4 -4
  185. package/dist/esm/funcs/linksDeleteMany.js.map +1 -1
  186. package/dist/esm/funcs/linksGet.js +8 -8
  187. package/dist/esm/funcs/linksGet.js.map +1 -1
  188. package/dist/esm/funcs/linksList.js +17 -17
  189. package/dist/esm/funcs/linksList.js.map +1 -1
  190. package/dist/esm/funcs/linksUpdate.js +4 -4
  191. package/dist/esm/funcs/linksUpdate.js.map +1 -1
  192. package/dist/esm/funcs/linksUpdateMany.js +4 -4
  193. package/dist/esm/funcs/linksUpdateMany.js.map +1 -1
  194. package/dist/esm/funcs/linksUpsert.js +4 -4
  195. package/dist/esm/funcs/linksUpsert.js.map +1 -1
  196. package/dist/esm/funcs/metatagsGet.js +4 -4
  197. package/dist/esm/funcs/metatagsGet.js.map +1 -1
  198. package/dist/esm/funcs/qrCodesGet.js +4 -4
  199. package/dist/esm/funcs/qrCodesGet.js.map +1 -1
  200. package/dist/esm/funcs/tagsCreate.js +4 -4
  201. package/dist/esm/funcs/tagsCreate.js.map +1 -1
  202. package/dist/esm/funcs/tagsDelete.js +4 -4
  203. package/dist/esm/funcs/tagsDelete.js.map +1 -1
  204. package/dist/esm/funcs/tagsList.js +4 -4
  205. package/dist/esm/funcs/tagsList.js.map +1 -1
  206. package/dist/esm/funcs/tagsUpdate.js +4 -4
  207. package/dist/esm/funcs/tagsUpdate.js.map +1 -1
  208. package/dist/esm/funcs/trackLead.js +4 -4
  209. package/dist/esm/funcs/trackLead.js.map +1 -1
  210. package/dist/esm/funcs/trackSale.js +4 -4
  211. package/dist/esm/funcs/trackSale.js.map +1 -1
  212. package/dist/esm/funcs/workspacesGet.js +4 -4
  213. package/dist/esm/funcs/workspacesGet.js.map +1 -1
  214. package/dist/esm/funcs/workspacesUpdate.js +4 -4
  215. package/dist/esm/funcs/workspacesUpdate.js.map +1 -1
  216. package/dist/esm/hooks/auth.js +1 -2
  217. package/dist/esm/hooks/auth.js.map +1 -1
  218. package/dist/esm/hooks/base-url.js +1 -2
  219. package/dist/esm/hooks/base-url.js.map +1 -1
  220. package/dist/esm/lib/config.d.ts +3 -3
  221. package/dist/esm/lib/config.js +4 -5
  222. package/dist/esm/lib/config.js.map +1 -1
  223. package/dist/esm/lib/encodings.js +18 -19
  224. package/dist/esm/lib/encodings.js.map +1 -1
  225. package/dist/esm/lib/http.js +1 -2
  226. package/dist/esm/lib/http.js.map +1 -1
  227. package/dist/esm/lib/matchers.js +5 -6
  228. package/dist/esm/lib/matchers.js.map +1 -1
  229. package/dist/esm/lib/primitives.js +1 -1
  230. package/dist/esm/lib/primitives.js.map +1 -1
  231. package/dist/esm/lib/retries.js +3 -4
  232. package/dist/esm/lib/retries.js.map +1 -1
  233. package/dist/esm/lib/sdks.js +15 -16
  234. package/dist/esm/lib/sdks.js.map +1 -1
  235. package/dist/esm/lib/security.js +2 -2
  236. package/dist/esm/lib/security.js.map +1 -1
  237. package/dist/esm/lib/url.js +1 -1
  238. package/dist/esm/lib/url.js.map +1 -1
  239. package/dist/esm/models/components/leadcreatedevent.d.ts +177 -0
  240. package/dist/esm/models/components/leadcreatedevent.d.ts.map +1 -1
  241. package/dist/esm/models/components/leadcreatedevent.js +153 -0
  242. package/dist/esm/models/components/leadcreatedevent.js.map +1 -1
  243. package/dist/esm/models/components/leadevent.d.ts +177 -0
  244. package/dist/esm/models/components/leadevent.d.ts.map +1 -1
  245. package/dist/esm/models/components/leadevent.js +150 -0
  246. package/dist/esm/models/components/leadevent.js.map +1 -1
  247. package/dist/esm/models/components/salecreatedevent.d.ts +177 -0
  248. package/dist/esm/models/components/salecreatedevent.d.ts.map +1 -1
  249. package/dist/esm/models/components/salecreatedevent.js +153 -0
  250. package/dist/esm/models/components/salecreatedevent.js.map +1 -1
  251. package/dist/esm/models/components/saleevent.d.ts +177 -0
  252. package/dist/esm/models/components/saleevent.d.ts.map +1 -1
  253. package/dist/esm/models/components/saleevent.js +151 -0
  254. package/dist/esm/models/components/saleevent.js.map +1 -1
  255. package/dist/esm/models/errors/badrequest.js +1 -2
  256. package/dist/esm/models/errors/badrequest.js.map +1 -1
  257. package/dist/esm/models/errors/conflict.js +1 -2
  258. package/dist/esm/models/errors/conflict.js.map +1 -1
  259. package/dist/esm/models/errors/forbidden.js +1 -2
  260. package/dist/esm/models/errors/forbidden.js.map +1 -1
  261. package/dist/esm/models/errors/httpclienterrors.js +2 -2
  262. package/dist/esm/models/errors/httpclienterrors.js.map +1 -1
  263. package/dist/esm/models/errors/internalservererror.js +1 -2
  264. package/dist/esm/models/errors/internalservererror.js.map +1 -1
  265. package/dist/esm/models/errors/inviteexpired.js +1 -2
  266. package/dist/esm/models/errors/inviteexpired.js.map +1 -1
  267. package/dist/esm/models/errors/notfound.js +1 -2
  268. package/dist/esm/models/errors/notfound.js.map +1 -1
  269. package/dist/esm/models/errors/ratelimitexceeded.js +1 -2
  270. package/dist/esm/models/errors/ratelimitexceeded.js.map +1 -1
  271. package/dist/esm/models/errors/unauthorized.js +1 -2
  272. package/dist/esm/models/errors/unauthorized.js.map +1 -1
  273. package/dist/esm/models/errors/unprocessableentity.js +1 -2
  274. package/dist/esm/models/errors/unprocessableentity.js.map +1 -1
  275. package/dist/esm/models/operations/createcustomer.d.ts +178 -0
  276. package/dist/esm/models/operations/createcustomer.d.ts.map +1 -1
  277. package/dist/esm/models/operations/createcustomer.js +151 -0
  278. package/dist/esm/models/operations/createcustomer.js.map +1 -1
  279. package/dist/esm/models/operations/getcustomer.d.ts +178 -0
  280. package/dist/esm/models/operations/getcustomer.d.ts.map +1 -1
  281. package/dist/esm/models/operations/getcustomer.js +151 -0
  282. package/dist/esm/models/operations/getcustomer.js.map +1 -1
  283. package/dist/esm/models/operations/getcustomers.d.ts +178 -0
  284. package/dist/esm/models/operations/getcustomers.d.ts.map +1 -1
  285. package/dist/esm/models/operations/getcustomers.js +148 -0
  286. package/dist/esm/models/operations/getcustomers.js.map +1 -1
  287. package/dist/esm/models/operations/index.d.ts +0 -1
  288. package/dist/esm/models/operations/index.d.ts.map +1 -1
  289. package/dist/esm/models/operations/index.js +0 -1
  290. package/dist/esm/models/operations/index.js.map +1 -1
  291. package/dist/esm/models/operations/updatecustomer.d.ts +178 -0
  292. package/dist/esm/models/operations/updatecustomer.d.ts.map +1 -1
  293. package/dist/esm/models/operations/updatecustomer.js +151 -0
  294. package/dist/esm/models/operations/updatecustomer.js.map +1 -1
  295. package/dist/esm/sdk/sdk.js +11 -22
  296. package/dist/esm/sdk/sdk.js.map +1 -1
  297. package/dist/esm/sdk/track.d.ts +0 -9
  298. package/dist/esm/sdk/track.d.ts.map +1 -1
  299. package/dist/esm/sdk/track.js +0 -12
  300. package/dist/esm/sdk/track.js.map +1 -1
  301. package/docs/sdks/track/README.md +0 -84
  302. package/package.json +1 -1
  303. package/src/funcs/domainsList.ts +2 -2
  304. package/src/funcs/linksList.ts +2 -2
  305. package/src/lib/config.ts +3 -3
  306. package/src/lib/security.ts +1 -1
  307. package/src/models/components/leadcreatedevent.ts +322 -0
  308. package/src/models/components/leadevent.ts +302 -0
  309. package/src/models/components/salecreatedevent.ts +322 -0
  310. package/src/models/components/saleevent.ts +318 -0
  311. package/src/models/operations/createcustomer.ts +319 -0
  312. package/src/models/operations/getcustomer.ts +317 -0
  313. package/src/models/operations/getcustomers.ts +293 -0
  314. package/src/models/operations/index.ts +0 -1
  315. package/src/models/operations/updatecustomer.ts +319 -0
  316. package/src/sdk/track.ts +0 -20
  317. package/dist/commonjs/funcs/trackCustomer.d.ts +0 -18
  318. package/dist/commonjs/funcs/trackCustomer.d.ts.map +0 -1
  319. package/dist/commonjs/funcs/trackCustomer.js +0 -117
  320. package/dist/commonjs/funcs/trackCustomer.js.map +0 -1
  321. package/dist/commonjs/models/operations/trackcustomer.d.ts +0 -81
  322. package/dist/commonjs/models/operations/trackcustomer.d.ts.map +0 -1
  323. package/dist/commonjs/models/operations/trackcustomer.js +0 -98
  324. package/dist/commonjs/models/operations/trackcustomer.js.map +0 -1
  325. package/dist/esm/funcs/trackCustomer.d.ts +0 -18
  326. package/dist/esm/funcs/trackCustomer.d.ts.map +0 -1
  327. package/dist/esm/funcs/trackCustomer.js +0 -90
  328. package/dist/esm/funcs/trackCustomer.js.map +0 -1
  329. package/dist/esm/models/operations/trackcustomer.d.ts +0 -81
  330. package/dist/esm/models/operations/trackcustomer.d.ts.map +0 -1
  331. package/dist/esm/models/operations/trackcustomer.js +0 -68
  332. package/dist/esm/models/operations/trackcustomer.js.map +0 -1
  333. package/src/funcs/trackCustomer.ts +0 -175
  334. package/src/models/operations/trackcustomer.ts +0 -163
@@ -7,7 +7,6 @@
7
7
 
8
8
  * [lead](#lead) - Track a lead
9
9
  * [sale](#sale) - Track a sale
10
- * [~~customer~~](#customer) - Track a customer :warning: **Deprecated**
11
10
 
12
11
  ## lead
13
12
 
@@ -158,89 +157,6 @@ run();
158
157
 
159
158
  ### Errors
160
159
 
161
- | Error Type | Status Code | Content Type |
162
- | -------------------------- | -------------------------- | -------------------------- |
163
- | errors.BadRequest | 400 | application/json |
164
- | errors.Unauthorized | 401 | application/json |
165
- | errors.Forbidden | 403 | application/json |
166
- | errors.NotFound | 404 | application/json |
167
- | errors.Conflict | 409 | application/json |
168
- | errors.InviteExpired | 410 | application/json |
169
- | errors.UnprocessableEntity | 422 | application/json |
170
- | errors.RateLimitExceeded | 429 | application/json |
171
- | errors.InternalServerError | 500 | application/json |
172
- | errors.SDKError | 4XX, 5XX | \*/\* |
173
-
174
- ## ~~customer~~
175
-
176
- Track a customer for an authenticated workspace.
177
-
178
- > :warning: **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible.
179
-
180
- ### Example Usage
181
-
182
- ```typescript
183
- import { Dub } from "dub";
184
-
185
- const dub = new Dub({
186
- token: "DUB_API_KEY",
187
- });
188
-
189
- async function run() {
190
- const result = await dub.track.customer();
191
-
192
- // Handle the result
193
- console.log(result);
194
- }
195
-
196
- run();
197
- ```
198
-
199
- ### Standalone function
200
-
201
- The standalone function version of this method:
202
-
203
- ```typescript
204
- import { DubCore } from "dub/core.js";
205
- import { trackCustomer } from "dub/funcs/trackCustomer.js";
206
-
207
- // Use `DubCore` for best tree-shaking performance.
208
- // You can create one instance of it to use across an application.
209
- const dub = new DubCore({
210
- token: "DUB_API_KEY",
211
- });
212
-
213
- async function run() {
214
- const res = await trackCustomer(dub);
215
-
216
- if (!res.ok) {
217
- throw res.error;
218
- }
219
-
220
- const { value: result } = res;
221
-
222
- // Handle the result
223
- console.log(result);
224
- }
225
-
226
- run();
227
- ```
228
-
229
- ### Parameters
230
-
231
- | Parameter | Type | Required | Description |
232
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
233
- | `request` | [operations.TrackCustomerRequestBody](../../models/operations/trackcustomerrequestbody.md) | :heavy_check_mark: | The request object to use for the request. |
234
- | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
235
- | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
236
- | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
237
-
238
- ### Response
239
-
240
- **Promise\<[operations.TrackCustomerResponseBody](../../models/operations/trackcustomerresponsebody.md)\>**
241
-
242
- ### Errors
243
-
244
160
  | Error Type | Status Code | Content Type |
245
161
  | -------------------------- | -------------------------- | -------------------------- |
246
162
  | errors.BadRequest | 400 | application/json |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dub",
3
- "version": "0.46.7",
3
+ "version": "0.46.9",
4
4
  "author": "Dub",
5
5
  "tshy": {
6
6
  "exports": {
@@ -209,7 +209,7 @@ export async function domainsList(
209
209
  >;
210
210
  "~next"?: { page: number };
211
211
  } => {
212
- const page = request?.page || 0;
212
+ const page = request?.page ?? 1;
213
213
  const nextPage = page + 1;
214
214
 
215
215
  if (!responseData) {
@@ -221,7 +221,7 @@ export async function domainsList(
221
221
  if (!Array.isArray(results) || !results.length) {
222
222
  return { next: () => null };
223
223
  }
224
- const limit = request?.pageSize || 0;
224
+ const limit = request?.pageSize ?? 50;
225
225
  if (results.length < limit) {
226
226
  return { next: () => null };
227
227
  }
@@ -214,7 +214,7 @@ export async function linksList(
214
214
  >;
215
215
  "~next"?: { page: number };
216
216
  } => {
217
- const page = request?.page || 0;
217
+ const page = request?.page ?? 1;
218
218
  const nextPage = page + 1;
219
219
 
220
220
  if (!responseData) {
@@ -226,7 +226,7 @@ export async function linksList(
226
226
  if (!Array.isArray(results) || !results.length) {
227
227
  return { next: () => null };
228
228
  }
229
- const limit = request?.pageSize || 0;
229
+ const limit = request?.pageSize ?? 100;
230
230
  if (results.length < limit) {
231
231
  return { next: () => null };
232
232
  }
package/src/lib/config.ts CHANGED
@@ -57,7 +57,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
57
57
  export const SDK_METADATA = {
58
58
  language: "typescript",
59
59
  openapiDocVersion: "0.0.1",
60
- sdkVersion: "0.46.7",
61
- genVersion: "2.481.0",
62
- userAgent: "speakeasy-sdk/typescript 0.46.7 2.481.0 0.0.1 dub",
60
+ sdkVersion: "0.46.9",
61
+ genVersion: "2.484.0",
62
+ userAgent: "speakeasy-sdk/typescript 0.46.9 2.484.0 0.0.1 dub",
63
63
  } as const;
@@ -117,7 +117,7 @@ export function resolveSecurity(
117
117
  ...options: SecurityInput[][]
118
118
  ): SecurityState | null {
119
119
  const state: SecurityState = {
120
- basic: { username: "", password: "" },
120
+ basic: {},
121
121
  headers: {},
122
122
  queryParams: {},
123
123
  cookies: {},
@@ -20,6 +20,60 @@ export const LeadCreatedEventEvent = {
20
20
  } as const;
21
21
  export type LeadCreatedEventEvent = ClosedEnum<typeof LeadCreatedEventEvent>;
22
22
 
23
+ export type LeadCreatedEventDataLink = {
24
+ /**
25
+ * The unique ID of the short link.
26
+ */
27
+ id: string;
28
+ /**
29
+ * The domain of the short link. If not provided, the primary domain for the workspace will be used (or `dub.sh` if the workspace has no domains).
30
+ */
31
+ domain: string;
32
+ /**
33
+ * The short link slug. If not provided, a random 7-character slug will be generated.
34
+ */
35
+ key: string;
36
+ /**
37
+ * The full URL of the short link, including the https protocol (e.g. `https://dub.sh/try`).
38
+ */
39
+ shortLink: string;
40
+ /**
41
+ * The ID of the program the short link is associated with.
42
+ */
43
+ programId: string | null;
44
+ };
45
+
46
+ export type LeadCreatedEventPartner = {
47
+ id: string;
48
+ name: string;
49
+ email: string;
50
+ image?: string | null | undefined;
51
+ };
52
+
53
+ export const LeadCreatedEventType = {
54
+ Percentage: "percentage",
55
+ Flat: "flat",
56
+ } as const;
57
+ export type LeadCreatedEventType = ClosedEnum<typeof LeadCreatedEventType>;
58
+
59
+ export const LeadCreatedEventInterval = {
60
+ Month: "month",
61
+ Year: "year",
62
+ } as const;
63
+ export type LeadCreatedEventInterval = ClosedEnum<
64
+ typeof LeadCreatedEventInterval
65
+ >;
66
+
67
+ export type LeadCreatedEventDiscount = {
68
+ id: string;
69
+ couponId: string | null;
70
+ couponTestId: string | null;
71
+ amount: number;
72
+ type: LeadCreatedEventType;
73
+ duration: number | null;
74
+ interval: LeadCreatedEventInterval | null;
75
+ };
76
+
23
77
  export type LeadCreatedEventCustomer = {
24
78
  /**
25
79
  * The unique identifier of the customer in Dub.
@@ -41,10 +95,17 @@ export type LeadCreatedEventCustomer = {
41
95
  * Avatar URL of the customer.
42
96
  */
43
97
  avatar?: string | null | undefined;
98
+ /**
99
+ * Country of the customer.
100
+ */
101
+ country?: string | null | undefined;
44
102
  /**
45
103
  * The date the customer was created.
46
104
  */
47
105
  createdAt: string;
106
+ link?: LeadCreatedEventDataLink | null | undefined;
107
+ partner?: LeadCreatedEventPartner | null | undefined;
108
+ discount?: LeadCreatedEventDiscount | null | undefined;
48
109
  };
49
110
 
50
111
  export type LeadCreatedEventClick = {
@@ -497,6 +558,249 @@ export namespace LeadCreatedEventEvent$ {
497
558
  export const outboundSchema = LeadCreatedEventEvent$outboundSchema;
498
559
  }
499
560
 
561
+ /** @internal */
562
+ export const LeadCreatedEventDataLink$inboundSchema: z.ZodType<
563
+ LeadCreatedEventDataLink,
564
+ z.ZodTypeDef,
565
+ unknown
566
+ > = z.object({
567
+ id: z.string(),
568
+ domain: z.string(),
569
+ key: z.string(),
570
+ shortLink: z.string(),
571
+ programId: z.nullable(z.string()),
572
+ });
573
+
574
+ /** @internal */
575
+ export type LeadCreatedEventDataLink$Outbound = {
576
+ id: string;
577
+ domain: string;
578
+ key: string;
579
+ shortLink: string;
580
+ programId: string | null;
581
+ };
582
+
583
+ /** @internal */
584
+ export const LeadCreatedEventDataLink$outboundSchema: z.ZodType<
585
+ LeadCreatedEventDataLink$Outbound,
586
+ z.ZodTypeDef,
587
+ LeadCreatedEventDataLink
588
+ > = z.object({
589
+ id: z.string(),
590
+ domain: z.string(),
591
+ key: z.string(),
592
+ shortLink: z.string(),
593
+ programId: z.nullable(z.string()),
594
+ });
595
+
596
+ /**
597
+ * @internal
598
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
599
+ */
600
+ export namespace LeadCreatedEventDataLink$ {
601
+ /** @deprecated use `LeadCreatedEventDataLink$inboundSchema` instead. */
602
+ export const inboundSchema = LeadCreatedEventDataLink$inboundSchema;
603
+ /** @deprecated use `LeadCreatedEventDataLink$outboundSchema` instead. */
604
+ export const outboundSchema = LeadCreatedEventDataLink$outboundSchema;
605
+ /** @deprecated use `LeadCreatedEventDataLink$Outbound` instead. */
606
+ export type Outbound = LeadCreatedEventDataLink$Outbound;
607
+ }
608
+
609
+ export function leadCreatedEventDataLinkToJSON(
610
+ leadCreatedEventDataLink: LeadCreatedEventDataLink,
611
+ ): string {
612
+ return JSON.stringify(
613
+ LeadCreatedEventDataLink$outboundSchema.parse(leadCreatedEventDataLink),
614
+ );
615
+ }
616
+
617
+ export function leadCreatedEventDataLinkFromJSON(
618
+ jsonString: string,
619
+ ): SafeParseResult<LeadCreatedEventDataLink, SDKValidationError> {
620
+ return safeParse(
621
+ jsonString,
622
+ (x) => LeadCreatedEventDataLink$inboundSchema.parse(JSON.parse(x)),
623
+ `Failed to parse 'LeadCreatedEventDataLink' from JSON`,
624
+ );
625
+ }
626
+
627
+ /** @internal */
628
+ export const LeadCreatedEventPartner$inboundSchema: z.ZodType<
629
+ LeadCreatedEventPartner,
630
+ z.ZodTypeDef,
631
+ unknown
632
+ > = z.object({
633
+ id: z.string(),
634
+ name: z.string(),
635
+ email: z.string(),
636
+ image: z.nullable(z.string()).optional(),
637
+ });
638
+
639
+ /** @internal */
640
+ export type LeadCreatedEventPartner$Outbound = {
641
+ id: string;
642
+ name: string;
643
+ email: string;
644
+ image?: string | null | undefined;
645
+ };
646
+
647
+ /** @internal */
648
+ export const LeadCreatedEventPartner$outboundSchema: z.ZodType<
649
+ LeadCreatedEventPartner$Outbound,
650
+ z.ZodTypeDef,
651
+ LeadCreatedEventPartner
652
+ > = z.object({
653
+ id: z.string(),
654
+ name: z.string(),
655
+ email: z.string(),
656
+ image: z.nullable(z.string()).optional(),
657
+ });
658
+
659
+ /**
660
+ * @internal
661
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
662
+ */
663
+ export namespace LeadCreatedEventPartner$ {
664
+ /** @deprecated use `LeadCreatedEventPartner$inboundSchema` instead. */
665
+ export const inboundSchema = LeadCreatedEventPartner$inboundSchema;
666
+ /** @deprecated use `LeadCreatedEventPartner$outboundSchema` instead. */
667
+ export const outboundSchema = LeadCreatedEventPartner$outboundSchema;
668
+ /** @deprecated use `LeadCreatedEventPartner$Outbound` instead. */
669
+ export type Outbound = LeadCreatedEventPartner$Outbound;
670
+ }
671
+
672
+ export function leadCreatedEventPartnerToJSON(
673
+ leadCreatedEventPartner: LeadCreatedEventPartner,
674
+ ): string {
675
+ return JSON.stringify(
676
+ LeadCreatedEventPartner$outboundSchema.parse(leadCreatedEventPartner),
677
+ );
678
+ }
679
+
680
+ export function leadCreatedEventPartnerFromJSON(
681
+ jsonString: string,
682
+ ): SafeParseResult<LeadCreatedEventPartner, SDKValidationError> {
683
+ return safeParse(
684
+ jsonString,
685
+ (x) => LeadCreatedEventPartner$inboundSchema.parse(JSON.parse(x)),
686
+ `Failed to parse 'LeadCreatedEventPartner' from JSON`,
687
+ );
688
+ }
689
+
690
+ /** @internal */
691
+ export const LeadCreatedEventType$inboundSchema: z.ZodNativeEnum<
692
+ typeof LeadCreatedEventType
693
+ > = z.nativeEnum(LeadCreatedEventType);
694
+
695
+ /** @internal */
696
+ export const LeadCreatedEventType$outboundSchema: z.ZodNativeEnum<
697
+ typeof LeadCreatedEventType
698
+ > = LeadCreatedEventType$inboundSchema;
699
+
700
+ /**
701
+ * @internal
702
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
703
+ */
704
+ export namespace LeadCreatedEventType$ {
705
+ /** @deprecated use `LeadCreatedEventType$inboundSchema` instead. */
706
+ export const inboundSchema = LeadCreatedEventType$inboundSchema;
707
+ /** @deprecated use `LeadCreatedEventType$outboundSchema` instead. */
708
+ export const outboundSchema = LeadCreatedEventType$outboundSchema;
709
+ }
710
+
711
+ /** @internal */
712
+ export const LeadCreatedEventInterval$inboundSchema: z.ZodNativeEnum<
713
+ typeof LeadCreatedEventInterval
714
+ > = z.nativeEnum(LeadCreatedEventInterval);
715
+
716
+ /** @internal */
717
+ export const LeadCreatedEventInterval$outboundSchema: z.ZodNativeEnum<
718
+ typeof LeadCreatedEventInterval
719
+ > = LeadCreatedEventInterval$inboundSchema;
720
+
721
+ /**
722
+ * @internal
723
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
724
+ */
725
+ export namespace LeadCreatedEventInterval$ {
726
+ /** @deprecated use `LeadCreatedEventInterval$inboundSchema` instead. */
727
+ export const inboundSchema = LeadCreatedEventInterval$inboundSchema;
728
+ /** @deprecated use `LeadCreatedEventInterval$outboundSchema` instead. */
729
+ export const outboundSchema = LeadCreatedEventInterval$outboundSchema;
730
+ }
731
+
732
+ /** @internal */
733
+ export const LeadCreatedEventDiscount$inboundSchema: z.ZodType<
734
+ LeadCreatedEventDiscount,
735
+ z.ZodTypeDef,
736
+ unknown
737
+ > = z.object({
738
+ id: z.string(),
739
+ couponId: z.nullable(z.string()),
740
+ couponTestId: z.nullable(z.string()),
741
+ amount: z.number(),
742
+ type: LeadCreatedEventType$inboundSchema,
743
+ duration: z.nullable(z.number()),
744
+ interval: z.nullable(LeadCreatedEventInterval$inboundSchema),
745
+ });
746
+
747
+ /** @internal */
748
+ export type LeadCreatedEventDiscount$Outbound = {
749
+ id: string;
750
+ couponId: string | null;
751
+ couponTestId: string | null;
752
+ amount: number;
753
+ type: string;
754
+ duration: number | null;
755
+ interval: string | null;
756
+ };
757
+
758
+ /** @internal */
759
+ export const LeadCreatedEventDiscount$outboundSchema: z.ZodType<
760
+ LeadCreatedEventDiscount$Outbound,
761
+ z.ZodTypeDef,
762
+ LeadCreatedEventDiscount
763
+ > = z.object({
764
+ id: z.string(),
765
+ couponId: z.nullable(z.string()),
766
+ couponTestId: z.nullable(z.string()),
767
+ amount: z.number(),
768
+ type: LeadCreatedEventType$outboundSchema,
769
+ duration: z.nullable(z.number()),
770
+ interval: z.nullable(LeadCreatedEventInterval$outboundSchema),
771
+ });
772
+
773
+ /**
774
+ * @internal
775
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
776
+ */
777
+ export namespace LeadCreatedEventDiscount$ {
778
+ /** @deprecated use `LeadCreatedEventDiscount$inboundSchema` instead. */
779
+ export const inboundSchema = LeadCreatedEventDiscount$inboundSchema;
780
+ /** @deprecated use `LeadCreatedEventDiscount$outboundSchema` instead. */
781
+ export const outboundSchema = LeadCreatedEventDiscount$outboundSchema;
782
+ /** @deprecated use `LeadCreatedEventDiscount$Outbound` instead. */
783
+ export type Outbound = LeadCreatedEventDiscount$Outbound;
784
+ }
785
+
786
+ export function leadCreatedEventDiscountToJSON(
787
+ leadCreatedEventDiscount: LeadCreatedEventDiscount,
788
+ ): string {
789
+ return JSON.stringify(
790
+ LeadCreatedEventDiscount$outboundSchema.parse(leadCreatedEventDiscount),
791
+ );
792
+ }
793
+
794
+ export function leadCreatedEventDiscountFromJSON(
795
+ jsonString: string,
796
+ ): SafeParseResult<LeadCreatedEventDiscount, SDKValidationError> {
797
+ return safeParse(
798
+ jsonString,
799
+ (x) => LeadCreatedEventDiscount$inboundSchema.parse(JSON.parse(x)),
800
+ `Failed to parse 'LeadCreatedEventDiscount' from JSON`,
801
+ );
802
+ }
803
+
500
804
  /** @internal */
501
805
  export const LeadCreatedEventCustomer$inboundSchema: z.ZodType<
502
806
  LeadCreatedEventCustomer,
@@ -508,7 +812,14 @@ export const LeadCreatedEventCustomer$inboundSchema: z.ZodType<
508
812
  name: z.string(),
509
813
  email: z.nullable(z.string()).optional(),
510
814
  avatar: z.nullable(z.string()).optional(),
815
+ country: z.nullable(z.string()).optional(),
511
816
  createdAt: z.string(),
817
+ link: z.nullable(z.lazy(() => LeadCreatedEventDataLink$inboundSchema))
818
+ .optional(),
819
+ partner: z.nullable(z.lazy(() => LeadCreatedEventPartner$inboundSchema))
820
+ .optional(),
821
+ discount: z.nullable(z.lazy(() => LeadCreatedEventDiscount$inboundSchema))
822
+ .optional(),
512
823
  });
513
824
 
514
825
  /** @internal */
@@ -518,7 +829,11 @@ export type LeadCreatedEventCustomer$Outbound = {
518
829
  name: string;
519
830
  email?: string | null | undefined;
520
831
  avatar?: string | null | undefined;
832
+ country?: string | null | undefined;
521
833
  createdAt: string;
834
+ link?: LeadCreatedEventDataLink$Outbound | null | undefined;
835
+ partner?: LeadCreatedEventPartner$Outbound | null | undefined;
836
+ discount?: LeadCreatedEventDiscount$Outbound | null | undefined;
522
837
  };
523
838
 
524
839
  /** @internal */
@@ -532,7 +847,14 @@ export const LeadCreatedEventCustomer$outboundSchema: z.ZodType<
532
847
  name: z.string(),
533
848
  email: z.nullable(z.string()).optional(),
534
849
  avatar: z.nullable(z.string()).optional(),
850
+ country: z.nullable(z.string()).optional(),
535
851
  createdAt: z.string(),
852
+ link: z.nullable(z.lazy(() => LeadCreatedEventDataLink$outboundSchema))
853
+ .optional(),
854
+ partner: z.nullable(z.lazy(() => LeadCreatedEventPartner$outboundSchema))
855
+ .optional(),
856
+ discount: z.nullable(z.lazy(() => LeadCreatedEventDiscount$outboundSchema))
857
+ .optional(),
536
858
  });
537
859
 
538
860
  /**