dub 0.44.0 → 0.45.1

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 (456) hide show
  1. package/README.md +31 -47
  2. package/dist/commonjs/funcs/analyticsRetrieve.d.ts.map +1 -1
  3. package/dist/commonjs/funcs/analyticsRetrieve.js +9 -4
  4. package/dist/commonjs/funcs/analyticsRetrieve.js.map +1 -1
  5. package/dist/commonjs/funcs/customersCreate.d.ts +16 -0
  6. package/dist/commonjs/funcs/customersCreate.d.ts.map +1 -0
  7. package/dist/commonjs/funcs/customersCreate.js +114 -0
  8. package/dist/commonjs/funcs/customersCreate.js.map +1 -0
  9. package/dist/commonjs/funcs/customersDelete.d.ts +16 -0
  10. package/dist/commonjs/funcs/customersDelete.d.ts.map +1 -0
  11. package/dist/commonjs/funcs/customersDelete.js +120 -0
  12. package/dist/commonjs/funcs/customersDelete.js.map +1 -0
  13. package/dist/commonjs/funcs/customersGet.d.ts +16 -0
  14. package/dist/commonjs/funcs/customersGet.d.ts.map +1 -0
  15. package/dist/commonjs/funcs/customersGet.js +117 -0
  16. package/dist/commonjs/funcs/customersGet.js.map +1 -0
  17. package/dist/commonjs/funcs/customersList.d.ts +16 -0
  18. package/dist/commonjs/funcs/customersList.d.ts.map +1 -0
  19. package/dist/commonjs/funcs/customersList.js +103 -0
  20. package/dist/commonjs/funcs/customersList.js.map +1 -0
  21. package/dist/commonjs/funcs/customersUpdate.d.ts +16 -0
  22. package/dist/commonjs/funcs/customersUpdate.d.ts.map +1 -0
  23. package/dist/commonjs/funcs/customersUpdate.js +122 -0
  24. package/dist/commonjs/funcs/customersUpdate.js.map +1 -0
  25. package/dist/commonjs/funcs/domainsCreate.d.ts.map +1 -1
  26. package/dist/commonjs/funcs/domainsCreate.js +8 -4
  27. package/dist/commonjs/funcs/domainsCreate.js.map +1 -1
  28. package/dist/commonjs/funcs/domainsDelete.d.ts.map +1 -1
  29. package/dist/commonjs/funcs/domainsDelete.js +8 -4
  30. package/dist/commonjs/funcs/domainsDelete.js.map +1 -1
  31. package/dist/commonjs/funcs/domainsList.d.ts.map +1 -1
  32. package/dist/commonjs/funcs/domainsList.js +8 -4
  33. package/dist/commonjs/funcs/domainsList.js.map +1 -1
  34. package/dist/commonjs/funcs/domainsUpdate.d.ts.map +1 -1
  35. package/dist/commonjs/funcs/domainsUpdate.js +8 -4
  36. package/dist/commonjs/funcs/domainsUpdate.js.map +1 -1
  37. package/dist/commonjs/funcs/eventsList.d.ts.map +1 -1
  38. package/dist/commonjs/funcs/eventsList.js +9 -4
  39. package/dist/commonjs/funcs/eventsList.js.map +1 -1
  40. package/dist/commonjs/funcs/linksCount.d.ts.map +1 -1
  41. package/dist/commonjs/funcs/linksCount.js +8 -4
  42. package/dist/commonjs/funcs/linksCount.js.map +1 -1
  43. package/dist/commonjs/funcs/linksCreate.d.ts.map +1 -1
  44. package/dist/commonjs/funcs/linksCreate.js +8 -4
  45. package/dist/commonjs/funcs/linksCreate.js.map +1 -1
  46. package/dist/commonjs/funcs/linksCreateMany.d.ts.map +1 -1
  47. package/dist/commonjs/funcs/linksCreateMany.js +8 -4
  48. package/dist/commonjs/funcs/linksCreateMany.js.map +1 -1
  49. package/dist/commonjs/funcs/linksDelete.d.ts.map +1 -1
  50. package/dist/commonjs/funcs/linksDelete.js +8 -4
  51. package/dist/commonjs/funcs/linksDelete.js.map +1 -1
  52. package/dist/commonjs/funcs/linksDeleteMany.d.ts.map +1 -1
  53. package/dist/commonjs/funcs/linksDeleteMany.js +8 -4
  54. package/dist/commonjs/funcs/linksDeleteMany.js.map +1 -1
  55. package/dist/commonjs/funcs/linksGet.d.ts.map +1 -1
  56. package/dist/commonjs/funcs/linksGet.js +8 -4
  57. package/dist/commonjs/funcs/linksGet.js.map +1 -1
  58. package/dist/commonjs/funcs/linksList.d.ts.map +1 -1
  59. package/dist/commonjs/funcs/linksList.js +8 -4
  60. package/dist/commonjs/funcs/linksList.js.map +1 -1
  61. package/dist/commonjs/funcs/linksUpdate.d.ts.map +1 -1
  62. package/dist/commonjs/funcs/linksUpdate.js +8 -4
  63. package/dist/commonjs/funcs/linksUpdate.js.map +1 -1
  64. package/dist/commonjs/funcs/linksUpdateMany.d.ts.map +1 -1
  65. package/dist/commonjs/funcs/linksUpdateMany.js +8 -4
  66. package/dist/commonjs/funcs/linksUpdateMany.js.map +1 -1
  67. package/dist/commonjs/funcs/linksUpsert.d.ts.map +1 -1
  68. package/dist/commonjs/funcs/linksUpsert.js +8 -4
  69. package/dist/commonjs/funcs/linksUpsert.js.map +1 -1
  70. package/dist/commonjs/funcs/metatagsGet.d.ts.map +1 -1
  71. package/dist/commonjs/funcs/metatagsGet.js +8 -4
  72. package/dist/commonjs/funcs/metatagsGet.js.map +1 -1
  73. package/dist/commonjs/funcs/qrCodesGet.d.ts.map +1 -1
  74. package/dist/commonjs/funcs/qrCodesGet.js +8 -4
  75. package/dist/commonjs/funcs/qrCodesGet.js.map +1 -1
  76. package/dist/commonjs/funcs/tagsCreate.d.ts.map +1 -1
  77. package/dist/commonjs/funcs/tagsCreate.js +8 -4
  78. package/dist/commonjs/funcs/tagsCreate.js.map +1 -1
  79. package/dist/commonjs/funcs/tagsDelete.d.ts.map +1 -1
  80. package/dist/commonjs/funcs/tagsDelete.js +8 -4
  81. package/dist/commonjs/funcs/tagsDelete.js.map +1 -1
  82. package/dist/commonjs/funcs/tagsList.d.ts.map +1 -1
  83. package/dist/commonjs/funcs/tagsList.js +8 -4
  84. package/dist/commonjs/funcs/tagsList.js.map +1 -1
  85. package/dist/commonjs/funcs/tagsUpdate.d.ts.map +1 -1
  86. package/dist/commonjs/funcs/tagsUpdate.js +8 -4
  87. package/dist/commonjs/funcs/tagsUpdate.js.map +1 -1
  88. package/dist/commonjs/funcs/trackCustomer.d.ts +2 -0
  89. package/dist/commonjs/funcs/trackCustomer.d.ts.map +1 -1
  90. package/dist/commonjs/funcs/trackCustomer.js +10 -4
  91. package/dist/commonjs/funcs/trackCustomer.js.map +1 -1
  92. package/dist/commonjs/funcs/trackLead.d.ts.map +1 -1
  93. package/dist/commonjs/funcs/trackLead.js +8 -4
  94. package/dist/commonjs/funcs/trackLead.js.map +1 -1
  95. package/dist/commonjs/funcs/trackSale.d.ts.map +1 -1
  96. package/dist/commonjs/funcs/trackSale.js +8 -4
  97. package/dist/commonjs/funcs/trackSale.js.map +1 -1
  98. package/dist/commonjs/funcs/workspacesGet.d.ts.map +1 -1
  99. package/dist/commonjs/funcs/workspacesGet.js +8 -4
  100. package/dist/commonjs/funcs/workspacesGet.js.map +1 -1
  101. package/dist/commonjs/funcs/workspacesUpdate.d.ts.map +1 -1
  102. package/dist/commonjs/funcs/workspacesUpdate.js +8 -4
  103. package/dist/commonjs/funcs/workspacesUpdate.js.map +1 -1
  104. package/dist/commonjs/hooks/types.d.ts +4 -0
  105. package/dist/commonjs/hooks/types.d.ts.map +1 -1
  106. package/dist/commonjs/lib/config.d.ts +3 -3
  107. package/dist/commonjs/lib/config.js +3 -3
  108. package/dist/commonjs/lib/config.js.map +1 -1
  109. package/dist/commonjs/lib/primitives.d.ts +4 -0
  110. package/dist/commonjs/lib/primitives.d.ts.map +1 -1
  111. package/dist/commonjs/lib/primitives.js +13 -1
  112. package/dist/commonjs/lib/primitives.js.map +1 -1
  113. package/dist/commonjs/lib/retries.d.ts +20 -0
  114. package/dist/commonjs/lib/retries.d.ts.map +1 -1
  115. package/dist/commonjs/lib/retries.js +51 -27
  116. package/dist/commonjs/lib/retries.js.map +1 -1
  117. package/dist/commonjs/lib/sdks.d.ts +2 -2
  118. package/dist/commonjs/lib/sdks.d.ts.map +1 -1
  119. package/dist/commonjs/lib/sdks.js +14 -12
  120. package/dist/commonjs/lib/sdks.js.map +1 -1
  121. package/dist/commonjs/lib/security.d.ts +20 -1
  122. package/dist/commonjs/lib/security.d.ts.map +1 -1
  123. package/dist/commonjs/lib/security.js +11 -1
  124. package/dist/commonjs/lib/security.js.map +1 -1
  125. package/dist/commonjs/models/components/leadcreatedevent.d.ts +28 -6
  126. package/dist/commonjs/models/components/leadcreatedevent.d.ts.map +1 -1
  127. package/dist/commonjs/models/components/leadcreatedevent.js +10 -6
  128. package/dist/commonjs/models/components/leadcreatedevent.js.map +1 -1
  129. package/dist/commonjs/models/components/leadevent.d.ts +26 -4
  130. package/dist/commonjs/models/components/leadevent.d.ts.map +1 -1
  131. package/dist/commonjs/models/components/leadevent.js +8 -4
  132. package/dist/commonjs/models/components/leadevent.js.map +1 -1
  133. package/dist/commonjs/models/components/salecreatedevent.d.ts +28 -6
  134. package/dist/commonjs/models/components/salecreatedevent.d.ts.map +1 -1
  135. package/dist/commonjs/models/components/salecreatedevent.js +10 -6
  136. package/dist/commonjs/models/components/salecreatedevent.js.map +1 -1
  137. package/dist/commonjs/models/components/saleevent.d.ts +26 -4
  138. package/dist/commonjs/models/components/saleevent.d.ts.map +1 -1
  139. package/dist/commonjs/models/components/saleevent.js +8 -4
  140. package/dist/commonjs/models/components/saleevent.js.map +1 -1
  141. package/dist/commonjs/models/components/workspaceschema.d.ts +21 -1
  142. package/dist/commonjs/models/components/workspaceschema.d.ts.map +1 -1
  143. package/dist/commonjs/models/components/workspaceschema.js +8 -0
  144. package/dist/commonjs/models/components/workspaceschema.js.map +1 -1
  145. package/dist/commonjs/models/operations/createcustomer.d.ts +97 -0
  146. package/dist/commonjs/models/operations/createcustomer.d.ts.map +1 -0
  147. package/dist/commonjs/models/operations/createcustomer.js +85 -0
  148. package/dist/commonjs/models/operations/createcustomer.js.map +1 -0
  149. package/dist/commonjs/models/operations/deletecustomer.d.ts +57 -0
  150. package/dist/commonjs/models/operations/deletecustomer.d.ts.map +1 -0
  151. package/dist/commonjs/models/operations/deletecustomer.js +69 -0
  152. package/dist/commonjs/models/operations/deletecustomer.js.map +1 -0
  153. package/dist/commonjs/models/operations/getcustomer.d.ts +82 -0
  154. package/dist/commonjs/models/operations/getcustomer.d.ts.map +1 -0
  155. package/dist/commonjs/models/operations/getcustomer.js +79 -0
  156. package/dist/commonjs/models/operations/getcustomer.js.map +1 -0
  157. package/dist/commonjs/models/operations/getcustomers.d.ts +53 -0
  158. package/dist/commonjs/models/operations/getcustomers.d.ts.map +1 -0
  159. package/dist/commonjs/models/operations/getcustomers.js +60 -0
  160. package/dist/commonjs/models/operations/getcustomers.js.map +1 -0
  161. package/dist/commonjs/models/operations/getlinks.d.ts +1 -1
  162. package/dist/commonjs/models/operations/getlinkscount.d.ts +1 -1
  163. package/dist/commonjs/models/operations/index.d.ts +5 -0
  164. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  165. package/dist/commonjs/models/operations/index.js +5 -0
  166. package/dist/commonjs/models/operations/index.js.map +1 -1
  167. package/dist/commonjs/models/operations/listevents.d.ts +28 -1
  168. package/dist/commonjs/models/operations/listevents.d.ts.map +1 -1
  169. package/dist/commonjs/models/operations/listevents.js +18 -1
  170. package/dist/commonjs/models/operations/listevents.js.map +1 -1
  171. package/dist/commonjs/models/operations/retrieveanalytics.d.ts +28 -1
  172. package/dist/commonjs/models/operations/retrieveanalytics.d.ts.map +1 -1
  173. package/dist/commonjs/models/operations/retrieveanalytics.js +18 -1
  174. package/dist/commonjs/models/operations/retrieveanalytics.js.map +1 -1
  175. package/dist/commonjs/models/operations/tracklead.d.ts +11 -4
  176. package/dist/commonjs/models/operations/tracklead.d.ts.map +1 -1
  177. package/dist/commonjs/models/operations/tracklead.js +6 -4
  178. package/dist/commonjs/models/operations/tracklead.js.map +1 -1
  179. package/dist/commonjs/models/operations/tracksale.d.ts +11 -2
  180. package/dist/commonjs/models/operations/tracksale.d.ts.map +1 -1
  181. package/dist/commonjs/models/operations/tracksale.js +6 -2
  182. package/dist/commonjs/models/operations/tracksale.js.map +1 -1
  183. package/dist/commonjs/models/operations/updatecustomer.d.ts +125 -0
  184. package/dist/commonjs/models/operations/updatecustomer.d.ts.map +1 -0
  185. package/dist/commonjs/models/operations/updatecustomer.js +116 -0
  186. package/dist/commonjs/models/operations/updatecustomer.js.map +1 -0
  187. package/dist/commonjs/sdk/customers.d.ts +40 -0
  188. package/dist/commonjs/sdk/customers.d.ts.map +1 -0
  189. package/dist/commonjs/sdk/customers.js +62 -0
  190. package/dist/commonjs/sdk/customers.js.map +1 -0
  191. package/dist/commonjs/sdk/sdk.d.ts +7 -4
  192. package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
  193. package/dist/commonjs/sdk/sdk.js +13 -8
  194. package/dist/commonjs/sdk/sdk.js.map +1 -1
  195. package/dist/commonjs/sdk/track.d.ts +2 -0
  196. package/dist/commonjs/sdk/track.d.ts.map +1 -1
  197. package/dist/commonjs/sdk/track.js +2 -0
  198. package/dist/commonjs/sdk/track.js.map +1 -1
  199. package/dist/esm/funcs/analyticsRetrieve.d.ts.map +1 -1
  200. package/dist/esm/funcs/analyticsRetrieve.js +9 -4
  201. package/dist/esm/funcs/analyticsRetrieve.js.map +1 -1
  202. package/dist/esm/funcs/customersCreate.d.ts +16 -0
  203. package/dist/esm/funcs/customersCreate.d.ts.map +1 -0
  204. package/dist/esm/funcs/customersCreate.js +87 -0
  205. package/dist/esm/funcs/customersCreate.js.map +1 -0
  206. package/dist/esm/funcs/customersDelete.d.ts +16 -0
  207. package/dist/esm/funcs/customersDelete.d.ts.map +1 -0
  208. package/dist/esm/funcs/customersDelete.js +93 -0
  209. package/dist/esm/funcs/customersDelete.js.map +1 -0
  210. package/dist/esm/funcs/customersGet.d.ts +16 -0
  211. package/dist/esm/funcs/customersGet.d.ts.map +1 -0
  212. package/dist/esm/funcs/customersGet.js +90 -0
  213. package/dist/esm/funcs/customersGet.js.map +1 -0
  214. package/dist/esm/funcs/customersList.d.ts +16 -0
  215. package/dist/esm/funcs/customersList.d.ts.map +1 -0
  216. package/dist/esm/funcs/customersList.js +76 -0
  217. package/dist/esm/funcs/customersList.js.map +1 -0
  218. package/dist/esm/funcs/customersUpdate.d.ts +16 -0
  219. package/dist/esm/funcs/customersUpdate.d.ts.map +1 -0
  220. package/dist/esm/funcs/customersUpdate.js +95 -0
  221. package/dist/esm/funcs/customersUpdate.js.map +1 -0
  222. package/dist/esm/funcs/domainsCreate.d.ts.map +1 -1
  223. package/dist/esm/funcs/domainsCreate.js +8 -4
  224. package/dist/esm/funcs/domainsCreate.js.map +1 -1
  225. package/dist/esm/funcs/domainsDelete.d.ts.map +1 -1
  226. package/dist/esm/funcs/domainsDelete.js +8 -4
  227. package/dist/esm/funcs/domainsDelete.js.map +1 -1
  228. package/dist/esm/funcs/domainsList.d.ts.map +1 -1
  229. package/dist/esm/funcs/domainsList.js +8 -4
  230. package/dist/esm/funcs/domainsList.js.map +1 -1
  231. package/dist/esm/funcs/domainsUpdate.d.ts.map +1 -1
  232. package/dist/esm/funcs/domainsUpdate.js +8 -4
  233. package/dist/esm/funcs/domainsUpdate.js.map +1 -1
  234. package/dist/esm/funcs/eventsList.d.ts.map +1 -1
  235. package/dist/esm/funcs/eventsList.js +9 -4
  236. package/dist/esm/funcs/eventsList.js.map +1 -1
  237. package/dist/esm/funcs/linksCount.d.ts.map +1 -1
  238. package/dist/esm/funcs/linksCount.js +8 -4
  239. package/dist/esm/funcs/linksCount.js.map +1 -1
  240. package/dist/esm/funcs/linksCreate.d.ts.map +1 -1
  241. package/dist/esm/funcs/linksCreate.js +8 -4
  242. package/dist/esm/funcs/linksCreate.js.map +1 -1
  243. package/dist/esm/funcs/linksCreateMany.d.ts.map +1 -1
  244. package/dist/esm/funcs/linksCreateMany.js +8 -4
  245. package/dist/esm/funcs/linksCreateMany.js.map +1 -1
  246. package/dist/esm/funcs/linksDelete.d.ts.map +1 -1
  247. package/dist/esm/funcs/linksDelete.js +8 -4
  248. package/dist/esm/funcs/linksDelete.js.map +1 -1
  249. package/dist/esm/funcs/linksDeleteMany.d.ts.map +1 -1
  250. package/dist/esm/funcs/linksDeleteMany.js +8 -4
  251. package/dist/esm/funcs/linksDeleteMany.js.map +1 -1
  252. package/dist/esm/funcs/linksGet.d.ts.map +1 -1
  253. package/dist/esm/funcs/linksGet.js +8 -4
  254. package/dist/esm/funcs/linksGet.js.map +1 -1
  255. package/dist/esm/funcs/linksList.d.ts.map +1 -1
  256. package/dist/esm/funcs/linksList.js +8 -4
  257. package/dist/esm/funcs/linksList.js.map +1 -1
  258. package/dist/esm/funcs/linksUpdate.d.ts.map +1 -1
  259. package/dist/esm/funcs/linksUpdate.js +8 -4
  260. package/dist/esm/funcs/linksUpdate.js.map +1 -1
  261. package/dist/esm/funcs/linksUpdateMany.d.ts.map +1 -1
  262. package/dist/esm/funcs/linksUpdateMany.js +8 -4
  263. package/dist/esm/funcs/linksUpdateMany.js.map +1 -1
  264. package/dist/esm/funcs/linksUpsert.d.ts.map +1 -1
  265. package/dist/esm/funcs/linksUpsert.js +8 -4
  266. package/dist/esm/funcs/linksUpsert.js.map +1 -1
  267. package/dist/esm/funcs/metatagsGet.d.ts.map +1 -1
  268. package/dist/esm/funcs/metatagsGet.js +8 -4
  269. package/dist/esm/funcs/metatagsGet.js.map +1 -1
  270. package/dist/esm/funcs/qrCodesGet.d.ts.map +1 -1
  271. package/dist/esm/funcs/qrCodesGet.js +8 -4
  272. package/dist/esm/funcs/qrCodesGet.js.map +1 -1
  273. package/dist/esm/funcs/tagsCreate.d.ts.map +1 -1
  274. package/dist/esm/funcs/tagsCreate.js +8 -4
  275. package/dist/esm/funcs/tagsCreate.js.map +1 -1
  276. package/dist/esm/funcs/tagsDelete.d.ts.map +1 -1
  277. package/dist/esm/funcs/tagsDelete.js +8 -4
  278. package/dist/esm/funcs/tagsDelete.js.map +1 -1
  279. package/dist/esm/funcs/tagsList.d.ts.map +1 -1
  280. package/dist/esm/funcs/tagsList.js +8 -4
  281. package/dist/esm/funcs/tagsList.js.map +1 -1
  282. package/dist/esm/funcs/tagsUpdate.d.ts.map +1 -1
  283. package/dist/esm/funcs/tagsUpdate.js +8 -4
  284. package/dist/esm/funcs/tagsUpdate.js.map +1 -1
  285. package/dist/esm/funcs/trackCustomer.d.ts +2 -0
  286. package/dist/esm/funcs/trackCustomer.d.ts.map +1 -1
  287. package/dist/esm/funcs/trackCustomer.js +10 -4
  288. package/dist/esm/funcs/trackCustomer.js.map +1 -1
  289. package/dist/esm/funcs/trackLead.d.ts.map +1 -1
  290. package/dist/esm/funcs/trackLead.js +8 -4
  291. package/dist/esm/funcs/trackLead.js.map +1 -1
  292. package/dist/esm/funcs/trackSale.d.ts.map +1 -1
  293. package/dist/esm/funcs/trackSale.js +8 -4
  294. package/dist/esm/funcs/trackSale.js.map +1 -1
  295. package/dist/esm/funcs/workspacesGet.d.ts.map +1 -1
  296. package/dist/esm/funcs/workspacesGet.js +8 -4
  297. package/dist/esm/funcs/workspacesGet.js.map +1 -1
  298. package/dist/esm/funcs/workspacesUpdate.d.ts.map +1 -1
  299. package/dist/esm/funcs/workspacesUpdate.js +8 -4
  300. package/dist/esm/funcs/workspacesUpdate.js.map +1 -1
  301. package/dist/esm/hooks/types.d.ts +4 -0
  302. package/dist/esm/hooks/types.d.ts.map +1 -1
  303. package/dist/esm/lib/config.d.ts +3 -3
  304. package/dist/esm/lib/config.js +3 -3
  305. package/dist/esm/lib/config.js.map +1 -1
  306. package/dist/esm/lib/primitives.d.ts +4 -0
  307. package/dist/esm/lib/primitives.d.ts.map +1 -1
  308. package/dist/esm/lib/primitives.js +11 -0
  309. package/dist/esm/lib/primitives.js.map +1 -1
  310. package/dist/esm/lib/retries.d.ts +20 -0
  311. package/dist/esm/lib/retries.d.ts.map +1 -1
  312. package/dist/esm/lib/retries.js +50 -28
  313. package/dist/esm/lib/retries.js.map +1 -1
  314. package/dist/esm/lib/sdks.d.ts +2 -2
  315. package/dist/esm/lib/sdks.d.ts.map +1 -1
  316. package/dist/esm/lib/sdks.js +14 -12
  317. package/dist/esm/lib/sdks.js.map +1 -1
  318. package/dist/esm/lib/security.d.ts +20 -1
  319. package/dist/esm/lib/security.d.ts.map +1 -1
  320. package/dist/esm/lib/security.js +11 -1
  321. package/dist/esm/lib/security.js.map +1 -1
  322. package/dist/esm/models/components/leadcreatedevent.d.ts +28 -6
  323. package/dist/esm/models/components/leadcreatedevent.d.ts.map +1 -1
  324. package/dist/esm/models/components/leadcreatedevent.js +10 -6
  325. package/dist/esm/models/components/leadcreatedevent.js.map +1 -1
  326. package/dist/esm/models/components/leadevent.d.ts +26 -4
  327. package/dist/esm/models/components/leadevent.d.ts.map +1 -1
  328. package/dist/esm/models/components/leadevent.js +8 -4
  329. package/dist/esm/models/components/leadevent.js.map +1 -1
  330. package/dist/esm/models/components/salecreatedevent.d.ts +28 -6
  331. package/dist/esm/models/components/salecreatedevent.d.ts.map +1 -1
  332. package/dist/esm/models/components/salecreatedevent.js +10 -6
  333. package/dist/esm/models/components/salecreatedevent.js.map +1 -1
  334. package/dist/esm/models/components/saleevent.d.ts +26 -4
  335. package/dist/esm/models/components/saleevent.d.ts.map +1 -1
  336. package/dist/esm/models/components/saleevent.js +8 -4
  337. package/dist/esm/models/components/saleevent.js.map +1 -1
  338. package/dist/esm/models/components/workspaceschema.d.ts +21 -1
  339. package/dist/esm/models/components/workspaceschema.d.ts.map +1 -1
  340. package/dist/esm/models/components/workspaceschema.js +8 -0
  341. package/dist/esm/models/components/workspaceschema.js.map +1 -1
  342. package/dist/esm/models/operations/createcustomer.d.ts +97 -0
  343. package/dist/esm/models/operations/createcustomer.d.ts.map +1 -0
  344. package/dist/esm/models/operations/createcustomer.js +59 -0
  345. package/dist/esm/models/operations/createcustomer.js.map +1 -0
  346. package/dist/esm/models/operations/deletecustomer.d.ts +57 -0
  347. package/dist/esm/models/operations/deletecustomer.d.ts.map +1 -0
  348. package/dist/esm/models/operations/deletecustomer.js +43 -0
  349. package/dist/esm/models/operations/deletecustomer.js.map +1 -0
  350. package/dist/esm/models/operations/getcustomer.d.ts +82 -0
  351. package/dist/esm/models/operations/getcustomer.d.ts.map +1 -0
  352. package/dist/esm/models/operations/getcustomer.js +53 -0
  353. package/dist/esm/models/operations/getcustomer.js.map +1 -0
  354. package/dist/esm/models/operations/getcustomers.d.ts +53 -0
  355. package/dist/esm/models/operations/getcustomers.d.ts.map +1 -0
  356. package/dist/esm/models/operations/getcustomers.js +34 -0
  357. package/dist/esm/models/operations/getcustomers.js.map +1 -0
  358. package/dist/esm/models/operations/getlinks.d.ts +1 -1
  359. package/dist/esm/models/operations/getlinkscount.d.ts +1 -1
  360. package/dist/esm/models/operations/index.d.ts +5 -0
  361. package/dist/esm/models/operations/index.d.ts.map +1 -1
  362. package/dist/esm/models/operations/index.js +5 -0
  363. package/dist/esm/models/operations/index.js.map +1 -1
  364. package/dist/esm/models/operations/listevents.d.ts +28 -1
  365. package/dist/esm/models/operations/listevents.d.ts.map +1 -1
  366. package/dist/esm/models/operations/listevents.js +17 -0
  367. package/dist/esm/models/operations/listevents.js.map +1 -1
  368. package/dist/esm/models/operations/retrieveanalytics.d.ts +28 -1
  369. package/dist/esm/models/operations/retrieveanalytics.d.ts.map +1 -1
  370. package/dist/esm/models/operations/retrieveanalytics.js +17 -0
  371. package/dist/esm/models/operations/retrieveanalytics.js.map +1 -1
  372. package/dist/esm/models/operations/tracklead.d.ts +11 -4
  373. package/dist/esm/models/operations/tracklead.d.ts.map +1 -1
  374. package/dist/esm/models/operations/tracklead.js +6 -4
  375. package/dist/esm/models/operations/tracklead.js.map +1 -1
  376. package/dist/esm/models/operations/tracksale.d.ts +11 -2
  377. package/dist/esm/models/operations/tracksale.d.ts.map +1 -1
  378. package/dist/esm/models/operations/tracksale.js +6 -2
  379. package/dist/esm/models/operations/tracksale.js.map +1 -1
  380. package/dist/esm/models/operations/updatecustomer.d.ts +125 -0
  381. package/dist/esm/models/operations/updatecustomer.d.ts.map +1 -0
  382. package/dist/esm/models/operations/updatecustomer.js +90 -0
  383. package/dist/esm/models/operations/updatecustomer.js.map +1 -0
  384. package/dist/esm/sdk/customers.d.ts +40 -0
  385. package/dist/esm/sdk/customers.d.ts.map +1 -0
  386. package/dist/esm/sdk/customers.js +58 -0
  387. package/dist/esm/sdk/customers.js.map +1 -0
  388. package/dist/esm/sdk/sdk.d.ts +7 -4
  389. package/dist/esm/sdk/sdk.d.ts.map +1 -1
  390. package/dist/esm/sdk/sdk.js +13 -8
  391. package/dist/esm/sdk/sdk.js.map +1 -1
  392. package/dist/esm/sdk/track.d.ts +2 -0
  393. package/dist/esm/sdk/track.d.ts.map +1 -1
  394. package/dist/esm/sdk/track.js +2 -0
  395. package/dist/esm/sdk/track.js.map +1 -1
  396. package/docs/sdks/customers/README.md +421 -0
  397. package/docs/sdks/track/README.md +4 -2
  398. package/package.json +1 -1
  399. package/src/funcs/analyticsRetrieve.ts +12 -4
  400. package/src/funcs/customersCreate.ts +172 -0
  401. package/src/funcs/customersDelete.ts +177 -0
  402. package/src/funcs/customersGet.ts +173 -0
  403. package/src/funcs/customersList.ts +152 -0
  404. package/src/funcs/customersUpdate.ts +180 -0
  405. package/src/funcs/domainsCreate.ts +11 -4
  406. package/src/funcs/domainsDelete.ts +11 -4
  407. package/src/funcs/domainsList.ts +11 -4
  408. package/src/funcs/domainsUpdate.ts +11 -4
  409. package/src/funcs/eventsList.ts +12 -4
  410. package/src/funcs/linksCount.ts +11 -4
  411. package/src/funcs/linksCreate.ts +11 -4
  412. package/src/funcs/linksCreateMany.ts +11 -4
  413. package/src/funcs/linksDelete.ts +11 -4
  414. package/src/funcs/linksDeleteMany.ts +11 -4
  415. package/src/funcs/linksGet.ts +11 -4
  416. package/src/funcs/linksList.ts +11 -4
  417. package/src/funcs/linksUpdate.ts +11 -4
  418. package/src/funcs/linksUpdateMany.ts +11 -4
  419. package/src/funcs/linksUpsert.ts +11 -4
  420. package/src/funcs/metatagsGet.ts +11 -4
  421. package/src/funcs/qrCodesGet.ts +11 -4
  422. package/src/funcs/tagsCreate.ts +11 -4
  423. package/src/funcs/tagsDelete.ts +11 -4
  424. package/src/funcs/tagsList.ts +11 -4
  425. package/src/funcs/tagsUpdate.ts +11 -4
  426. package/src/funcs/trackCustomer.ts +13 -4
  427. package/src/funcs/trackLead.ts +11 -4
  428. package/src/funcs/trackSale.ts +11 -4
  429. package/src/funcs/workspacesGet.ts +11 -4
  430. package/src/funcs/workspacesUpdate.ts +11 -4
  431. package/src/hooks/types.ts +4 -0
  432. package/src/lib/config.ts +3 -3
  433. package/src/lib/primitives.ts +20 -0
  434. package/src/lib/retries.ts +63 -31
  435. package/src/lib/sdks.ts +19 -15
  436. package/src/lib/security.ts +39 -3
  437. package/src/models/components/leadcreatedevent.ts +38 -12
  438. package/src/models/components/leadevent.ts +34 -8
  439. package/src/models/components/salecreatedevent.ts +38 -12
  440. package/src/models/components/saleevent.ts +34 -8
  441. package/src/models/components/workspaceschema.ts +29 -1
  442. package/src/models/operations/createcustomer.ts +150 -0
  443. package/src/models/operations/deletecustomer.ts +94 -0
  444. package/src/models/operations/getcustomer.ts +129 -0
  445. package/src/models/operations/getcustomers.ts +83 -0
  446. package/src/models/operations/getlinks.ts +1 -1
  447. package/src/models/operations/getlinkscount.ts +1 -1
  448. package/src/models/operations/index.ts +5 -0
  449. package/src/models/operations/listevents.ts +43 -1
  450. package/src/models/operations/retrieveanalytics.ts +44 -1
  451. package/src/models/operations/tracklead.ts +17 -8
  452. package/src/models/operations/tracksale.ts +17 -4
  453. package/src/models/operations/updatecustomer.ts +207 -0
  454. package/src/sdk/customers.ts +99 -0
  455. package/src/sdk/sdk.ts +16 -10
  456. package/src/sdk/track.ts +2 -0
@@ -0,0 +1,94 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+
7
+ export type DeleteCustomerRequest = {
8
+ /**
9
+ * The unique identifier of the customer in Dub.
10
+ */
11
+ id: string;
12
+ };
13
+
14
+ /**
15
+ * The customer was deleted.
16
+ */
17
+ export type DeleteCustomerResponseBody = {
18
+ /**
19
+ * The unique identifier of the customer in Dub.
20
+ */
21
+ id: string;
22
+ };
23
+
24
+ /** @internal */
25
+ export const DeleteCustomerRequest$inboundSchema: z.ZodType<
26
+ DeleteCustomerRequest,
27
+ z.ZodTypeDef,
28
+ unknown
29
+ > = z.object({
30
+ id: z.string(),
31
+ });
32
+
33
+ /** @internal */
34
+ export type DeleteCustomerRequest$Outbound = {
35
+ id: string;
36
+ };
37
+
38
+ /** @internal */
39
+ export const DeleteCustomerRequest$outboundSchema: z.ZodType<
40
+ DeleteCustomerRequest$Outbound,
41
+ z.ZodTypeDef,
42
+ DeleteCustomerRequest
43
+ > = z.object({
44
+ id: z.string(),
45
+ });
46
+
47
+ /**
48
+ * @internal
49
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
50
+ */
51
+ export namespace DeleteCustomerRequest$ {
52
+ /** @deprecated use `DeleteCustomerRequest$inboundSchema` instead. */
53
+ export const inboundSchema = DeleteCustomerRequest$inboundSchema;
54
+ /** @deprecated use `DeleteCustomerRequest$outboundSchema` instead. */
55
+ export const outboundSchema = DeleteCustomerRequest$outboundSchema;
56
+ /** @deprecated use `DeleteCustomerRequest$Outbound` instead. */
57
+ export type Outbound = DeleteCustomerRequest$Outbound;
58
+ }
59
+
60
+ /** @internal */
61
+ export const DeleteCustomerResponseBody$inboundSchema: z.ZodType<
62
+ DeleteCustomerResponseBody,
63
+ z.ZodTypeDef,
64
+ unknown
65
+ > = z.object({
66
+ id: z.string(),
67
+ });
68
+
69
+ /** @internal */
70
+ export type DeleteCustomerResponseBody$Outbound = {
71
+ id: string;
72
+ };
73
+
74
+ /** @internal */
75
+ export const DeleteCustomerResponseBody$outboundSchema: z.ZodType<
76
+ DeleteCustomerResponseBody$Outbound,
77
+ z.ZodTypeDef,
78
+ DeleteCustomerResponseBody
79
+ > = z.object({
80
+ id: z.string(),
81
+ });
82
+
83
+ /**
84
+ * @internal
85
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
86
+ */
87
+ export namespace DeleteCustomerResponseBody$ {
88
+ /** @deprecated use `DeleteCustomerResponseBody$inboundSchema` instead. */
89
+ export const inboundSchema = DeleteCustomerResponseBody$inboundSchema;
90
+ /** @deprecated use `DeleteCustomerResponseBody$outboundSchema` instead. */
91
+ export const outboundSchema = DeleteCustomerResponseBody$outboundSchema;
92
+ /** @deprecated use `DeleteCustomerResponseBody$Outbound` instead. */
93
+ export type Outbound = DeleteCustomerResponseBody$Outbound;
94
+ }
@@ -0,0 +1,129 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+
7
+ export type GetCustomerRequest = {
8
+ /**
9
+ * The unique identifier of the customer in Dub.
10
+ */
11
+ id: string;
12
+ };
13
+
14
+ /**
15
+ * The customer object.
16
+ */
17
+ export type GetCustomerResponseBody = {
18
+ /**
19
+ * The unique identifier of the customer in Dub.
20
+ */
21
+ id: string;
22
+ /**
23
+ * Unique identifier for the customer in the client's app.
24
+ */
25
+ externalId: string;
26
+ /**
27
+ * Name of the customer.
28
+ */
29
+ name: string;
30
+ /**
31
+ * Email of the customer.
32
+ */
33
+ email?: string | null | undefined;
34
+ /**
35
+ * Avatar URL of the customer.
36
+ */
37
+ avatar?: string | null | undefined;
38
+ /**
39
+ * The date the customer was created.
40
+ */
41
+ createdAt: string;
42
+ };
43
+
44
+ /** @internal */
45
+ export const GetCustomerRequest$inboundSchema: z.ZodType<
46
+ GetCustomerRequest,
47
+ z.ZodTypeDef,
48
+ unknown
49
+ > = z.object({
50
+ id: z.string(),
51
+ });
52
+
53
+ /** @internal */
54
+ export type GetCustomerRequest$Outbound = {
55
+ id: string;
56
+ };
57
+
58
+ /** @internal */
59
+ export const GetCustomerRequest$outboundSchema: z.ZodType<
60
+ GetCustomerRequest$Outbound,
61
+ z.ZodTypeDef,
62
+ GetCustomerRequest
63
+ > = z.object({
64
+ id: z.string(),
65
+ });
66
+
67
+ /**
68
+ * @internal
69
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
70
+ */
71
+ export namespace GetCustomerRequest$ {
72
+ /** @deprecated use `GetCustomerRequest$inboundSchema` instead. */
73
+ export const inboundSchema = GetCustomerRequest$inboundSchema;
74
+ /** @deprecated use `GetCustomerRequest$outboundSchema` instead. */
75
+ export const outboundSchema = GetCustomerRequest$outboundSchema;
76
+ /** @deprecated use `GetCustomerRequest$Outbound` instead. */
77
+ export type Outbound = GetCustomerRequest$Outbound;
78
+ }
79
+
80
+ /** @internal */
81
+ export const GetCustomerResponseBody$inboundSchema: z.ZodType<
82
+ GetCustomerResponseBody,
83
+ z.ZodTypeDef,
84
+ unknown
85
+ > = z.object({
86
+ id: z.string(),
87
+ externalId: z.string(),
88
+ name: z.string(),
89
+ email: z.nullable(z.string()).optional(),
90
+ avatar: z.nullable(z.string()).optional(),
91
+ createdAt: z.string(),
92
+ });
93
+
94
+ /** @internal */
95
+ export type GetCustomerResponseBody$Outbound = {
96
+ id: string;
97
+ externalId: string;
98
+ name: string;
99
+ email?: string | null | undefined;
100
+ avatar?: string | null | undefined;
101
+ createdAt: string;
102
+ };
103
+
104
+ /** @internal */
105
+ export const GetCustomerResponseBody$outboundSchema: z.ZodType<
106
+ GetCustomerResponseBody$Outbound,
107
+ z.ZodTypeDef,
108
+ GetCustomerResponseBody
109
+ > = z.object({
110
+ id: z.string(),
111
+ externalId: z.string(),
112
+ name: z.string(),
113
+ email: z.nullable(z.string()).optional(),
114
+ avatar: z.nullable(z.string()).optional(),
115
+ createdAt: z.string(),
116
+ });
117
+
118
+ /**
119
+ * @internal
120
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
121
+ */
122
+ export namespace GetCustomerResponseBody$ {
123
+ /** @deprecated use `GetCustomerResponseBody$inboundSchema` instead. */
124
+ export const inboundSchema = GetCustomerResponseBody$inboundSchema;
125
+ /** @deprecated use `GetCustomerResponseBody$outboundSchema` instead. */
126
+ export const outboundSchema = GetCustomerResponseBody$outboundSchema;
127
+ /** @deprecated use `GetCustomerResponseBody$Outbound` instead. */
128
+ export type Outbound = GetCustomerResponseBody$Outbound;
129
+ }
@@ -0,0 +1,83 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+
7
+ export type ResponseBody = {
8
+ /**
9
+ * The unique identifier of the customer in Dub.
10
+ */
11
+ id: string;
12
+ /**
13
+ * Unique identifier for the customer in the client's app.
14
+ */
15
+ externalId: string;
16
+ /**
17
+ * Name of the customer.
18
+ */
19
+ name: string;
20
+ /**
21
+ * Email of the customer.
22
+ */
23
+ email?: string | null | undefined;
24
+ /**
25
+ * Avatar URL of the customer.
26
+ */
27
+ avatar?: string | null | undefined;
28
+ /**
29
+ * The date the customer was created.
30
+ */
31
+ createdAt: string;
32
+ };
33
+
34
+ /** @internal */
35
+ export const ResponseBody$inboundSchema: z.ZodType<
36
+ ResponseBody,
37
+ z.ZodTypeDef,
38
+ unknown
39
+ > = z.object({
40
+ id: z.string(),
41
+ externalId: z.string(),
42
+ name: z.string(),
43
+ email: z.nullable(z.string()).optional(),
44
+ avatar: z.nullable(z.string()).optional(),
45
+ createdAt: z.string(),
46
+ });
47
+
48
+ /** @internal */
49
+ export type ResponseBody$Outbound = {
50
+ id: string;
51
+ externalId: string;
52
+ name: string;
53
+ email?: string | null | undefined;
54
+ avatar?: string | null | undefined;
55
+ createdAt: string;
56
+ };
57
+
58
+ /** @internal */
59
+ export const ResponseBody$outboundSchema: z.ZodType<
60
+ ResponseBody$Outbound,
61
+ z.ZodTypeDef,
62
+ ResponseBody
63
+ > = z.object({
64
+ id: z.string(),
65
+ externalId: z.string(),
66
+ name: z.string(),
67
+ email: z.nullable(z.string()).optional(),
68
+ avatar: z.nullable(z.string()).optional(),
69
+ createdAt: z.string(),
70
+ });
71
+
72
+ /**
73
+ * @internal
74
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
75
+ */
76
+ export namespace ResponseBody$ {
77
+ /** @deprecated use `ResponseBody$inboundSchema` instead. */
78
+ export const inboundSchema = ResponseBody$inboundSchema;
79
+ /** @deprecated use `ResponseBody$outboundSchema` instead. */
80
+ export const outboundSchema = ResponseBody$outboundSchema;
81
+ /** @deprecated use `ResponseBody$Outbound` instead. */
82
+ export type Outbound = ResponseBody$Outbound;
83
+ }
@@ -36,7 +36,7 @@ export type GetLinksRequest = {
36
36
  */
37
37
  domain?: string | undefined;
38
38
  /**
39
- * The tag ID to filter the links by. This field is deprecated – use `tagIds` instead.
39
+ * Deprecated. Use `tagIds` instead. The tag ID to filter the links by.
40
40
  */
41
41
  tagId?: string | undefined;
42
42
  /**
@@ -41,7 +41,7 @@ export type GetLinksCountRequest = {
41
41
  */
42
42
  domain?: string | undefined;
43
43
  /**
44
- * The tag ID to filter the links by. This field is deprecated – use `tagIds` instead.
44
+ * Deprecated. Use `tagIds` instead. The tag ID to filter the links by.
45
45
  */
46
46
  tagId?: string | undefined;
47
47
  /**
@@ -5,12 +5,16 @@
5
5
  export * from "./bulkcreatelinks.js";
6
6
  export * from "./bulkdeletelinks.js";
7
7
  export * from "./bulkupdatelinks.js";
8
+ export * from "./createcustomer.js";
8
9
  export * from "./createdomain.js";
9
10
  export * from "./createlink.js";
10
11
  export * from "./createtag.js";
12
+ export * from "./deletecustomer.js";
11
13
  export * from "./deletedomain.js";
12
14
  export * from "./deletelink.js";
13
15
  export * from "./deletetag.js";
16
+ export * from "./getcustomer.js";
17
+ export * from "./getcustomers.js";
14
18
  export * from "./getlinkinfo.js";
15
19
  export * from "./getlinks.js";
16
20
  export * from "./getlinkscount.js";
@@ -23,6 +27,7 @@ export * from "./retrieveanalytics.js";
23
27
  export * from "./trackcustomer.js";
24
28
  export * from "./tracklead.js";
25
29
  export * from "./tracksale.js";
30
+ export * from "./updatecustomer.js";
26
31
  export * from "./updatedomain.js";
27
32
  export * from "./updatelink.js";
28
33
  export * from "./updatetag.js";
@@ -48,6 +48,11 @@ export const QueryParamTrigger = {
48
48
  */
49
49
  export type QueryParamTrigger = ClosedEnum<typeof QueryParamTrigger>;
50
50
 
51
+ /**
52
+ * The tag IDs to retrieve analytics for.
53
+ */
54
+ export type ListEventsQueryParamTagIds = string | Array<string>;
55
+
51
56
  export const Order = {
52
57
  Asc: "asc",
53
58
  Desc: "desc",
@@ -137,9 +142,13 @@ export type ListEventsRequest = {
137
142
  */
138
143
  url?: string | undefined;
139
144
  /**
140
- * The tag ID to retrieve analytics for.
145
+ * Deprecated. Use `tagIds` instead. The tag ID to retrieve analytics for.
141
146
  */
142
147
  tagId?: string | undefined;
148
+ /**
149
+ * The tag IDs to retrieve analytics for.
150
+ */
151
+ tagIds?: string | Array<string> | undefined;
143
152
  /**
144
153
  * Deprecated. Use the `trigger` field instead. Filter for QR code scans. If true, filter for QR codes only. If false, filter for links only. If undefined, return both.
145
154
  */
@@ -225,6 +234,36 @@ export namespace QueryParamTrigger$ {
225
234
  export const outboundSchema = QueryParamTrigger$outboundSchema;
226
235
  }
227
236
 
237
+ /** @internal */
238
+ export const ListEventsQueryParamTagIds$inboundSchema: z.ZodType<
239
+ ListEventsQueryParamTagIds,
240
+ z.ZodTypeDef,
241
+ unknown
242
+ > = z.union([z.string(), z.array(z.string())]);
243
+
244
+ /** @internal */
245
+ export type ListEventsQueryParamTagIds$Outbound = string | Array<string>;
246
+
247
+ /** @internal */
248
+ export const ListEventsQueryParamTagIds$outboundSchema: z.ZodType<
249
+ ListEventsQueryParamTagIds$Outbound,
250
+ z.ZodTypeDef,
251
+ ListEventsQueryParamTagIds
252
+ > = z.union([z.string(), z.array(z.string())]);
253
+
254
+ /**
255
+ * @internal
256
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
257
+ */
258
+ export namespace ListEventsQueryParamTagIds$ {
259
+ /** @deprecated use `ListEventsQueryParamTagIds$inboundSchema` instead. */
260
+ export const inboundSchema = ListEventsQueryParamTagIds$inboundSchema;
261
+ /** @deprecated use `ListEventsQueryParamTagIds$outboundSchema` instead. */
262
+ export const outboundSchema = ListEventsQueryParamTagIds$outboundSchema;
263
+ /** @deprecated use `ListEventsQueryParamTagIds$Outbound` instead. */
264
+ export type Outbound = ListEventsQueryParamTagIds$Outbound;
265
+ }
266
+
228
267
  /** @internal */
229
268
  export const Order$inboundSchema: z.ZodNativeEnum<typeof Order> = z.nativeEnum(
230
269
  Order,
@@ -290,6 +329,7 @@ export const ListEventsRequest$inboundSchema: z.ZodType<
290
329
  refererUrl: z.string().optional(),
291
330
  url: z.string().optional(),
292
331
  tagId: z.string().optional(),
332
+ tagIds: z.union([z.string(), z.array(z.string())]).optional(),
293
333
  qr: z.boolean().optional(),
294
334
  root: z.boolean().optional(),
295
335
  page: z.number().default(1),
@@ -320,6 +360,7 @@ export type ListEventsRequest$Outbound = {
320
360
  refererUrl?: string | undefined;
321
361
  url?: string | undefined;
322
362
  tagId?: string | undefined;
363
+ tagIds?: string | Array<string> | undefined;
323
364
  qr?: boolean | undefined;
324
365
  root?: boolean | undefined;
325
366
  page: number;
@@ -354,6 +395,7 @@ export const ListEventsRequest$outboundSchema: z.ZodType<
354
395
  refererUrl: z.string().optional(),
355
396
  url: z.string().optional(),
356
397
  tagId: z.string().optional(),
398
+ tagIds: z.union([z.string(), z.array(z.string())]).optional(),
357
399
  qr: z.boolean().optional(),
358
400
  root: z.boolean().optional(),
359
401
  page: z.number().default(1),
@@ -74,6 +74,11 @@ export const Trigger = {
74
74
  */
75
75
  export type Trigger = ClosedEnum<typeof Trigger>;
76
76
 
77
+ /**
78
+ * The tag IDs to retrieve analytics for.
79
+ */
80
+ export type RetrieveAnalyticsQueryParamTagIds = string | Array<string>;
81
+
77
82
  export type RetrieveAnalyticsRequest = {
78
83
  /**
79
84
  * The type of event to retrieve analytics for. Defaults to `clicks`.
@@ -156,9 +161,13 @@ export type RetrieveAnalyticsRequest = {
156
161
  */
157
162
  url?: string | undefined;
158
163
  /**
159
- * The tag ID to retrieve analytics for.
164
+ * Deprecated. Use `tagIds` instead. The tag ID to retrieve analytics for.
160
165
  */
161
166
  tagId?: string | undefined;
167
+ /**
168
+ * The tag IDs to retrieve analytics for.
169
+ */
170
+ tagIds?: string | Array<string> | undefined;
162
171
  /**
163
172
  * Deprecated. Use the `trigger` field instead. Filter for QR code scans. If true, filter for QR codes only. If false, filter for links only. If undefined, return both.
164
173
  */
@@ -266,6 +275,37 @@ export namespace Trigger$ {
266
275
  export const outboundSchema = Trigger$outboundSchema;
267
276
  }
268
277
 
278
+ /** @internal */
279
+ export const RetrieveAnalyticsQueryParamTagIds$inboundSchema: z.ZodType<
280
+ RetrieveAnalyticsQueryParamTagIds,
281
+ z.ZodTypeDef,
282
+ unknown
283
+ > = z.union([z.string(), z.array(z.string())]);
284
+
285
+ /** @internal */
286
+ export type RetrieveAnalyticsQueryParamTagIds$Outbound = string | Array<string>;
287
+
288
+ /** @internal */
289
+ export const RetrieveAnalyticsQueryParamTagIds$outboundSchema: z.ZodType<
290
+ RetrieveAnalyticsQueryParamTagIds$Outbound,
291
+ z.ZodTypeDef,
292
+ RetrieveAnalyticsQueryParamTagIds
293
+ > = z.union([z.string(), z.array(z.string())]);
294
+
295
+ /**
296
+ * @internal
297
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
298
+ */
299
+ export namespace RetrieveAnalyticsQueryParamTagIds$ {
300
+ /** @deprecated use `RetrieveAnalyticsQueryParamTagIds$inboundSchema` instead. */
301
+ export const inboundSchema = RetrieveAnalyticsQueryParamTagIds$inboundSchema;
302
+ /** @deprecated use `RetrieveAnalyticsQueryParamTagIds$outboundSchema` instead. */
303
+ export const outboundSchema =
304
+ RetrieveAnalyticsQueryParamTagIds$outboundSchema;
305
+ /** @deprecated use `RetrieveAnalyticsQueryParamTagIds$Outbound` instead. */
306
+ export type Outbound = RetrieveAnalyticsQueryParamTagIds$Outbound;
307
+ }
308
+
269
309
  /** @internal */
270
310
  export const RetrieveAnalyticsRequest$inboundSchema: z.ZodType<
271
311
  RetrieveAnalyticsRequest,
@@ -293,6 +333,7 @@ export const RetrieveAnalyticsRequest$inboundSchema: z.ZodType<
293
333
  refererUrl: z.string().optional(),
294
334
  url: z.string().optional(),
295
335
  tagId: z.string().optional(),
336
+ tagIds: z.union([z.string(), z.array(z.string())]).optional(),
296
337
  qr: z.boolean().optional(),
297
338
  root: z.boolean().optional(),
298
339
  });
@@ -320,6 +361,7 @@ export type RetrieveAnalyticsRequest$Outbound = {
320
361
  refererUrl?: string | undefined;
321
362
  url?: string | undefined;
322
363
  tagId?: string | undefined;
364
+ tagIds?: string | Array<string> | undefined;
323
365
  qr?: boolean | undefined;
324
366
  root?: boolean | undefined;
325
367
  };
@@ -351,6 +393,7 @@ export const RetrieveAnalyticsRequest$outboundSchema: z.ZodType<
351
393
  refererUrl: z.string().optional(),
352
394
  url: z.string().optional(),
353
395
  tagId: z.string().optional(),
396
+ tagIds: z.union([z.string(), z.array(z.string())]).optional(),
354
397
  qr: z.boolean().optional(),
355
398
  root: z.boolean().optional(),
356
399
  });
@@ -16,7 +16,13 @@ export type TrackLeadRequestBody = {
16
16
  /**
17
17
  * This is the unique identifier for the customer in the client's app. This is used to track the customer's journey.
18
18
  */
19
- customerId: string;
19
+ externalId?: string | undefined;
20
+ /**
21
+ * This is the unique identifier for the customer in the client's app. This is used to track the customer's journey.
22
+ *
23
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
24
+ */
25
+ customerId?: string | null | undefined;
20
26
  /**
21
27
  * Name of the customer in the client's app.
22
28
  */
@@ -40,10 +46,10 @@ export type Click = {
40
46
  };
41
47
 
42
48
  export type Customer = {
43
- id: string;
44
49
  name: string | null;
45
50
  email: string | null;
46
51
  avatar: string | null;
52
+ externalId: string | null;
47
53
  };
48
54
 
49
55
  /**
@@ -62,7 +68,8 @@ export const TrackLeadRequestBody$inboundSchema: z.ZodType<
62
68
  > = z.object({
63
69
  clickId: z.string(),
64
70
  eventName: z.string(),
65
- customerId: z.string(),
71
+ externalId: z.string().default(""),
72
+ customerId: z.nullable(z.string()).default(null),
66
73
  customerName: z.nullable(z.string()).default(null),
67
74
  customerEmail: z.nullable(z.string()).default(null),
68
75
  customerAvatar: z.nullable(z.string()).default(null),
@@ -73,7 +80,8 @@ export const TrackLeadRequestBody$inboundSchema: z.ZodType<
73
80
  export type TrackLeadRequestBody$Outbound = {
74
81
  clickId: string;
75
82
  eventName: string;
76
- customerId: string;
83
+ externalId: string;
84
+ customerId: string | null;
77
85
  customerName: string | null;
78
86
  customerEmail: string | null;
79
87
  customerAvatar: string | null;
@@ -88,7 +96,8 @@ export const TrackLeadRequestBody$outboundSchema: z.ZodType<
88
96
  > = z.object({
89
97
  clickId: z.string(),
90
98
  eventName: z.string(),
91
- customerId: z.string(),
99
+ externalId: z.string().default(""),
100
+ customerId: z.nullable(z.string()).default(null),
92
101
  customerName: z.nullable(z.string()).default(null),
93
102
  customerEmail: z.nullable(z.string()).default(null),
94
103
  customerAvatar: z.nullable(z.string()).default(null),
@@ -147,18 +156,18 @@ export const Customer$inboundSchema: z.ZodType<
147
156
  z.ZodTypeDef,
148
157
  unknown
149
158
  > = z.object({
150
- id: z.string(),
151
159
  name: z.nullable(z.string()),
152
160
  email: z.nullable(z.string()),
153
161
  avatar: z.nullable(z.string()),
162
+ externalId: z.nullable(z.string()),
154
163
  });
155
164
 
156
165
  /** @internal */
157
166
  export type Customer$Outbound = {
158
- id: string;
159
167
  name: string | null;
160
168
  email: string | null;
161
169
  avatar: string | null;
170
+ externalId: string | null;
162
171
  };
163
172
 
164
173
  /** @internal */
@@ -167,10 +176,10 @@ export const Customer$outboundSchema: z.ZodType<
167
176
  z.ZodTypeDef,
168
177
  Customer
169
178
  > = z.object({
170
- id: z.string(),
171
179
  name: z.nullable(z.string()),
172
180
  email: z.nullable(z.string()),
173
181
  avatar: z.nullable(z.string()),
182
+ externalId: z.nullable(z.string()),
174
183
  });
175
184
 
176
185
  /**
@@ -22,7 +22,13 @@ export type TrackSaleRequestBody = {
22
22
  /**
23
23
  * This is the unique identifier for the customer in the client's app. This is used to track the customer's journey.
24
24
  */
25
- customerId: string;
25
+ externalId?: string | undefined;
26
+ /**
27
+ * This is the unique identifier for the customer in the client's app. This is used to track the customer's journey.
28
+ *
29
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
30
+ */
31
+ customerId?: string | null | undefined;
26
32
  /**
27
33
  * The amount of the sale. Should be passed in cents.
28
34
  */
@@ -54,6 +60,7 @@ export type TrackSaleCustomer = {
54
60
  name: string | null;
55
61
  email: string | null;
56
62
  avatar: string | null;
63
+ externalId: string | null;
57
64
  };
58
65
 
59
66
  export type Sale = {
@@ -100,7 +107,8 @@ export const TrackSaleRequestBody$inboundSchema: z.ZodType<
100
107
  z.ZodTypeDef,
101
108
  unknown
102
109
  > = z.object({
103
- customerId: z.string(),
110
+ externalId: z.string().default(""),
111
+ customerId: z.nullable(z.string()).default(null),
104
112
  amount: z.number().int(),
105
113
  paymentProcessor: PaymentProcessor$inboundSchema,
106
114
  eventName: z.string().default("Purchase"),
@@ -111,7 +119,8 @@ export const TrackSaleRequestBody$inboundSchema: z.ZodType<
111
119
 
112
120
  /** @internal */
113
121
  export type TrackSaleRequestBody$Outbound = {
114
- customerId: string;
122
+ externalId: string;
123
+ customerId: string | null;
115
124
  amount: number;
116
125
  paymentProcessor: string;
117
126
  eventName: string;
@@ -126,7 +135,8 @@ export const TrackSaleRequestBody$outboundSchema: z.ZodType<
126
135
  z.ZodTypeDef,
127
136
  TrackSaleRequestBody
128
137
  > = z.object({
129
- customerId: z.string(),
138
+ externalId: z.string().default(""),
139
+ customerId: z.nullable(z.string()).default(null),
130
140
  amount: z.number().int(),
131
141
  paymentProcessor: PaymentProcessor$outboundSchema,
132
142
  eventName: z.string().default("Purchase"),
@@ -158,6 +168,7 @@ export const TrackSaleCustomer$inboundSchema: z.ZodType<
158
168
  name: z.nullable(z.string()),
159
169
  email: z.nullable(z.string()),
160
170
  avatar: z.nullable(z.string()),
171
+ externalId: z.nullable(z.string()),
161
172
  });
162
173
 
163
174
  /** @internal */
@@ -166,6 +177,7 @@ export type TrackSaleCustomer$Outbound = {
166
177
  name: string | null;
167
178
  email: string | null;
168
179
  avatar: string | null;
180
+ externalId: string | null;
169
181
  };
170
182
 
171
183
  /** @internal */
@@ -178,6 +190,7 @@ export const TrackSaleCustomer$outboundSchema: z.ZodType<
178
190
  name: z.nullable(z.string()),
179
191
  email: z.nullable(z.string()),
180
192
  avatar: z.nullable(z.string()),
193
+ externalId: z.nullable(z.string()),
181
194
  });
182
195
 
183
196
  /**