dub 0.31.1 → 0.31.2

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 (391) hide show
  1. package/README.md +2 -2
  2. package/docs/sdks/links/README.md +4 -6
  3. package/docs/sdks/tags/README.md +3 -4
  4. package/docs/sdks/workspaces/README.md +3 -4
  5. package/lib/config.d.ts +3 -3
  6. package/lib/config.js +3 -3
  7. package/lib/config.js.map +1 -1
  8. package/lib/sdks.js +1 -1
  9. package/lib/sdks.js.map +1 -1
  10. package/models/components/clicksbrowsers.d.ts +17 -5
  11. package/models/components/clicksbrowsers.d.ts.map +1 -1
  12. package/models/components/clicksbrowsers.js +18 -9
  13. package/models/components/clicksbrowsers.js.map +1 -1
  14. package/models/components/clickscities.d.ts +531 -8
  15. package/models/components/clickscities.d.ts.map +1 -1
  16. package/models/components/clickscities.js +31 -13
  17. package/models/components/clickscities.js.map +1 -1
  18. package/models/components/clickscount.d.ts +16 -4
  19. package/models/components/clickscount.d.ts.map +1 -1
  20. package/models/components/clickscount.js +16 -7
  21. package/models/components/clickscount.js.map +1 -1
  22. package/models/components/clickscountries.d.ts +530 -7
  23. package/models/components/clickscountries.d.ts.map +1 -1
  24. package/models/components/clickscountries.js +29 -11
  25. package/models/components/clickscountries.js.map +1 -1
  26. package/models/components/clicksdevices.d.ts +17 -5
  27. package/models/components/clicksdevices.d.ts.map +1 -1
  28. package/models/components/clicksdevices.js +18 -9
  29. package/models/components/clicksdevices.js.map +1 -1
  30. package/models/components/clicksos.d.ts +17 -5
  31. package/models/components/clicksos.d.ts.map +1 -1
  32. package/models/components/clicksos.js +18 -9
  33. package/models/components/clicksos.js.map +1 -1
  34. package/models/components/clicksreferers.d.ts +17 -5
  35. package/models/components/clicksreferers.d.ts.map +1 -1
  36. package/models/components/clicksreferers.js +18 -9
  37. package/models/components/clicksreferers.js.map +1 -1
  38. package/models/components/clickstimeseries.d.ts +17 -5
  39. package/models/components/clickstimeseries.d.ts.map +1 -1
  40. package/models/components/clickstimeseries.js +18 -9
  41. package/models/components/clickstimeseries.js.map +1 -1
  42. package/models/components/clickstoplinks.d.ts +23 -11
  43. package/models/components/clickstoplinks.d.ts.map +1 -1
  44. package/models/components/clickstoplinks.js +30 -21
  45. package/models/components/clickstoplinks.js.map +1 -1
  46. package/models/components/clickstopurls.d.ts +17 -5
  47. package/models/components/clickstopurls.d.ts.map +1 -1
  48. package/models/components/clickstopurls.js +18 -9
  49. package/models/components/clickstopurls.js.map +1 -1
  50. package/models/components/countrycode.d.ts +513 -2
  51. package/models/components/countrycode.d.ts.map +1 -1
  52. package/models/components/countrycode.js +12 -3
  53. package/models/components/countrycode.js.map +1 -1
  54. package/models/components/domainschema.d.ts +24 -12
  55. package/models/components/domainschema.d.ts.map +1 -1
  56. package/models/components/domainschema.js +32 -23
  57. package/models/components/domainschema.js.map +1 -1
  58. package/models/components/leadsbrowsers.d.ts +17 -5
  59. package/models/components/leadsbrowsers.d.ts.map +1 -1
  60. package/models/components/leadsbrowsers.js +18 -9
  61. package/models/components/leadsbrowsers.js.map +1 -1
  62. package/models/components/leadscities.d.ts +531 -8
  63. package/models/components/leadscities.d.ts.map +1 -1
  64. package/models/components/leadscities.js +31 -13
  65. package/models/components/leadscities.js.map +1 -1
  66. package/models/components/leadscount.d.ts +16 -4
  67. package/models/components/leadscount.d.ts.map +1 -1
  68. package/models/components/leadscount.js +16 -7
  69. package/models/components/leadscount.js.map +1 -1
  70. package/models/components/leadscountries.d.ts +530 -7
  71. package/models/components/leadscountries.d.ts.map +1 -1
  72. package/models/components/leadscountries.js +29 -11
  73. package/models/components/leadscountries.js.map +1 -1
  74. package/models/components/leadsdevices.d.ts +17 -5
  75. package/models/components/leadsdevices.d.ts.map +1 -1
  76. package/models/components/leadsdevices.js +18 -9
  77. package/models/components/leadsdevices.js.map +1 -1
  78. package/models/components/leadsos.d.ts +17 -5
  79. package/models/components/leadsos.d.ts.map +1 -1
  80. package/models/components/leadsos.js +18 -9
  81. package/models/components/leadsos.js.map +1 -1
  82. package/models/components/leadsreferers.d.ts +17 -5
  83. package/models/components/leadsreferers.d.ts.map +1 -1
  84. package/models/components/leadsreferers.js +18 -9
  85. package/models/components/leadsreferers.js.map +1 -1
  86. package/models/components/leadstimeseries.d.ts +17 -5
  87. package/models/components/leadstimeseries.d.ts.map +1 -1
  88. package/models/components/leadstimeseries.js +18 -9
  89. package/models/components/leadstimeseries.js.map +1 -1
  90. package/models/components/leadstoplinks.d.ts +23 -11
  91. package/models/components/leadstoplinks.d.ts.map +1 -1
  92. package/models/components/leadstoplinks.js +30 -21
  93. package/models/components/leadstoplinks.js.map +1 -1
  94. package/models/components/leadstopurls.d.ts +17 -5
  95. package/models/components/leadstopurls.d.ts.map +1 -1
  96. package/models/components/leadstopurls.js +18 -9
  97. package/models/components/leadstopurls.js.map +1 -1
  98. package/models/components/linkgeotargeting.d.ts +265 -253
  99. package/models/components/linkgeotargeting.d.ts.map +1 -1
  100. package/models/components/linkgeotargeting.js +1024 -1015
  101. package/models/components/linkgeotargeting.js.map +1 -1
  102. package/models/components/linkschema.d.ts +320 -296
  103. package/models/components/linkschema.d.ts.map +1 -1
  104. package/models/components/linkschema.js +1135 -1117
  105. package/models/components/linkschema.js.map +1 -1
  106. package/models/components/salesbrowsers.d.ts +18 -6
  107. package/models/components/salesbrowsers.d.ts.map +1 -1
  108. package/models/components/salesbrowsers.js +20 -11
  109. package/models/components/salesbrowsers.js.map +1 -1
  110. package/models/components/salescities.d.ts +532 -9
  111. package/models/components/salescities.d.ts.map +1 -1
  112. package/models/components/salescities.js +33 -15
  113. package/models/components/salescities.js.map +1 -1
  114. package/models/components/salescount.d.ts +17 -5
  115. package/models/components/salescount.d.ts.map +1 -1
  116. package/models/components/salescount.js +18 -9
  117. package/models/components/salescount.js.map +1 -1
  118. package/models/components/salescountries.d.ts +531 -8
  119. package/models/components/salescountries.d.ts.map +1 -1
  120. package/models/components/salescountries.js +31 -13
  121. package/models/components/salescountries.js.map +1 -1
  122. package/models/components/salesdevices.d.ts +18 -6
  123. package/models/components/salesdevices.d.ts.map +1 -1
  124. package/models/components/salesdevices.js +20 -11
  125. package/models/components/salesdevices.js.map +1 -1
  126. package/models/components/salesos.d.ts +18 -6
  127. package/models/components/salesos.d.ts.map +1 -1
  128. package/models/components/salesos.js +20 -11
  129. package/models/components/salesos.js.map +1 -1
  130. package/models/components/salesreferers.d.ts +18 -6
  131. package/models/components/salesreferers.d.ts.map +1 -1
  132. package/models/components/salesreferers.js +20 -11
  133. package/models/components/salesreferers.js.map +1 -1
  134. package/models/components/salestimeseries.d.ts +18 -6
  135. package/models/components/salestimeseries.d.ts.map +1 -1
  136. package/models/components/salestimeseries.js +20 -11
  137. package/models/components/salestimeseries.js.map +1 -1
  138. package/models/components/salestoplinks.d.ts +24 -12
  139. package/models/components/salestoplinks.d.ts.map +1 -1
  140. package/models/components/salestoplinks.js +32 -23
  141. package/models/components/salestoplinks.js.map +1 -1
  142. package/models/components/salestopurls.d.ts +18 -6
  143. package/models/components/salestopurls.d.ts.map +1 -1
  144. package/models/components/salestopurls.js +20 -11
  145. package/models/components/salestopurls.js.map +1 -1
  146. package/models/components/security.d.ts +16 -4
  147. package/models/components/security.d.ts.map +1 -1
  148. package/models/components/security.js +16 -7
  149. package/models/components/security.js.map +1 -1
  150. package/models/components/tagschema.d.ts +45 -8
  151. package/models/components/tagschema.d.ts.map +1 -1
  152. package/models/components/tagschema.js +31 -13
  153. package/models/components/tagschema.js.map +1 -1
  154. package/models/components/workspaceschema.d.ts +112 -36
  155. package/models/components/workspaceschema.d.ts.map +1 -1
  156. package/models/components/workspaceschema.js +108 -63
  157. package/models/components/workspaceschema.js.map +1 -1
  158. package/models/errors/badrequest.d.ts +49 -12
  159. package/models/errors/badrequest.d.ts.map +1 -1
  160. package/models/errors/badrequest.js +69 -43
  161. package/models/errors/badrequest.js.map +1 -1
  162. package/models/errors/conflict.d.ts +49 -12
  163. package/models/errors/conflict.d.ts.map +1 -1
  164. package/models/errors/conflict.js +69 -43
  165. package/models/errors/conflict.js.map +1 -1
  166. package/models/errors/forbidden.d.ts +49 -12
  167. package/models/errors/forbidden.d.ts.map +1 -1
  168. package/models/errors/forbidden.js +69 -43
  169. package/models/errors/forbidden.js.map +1 -1
  170. package/models/errors/internalservererror.d.ts +49 -12
  171. package/models/errors/internalservererror.d.ts.map +1 -1
  172. package/models/errors/internalservererror.js +69 -43
  173. package/models/errors/internalservererror.js.map +1 -1
  174. package/models/errors/inviteexpired.d.ts +49 -12
  175. package/models/errors/inviteexpired.d.ts.map +1 -1
  176. package/models/errors/inviteexpired.js +69 -43
  177. package/models/errors/inviteexpired.js.map +1 -1
  178. package/models/errors/notfound.d.ts +49 -12
  179. package/models/errors/notfound.d.ts.map +1 -1
  180. package/models/errors/notfound.js +69 -43
  181. package/models/errors/notfound.js.map +1 -1
  182. package/models/errors/ratelimitexceeded.d.ts +49 -12
  183. package/models/errors/ratelimitexceeded.d.ts.map +1 -1
  184. package/models/errors/ratelimitexceeded.js +69 -43
  185. package/models/errors/ratelimitexceeded.js.map +1 -1
  186. package/models/errors/unauthorized.d.ts +49 -12
  187. package/models/errors/unauthorized.d.ts.map +1 -1
  188. package/models/errors/unauthorized.js +69 -43
  189. package/models/errors/unauthorized.js.map +1 -1
  190. package/models/errors/unprocessableentity.d.ts +49 -12
  191. package/models/errors/unprocessableentity.d.ts.map +1 -1
  192. package/models/errors/unprocessableentity.js +69 -43
  193. package/models/errors/unprocessableentity.js.map +1 -1
  194. package/models/operations/bulkcreatelinks.d.ts +83 -35
  195. package/models/operations/bulkcreatelinks.d.ts.map +1 -1
  196. package/models/operations/bulkcreatelinks.js +99 -66
  197. package/models/operations/bulkcreatelinks.js.map +1 -1
  198. package/models/operations/bulkupdatelinks.d.ts +80 -32
  199. package/models/operations/bulkupdatelinks.d.ts.map +1 -1
  200. package/models/operations/bulkupdatelinks.js +93 -60
  201. package/models/operations/bulkupdatelinks.js.map +1 -1
  202. package/models/operations/createdomain.d.ts +35 -11
  203. package/models/operations/createdomain.d.ts.map +1 -1
  204. package/models/operations/createdomain.js +37 -19
  205. package/models/operations/createdomain.js.map +1 -1
  206. package/models/operations/createlink.d.ts +83 -35
  207. package/models/operations/createlink.d.ts.map +1 -1
  208. package/models/operations/createlink.js +108 -75
  209. package/models/operations/createlink.js.map +1 -1
  210. package/models/operations/createtag.d.ts +61 -12
  211. package/models/operations/createtag.d.ts.map +1 -1
  212. package/models/operations/createtag.js +46 -19
  213. package/models/operations/createtag.js.map +1 -1
  214. package/models/operations/deletedomain.d.ts +48 -12
  215. package/models/operations/deletedomain.d.ts.map +1 -1
  216. package/models/operations/deletedomain.js +46 -19
  217. package/models/operations/deletedomain.js.map +1 -1
  218. package/models/operations/deletelink.d.ts +48 -12
  219. package/models/operations/deletelink.d.ts.map +1 -1
  220. package/models/operations/deletelink.js +46 -19
  221. package/models/operations/deletelink.js.map +1 -1
  222. package/models/operations/getlinkinfo.d.ts +35 -11
  223. package/models/operations/getlinkinfo.d.ts.map +1 -1
  224. package/models/operations/getlinkinfo.js +37 -19
  225. package/models/operations/getlinkinfo.js.map +1 -1
  226. package/models/operations/getlinks.d.ts +88 -23
  227. package/models/operations/getlinks.d.ts.map +1 -1
  228. package/models/operations/getlinks.js +82 -49
  229. package/models/operations/getlinks.js.map +1 -1
  230. package/models/operations/getlinkscount.d.ts +112 -26
  231. package/models/operations/getlinkscount.d.ts.map +1 -1
  232. package/models/operations/getlinkscount.js +108 -45
  233. package/models/operations/getlinkscount.js.map +1 -1
  234. package/models/operations/getmetatags.d.ts +34 -10
  235. package/models/operations/getmetatags.d.ts.map +1 -1
  236. package/models/operations/getmetatags.js +35 -17
  237. package/models/operations/getmetatags.js.map +1 -1
  238. package/models/operations/getqrcode.d.ts +42 -11
  239. package/models/operations/getqrcode.d.ts.map +1 -1
  240. package/models/operations/getqrcode.js +37 -19
  241. package/models/operations/getqrcode.js.map +1 -1
  242. package/models/operations/gettags.d.ts +30 -6
  243. package/models/operations/gettags.d.ts.map +1 -1
  244. package/models/operations/gettags.js +27 -9
  245. package/models/operations/gettags.js.map +1 -1
  246. package/models/operations/getworkspace.d.ts +16 -4
  247. package/models/operations/getworkspace.d.ts.map +1 -1
  248. package/models/operations/getworkspace.js +16 -7
  249. package/models/operations/getworkspace.js.map +1 -1
  250. package/models/operations/listdomains.d.ts +30 -6
  251. package/models/operations/listdomains.d.ts.map +1 -1
  252. package/models/operations/listdomains.js +27 -9
  253. package/models/operations/listdomains.js.map +1 -1
  254. package/models/operations/retrieveanalytics.d.ts +150 -35
  255. package/models/operations/retrieveanalytics.d.ts.map +1 -1
  256. package/models/operations/retrieveanalytics.js +175 -121
  257. package/models/operations/retrieveanalytics.js.map +1 -1
  258. package/models/operations/trackcustomer.d.ts +54 -18
  259. package/models/operations/trackcustomer.d.ts.map +1 -1
  260. package/models/operations/trackcustomer.js +58 -31
  261. package/models/operations/trackcustomer.js.map +1 -1
  262. package/models/operations/tracklead.d.ts +64 -28
  263. package/models/operations/tracklead.d.ts.map +1 -1
  264. package/models/operations/tracklead.js +70 -43
  265. package/models/operations/tracklead.js.map +1 -1
  266. package/models/operations/tracksale.d.ts +83 -30
  267. package/models/operations/tracksale.d.ts.map +1 -1
  268. package/models/operations/tracksale.js +81 -45
  269. package/models/operations/tracksale.js.map +1 -1
  270. package/models/operations/updatedomain.d.ts +52 -16
  271. package/models/operations/updatedomain.d.ts.map +1 -1
  272. package/models/operations/updatedomain.js +66 -39
  273. package/models/operations/updatedomain.js.map +1 -1
  274. package/models/operations/updatelink.d.ts +101 -44
  275. package/models/operations/updatelink.d.ts.map +1 -1
  276. package/models/operations/updatelink.js +128 -95
  277. package/models/operations/updatelink.js.map +1 -1
  278. package/models/operations/updatetag.d.ts +79 -18
  279. package/models/operations/updatetag.d.ts.map +1 -1
  280. package/models/operations/updatetag.js +75 -39
  281. package/models/operations/updatetag.js.map +1 -1
  282. package/models/operations/updateworkspace.d.ts +44 -5
  283. package/models/operations/updateworkspace.d.ts.map +1 -1
  284. package/models/operations/updateworkspace.js +52 -7
  285. package/models/operations/updateworkspace.js.map +1 -1
  286. package/models/operations/upsertlink.d.ts +83 -35
  287. package/models/operations/upsertlink.d.ts.map +1 -1
  288. package/models/operations/upsertlink.js +99 -75
  289. package/models/operations/upsertlink.js.map +1 -1
  290. package/package.json +2 -2
  291. package/sdk/analytics.js +11 -11
  292. package/sdk/analytics.js.map +1 -1
  293. package/sdk/domains.js +43 -43
  294. package/sdk/domains.js.map +1 -1
  295. package/sdk/links.js +98 -98
  296. package/sdk/links.js.map +1 -1
  297. package/sdk/metatags.js +2 -2
  298. package/sdk/metatags.js.map +1 -1
  299. package/sdk/qrcodes.js +10 -10
  300. package/sdk/qrcodes.js.map +1 -1
  301. package/sdk/tags.d.ts +1 -1
  302. package/sdk/tags.d.ts.map +1 -1
  303. package/sdk/tags.js +37 -34
  304. package/sdk/tags.js.map +1 -1
  305. package/sdk/track.d.ts.map +1 -1
  306. package/sdk/track.js +33 -33
  307. package/sdk/track.js.map +1 -1
  308. package/sdk/workspaces.d.ts +1 -1
  309. package/sdk/workspaces.d.ts.map +1 -1
  310. package/sdk/workspaces.js +29 -25
  311. package/sdk/workspaces.js.map +1 -1
  312. package/src/lib/config.ts +3 -3
  313. package/src/lib/sdks.ts +1 -1
  314. package/src/models/components/clicksbrowsers.ts +28 -10
  315. package/src/models/components/clickscities.ts +48 -19
  316. package/src/models/components/clickscount.ts +27 -10
  317. package/src/models/components/clickscountries.ts +42 -13
  318. package/src/models/components/clicksdevices.ts +28 -10
  319. package/src/models/components/clicksos.ts +24 -10
  320. package/src/models/components/clicksreferers.ts +28 -10
  321. package/src/models/components/clickstimeseries.ts +28 -10
  322. package/src/models/components/clickstoplinks.ts +40 -22
  323. package/src/models/components/clickstopurls.ts +28 -10
  324. package/src/models/components/countrycode.ts +15 -2
  325. package/src/models/components/domainschema.ts +51 -34
  326. package/src/models/components/leadsbrowsers.ts +28 -10
  327. package/src/models/components/leadscities.ts +48 -19
  328. package/src/models/components/leadscount.ts +22 -8
  329. package/src/models/components/leadscountries.ts +44 -14
  330. package/src/models/components/leadsdevices.ts +30 -13
  331. package/src/models/components/leadsos.ts +26 -13
  332. package/src/models/components/leadsreferers.ts +28 -10
  333. package/src/models/components/leadstimeseries.ts +28 -10
  334. package/src/models/components/leadstoplinks.ts +40 -22
  335. package/src/models/components/leadstopurls.ts +30 -13
  336. package/src/models/components/linkgeotargeting.ts +1282 -1265
  337. package/src/models/components/linkschema.ts +1439 -1408
  338. package/src/models/components/salesbrowsers.ts +30 -12
  339. package/src/models/components/salescities.ts +51 -22
  340. package/src/models/components/salescount.ts +24 -10
  341. package/src/models/components/salescountries.ts +46 -16
  342. package/src/models/components/salesdevices.ts +33 -16
  343. package/src/models/components/salesos.ts +29 -16
  344. package/src/models/components/salesreferers.ts +30 -12
  345. package/src/models/components/salestimeseries.ts +30 -12
  346. package/src/models/components/salestoplinks.ts +42 -24
  347. package/src/models/components/salestopurls.ts +33 -16
  348. package/src/models/components/security.ts +22 -8
  349. package/src/models/components/tagschema.ts +40 -15
  350. package/src/models/components/workspaceschema.ts +143 -77
  351. package/src/models/errors/badrequest.ts +90 -54
  352. package/src/models/errors/conflict.ts +96 -54
  353. package/src/models/errors/forbidden.ts +96 -54
  354. package/src/models/errors/internalservererror.ts +110 -55
  355. package/src/models/errors/inviteexpired.ts +104 -55
  356. package/src/models/errors/notfound.ts +96 -54
  357. package/src/models/errors/ratelimitexceeded.ts +100 -50
  358. package/src/models/errors/unauthorized.ts +92 -46
  359. package/src/models/errors/unprocessableentity.ts +110 -55
  360. package/src/models/operations/bulkcreatelinks.ts +181 -110
  361. package/src/models/operations/bulkupdatelinks.ts +168 -100
  362. package/src/models/operations/createdomain.ts +71 -31
  363. package/src/models/operations/createlink.ts +173 -109
  364. package/src/models/operations/createtag.ts +76 -28
  365. package/src/models/operations/deletedomain.ts +94 -33
  366. package/src/models/operations/deletelink.ts +84 -30
  367. package/src/models/operations/getlinkinfo.ts +71 -29
  368. package/src/models/operations/getlinks.ts +134 -58
  369. package/src/models/operations/getlinkscount.ts +190 -79
  370. package/src/models/operations/getmetatags.ts +68 -28
  371. package/src/models/operations/getqrcode.ts +50 -21
  372. package/src/models/operations/gettags.ts +48 -12
  373. package/src/models/operations/getworkspace.ts +31 -10
  374. package/src/models/operations/listdomains.ts +56 -16
  375. package/src/models/operations/retrieveanalytics.ts +278 -186
  376. package/src/models/operations/trackcustomer.ts +114 -57
  377. package/src/models/operations/tracklead.ts +126 -69
  378. package/src/models/operations/tracksale.ts +141 -72
  379. package/src/models/operations/updatedomain.ts +117 -56
  380. package/src/models/operations/updatelink.ts +210 -128
  381. package/src/models/operations/updatetag.ts +121 -55
  382. package/src/models/operations/updateworkspace.ts +94 -15
  383. package/src/models/operations/upsertlink.ts +176 -109
  384. package/src/sdk/analytics.ts +11 -11
  385. package/src/sdk/domains.ts +43 -43
  386. package/src/sdk/links.ts +98 -98
  387. package/src/sdk/metatags.ts +2 -2
  388. package/src/sdk/qrcodes.ts +10 -10
  389. package/src/sdk/tags.ts +38 -34
  390. package/src/sdk/track.ts +33 -34
  391. package/src/sdk/workspaces.ts +31 -26
@@ -49,83 +49,149 @@ export type UpdateTagRequestBody = {
49
49
 
50
50
  export type UpdateTagRequest = {
51
51
  /**
52
- * The ID of the tag
52
+ * The ID of the tag to update.
53
53
  */
54
54
  id: string;
55
55
  requestBody?: UpdateTagRequestBody | undefined;
56
56
  };
57
57
 
58
58
  /** @internal */
59
- export namespace UpdateTagGlobals$ {
60
- export const inboundSchema: z.ZodType<UpdateTagGlobals, z.ZodTypeDef, unknown> = z.object({
59
+ export const UpdateTagGlobals$inboundSchema: z.ZodType<UpdateTagGlobals, z.ZodTypeDef, unknown> =
60
+ z.object({
61
61
  workspaceId: z.string().optional(),
62
62
  });
63
63
 
64
- export type Outbound = {
65
- workspaceId?: string | undefined;
66
- };
64
+ /** @internal */
65
+ export type UpdateTagGlobals$Outbound = {
66
+ workspaceId?: string | undefined;
67
+ };
67
68
 
68
- export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, UpdateTagGlobals> = z.object({
69
- workspaceId: z.string().optional(),
70
- });
69
+ /** @internal */
70
+ export const UpdateTagGlobals$outboundSchema: z.ZodType<
71
+ UpdateTagGlobals$Outbound,
72
+ z.ZodTypeDef,
73
+ UpdateTagGlobals
74
+ > = z.object({
75
+ workspaceId: z.string().optional(),
76
+ });
77
+
78
+ /**
79
+ * @internal
80
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
81
+ */
82
+ export namespace UpdateTagGlobals$ {
83
+ /** @deprecated use `UpdateTagGlobals$inboundSchema` instead. */
84
+ export const inboundSchema = UpdateTagGlobals$inboundSchema;
85
+ /** @deprecated use `UpdateTagGlobals$outboundSchema` instead. */
86
+ export const outboundSchema = UpdateTagGlobals$outboundSchema;
87
+ /** @deprecated use `UpdateTagGlobals$Outbound` instead. */
88
+ export type Outbound = UpdateTagGlobals$Outbound;
71
89
  }
72
90
 
73
91
  /** @internal */
92
+ export const UpdateTagColor$inboundSchema: z.ZodNativeEnum<typeof UpdateTagColor> =
93
+ z.nativeEnum(UpdateTagColor);
94
+
95
+ /** @internal */
96
+ export const UpdateTagColor$outboundSchema: z.ZodNativeEnum<typeof UpdateTagColor> =
97
+ UpdateTagColor$inboundSchema;
98
+
99
+ /**
100
+ * @internal
101
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
102
+ */
74
103
  export namespace UpdateTagColor$ {
75
- export const inboundSchema: z.ZodNativeEnum<typeof UpdateTagColor> =
76
- z.nativeEnum(UpdateTagColor);
77
- export const outboundSchema: z.ZodNativeEnum<typeof UpdateTagColor> = inboundSchema;
104
+ /** @deprecated use `UpdateTagColor$inboundSchema` instead. */
105
+ export const inboundSchema = UpdateTagColor$inboundSchema;
106
+ /** @deprecated use `UpdateTagColor$outboundSchema` instead. */
107
+ export const outboundSchema = UpdateTagColor$outboundSchema;
78
108
  }
79
109
 
80
110
  /** @internal */
81
- export namespace UpdateTagRequestBody$ {
82
- export const inboundSchema: z.ZodType<UpdateTagRequestBody, z.ZodTypeDef, unknown> = z.object({
83
- name: z.string().optional(),
84
- color: UpdateTagColor$.inboundSchema.optional(),
85
- tag: z.string().optional(),
86
- });
111
+ export const UpdateTagRequestBody$inboundSchema: z.ZodType<
112
+ UpdateTagRequestBody,
113
+ z.ZodTypeDef,
114
+ unknown
115
+ > = z.object({
116
+ name: z.string().optional(),
117
+ color: UpdateTagColor$inboundSchema.optional(),
118
+ tag: z.string().optional(),
119
+ });
120
+
121
+ /** @internal */
122
+ export type UpdateTagRequestBody$Outbound = {
123
+ name?: string | undefined;
124
+ color?: string | undefined;
125
+ tag?: string | undefined;
126
+ };
127
+
128
+ /** @internal */
129
+ export const UpdateTagRequestBody$outboundSchema: z.ZodType<
130
+ UpdateTagRequestBody$Outbound,
131
+ z.ZodTypeDef,
132
+ UpdateTagRequestBody
133
+ > = z.object({
134
+ name: z.string().optional(),
135
+ color: UpdateTagColor$outboundSchema.optional(),
136
+ tag: z.string().optional(),
137
+ });
87
138
 
88
- export type Outbound = {
89
- name?: string | undefined;
90
- color?: string | undefined;
91
- tag?: string | undefined;
92
- };
93
-
94
- export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, UpdateTagRequestBody> = z.object(
95
- {
96
- name: z.string().optional(),
97
- color: UpdateTagColor$.outboundSchema.optional(),
98
- tag: z.string().optional(),
99
- }
100
- );
139
+ /**
140
+ * @internal
141
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
142
+ */
143
+ export namespace UpdateTagRequestBody$ {
144
+ /** @deprecated use `UpdateTagRequestBody$inboundSchema` instead. */
145
+ export const inboundSchema = UpdateTagRequestBody$inboundSchema;
146
+ /** @deprecated use `UpdateTagRequestBody$outboundSchema` instead. */
147
+ export const outboundSchema = UpdateTagRequestBody$outboundSchema;
148
+ /** @deprecated use `UpdateTagRequestBody$Outbound` instead. */
149
+ export type Outbound = UpdateTagRequestBody$Outbound;
101
150
  }
102
151
 
103
152
  /** @internal */
104
- export namespace UpdateTagRequest$ {
105
- export const inboundSchema: z.ZodType<UpdateTagRequest, z.ZodTypeDef, unknown> = z
106
- .object({
107
- id: z.string(),
108
- RequestBody: z.lazy(() => UpdateTagRequestBody$.inboundSchema).optional(),
109
- })
110
- .transform((v) => {
111
- return remap$(v, {
112
- RequestBody: "requestBody",
113
- });
153
+ export const UpdateTagRequest$inboundSchema: z.ZodType<UpdateTagRequest, z.ZodTypeDef, unknown> = z
154
+ .object({
155
+ id: z.string(),
156
+ RequestBody: z.lazy(() => UpdateTagRequestBody$inboundSchema).optional(),
157
+ })
158
+ .transform((v) => {
159
+ return remap$(v, {
160
+ RequestBody: "requestBody",
114
161
  });
162
+ });
115
163
 
116
- export type Outbound = {
117
- id: string;
118
- RequestBody?: UpdateTagRequestBody$.Outbound | undefined;
119
- };
120
-
121
- export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, UpdateTagRequest> = z
122
- .object({
123
- id: z.string(),
124
- requestBody: z.lazy(() => UpdateTagRequestBody$.outboundSchema).optional(),
125
- })
126
- .transform((v) => {
127
- return remap$(v, {
128
- requestBody: "RequestBody",
129
- });
164
+ /** @internal */
165
+ export type UpdateTagRequest$Outbound = {
166
+ id: string;
167
+ RequestBody?: UpdateTagRequestBody$Outbound | undefined;
168
+ };
169
+
170
+ /** @internal */
171
+ export const UpdateTagRequest$outboundSchema: z.ZodType<
172
+ UpdateTagRequest$Outbound,
173
+ z.ZodTypeDef,
174
+ UpdateTagRequest
175
+ > = z
176
+ .object({
177
+ id: z.string(),
178
+ requestBody: z.lazy(() => UpdateTagRequestBody$outboundSchema).optional(),
179
+ })
180
+ .transform((v) => {
181
+ return remap$(v, {
182
+ requestBody: "RequestBody",
130
183
  });
184
+ });
185
+
186
+ /**
187
+ * @internal
188
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
189
+ */
190
+ export namespace UpdateTagRequest$ {
191
+ /** @deprecated use `UpdateTagRequest$inboundSchema` instead. */
192
+ export const inboundSchema = UpdateTagRequest$inboundSchema;
193
+ /** @deprecated use `UpdateTagRequest$outboundSchema` instead. */
194
+ export const outboundSchema = UpdateTagRequest$outboundSchema;
195
+ /** @deprecated use `UpdateTagRequest$Outbound` instead. */
196
+ export type Outbound = UpdateTagRequest$Outbound;
131
197
  }
@@ -2,29 +2,108 @@
2
2
  * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
3
3
  */
4
4
 
5
+ import { remap as remap$ } from "../../lib/primitives.js";
5
6
  import * as z from "zod";
6
7
 
8
+ export type UpdateWorkspaceRequestBody = {
9
+ name?: string | undefined;
10
+ slug?: string | undefined;
11
+ };
12
+
7
13
  export type UpdateWorkspaceRequest = {
8
14
  /**
9
- * The ID or slug of the workspace.
15
+ * The ID or slug of the workspace to update.
10
16
  */
11
17
  idOrSlug: string;
18
+ requestBody?: UpdateWorkspaceRequestBody | undefined;
12
19
  };
13
20
 
14
21
  /** @internal */
15
- export namespace UpdateWorkspaceRequest$ {
16
- export const inboundSchema: z.ZodType<UpdateWorkspaceRequest, z.ZodTypeDef, unknown> = z.object(
17
- {
18
- idOrSlug: z.string(),
19
- }
20
- );
21
-
22
- export type Outbound = {
23
- idOrSlug: string;
24
- };
25
-
26
- export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, UpdateWorkspaceRequest> =
27
- z.object({
28
- idOrSlug: z.string(),
22
+ export const UpdateWorkspaceRequestBody$inboundSchema: z.ZodType<
23
+ UpdateWorkspaceRequestBody,
24
+ z.ZodTypeDef,
25
+ unknown
26
+ > = z.object({
27
+ name: z.string().optional(),
28
+ slug: z.string().optional(),
29
+ });
30
+
31
+ /** @internal */
32
+ export type UpdateWorkspaceRequestBody$Outbound = {
33
+ name?: string | undefined;
34
+ slug?: string | undefined;
35
+ };
36
+
37
+ /** @internal */
38
+ export const UpdateWorkspaceRequestBody$outboundSchema: z.ZodType<
39
+ UpdateWorkspaceRequestBody$Outbound,
40
+ z.ZodTypeDef,
41
+ UpdateWorkspaceRequestBody
42
+ > = z.object({
43
+ name: z.string().optional(),
44
+ slug: z.string().optional(),
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 UpdateWorkspaceRequestBody$ {
52
+ /** @deprecated use `UpdateWorkspaceRequestBody$inboundSchema` instead. */
53
+ export const inboundSchema = UpdateWorkspaceRequestBody$inboundSchema;
54
+ /** @deprecated use `UpdateWorkspaceRequestBody$outboundSchema` instead. */
55
+ export const outboundSchema = UpdateWorkspaceRequestBody$outboundSchema;
56
+ /** @deprecated use `UpdateWorkspaceRequestBody$Outbound` instead. */
57
+ export type Outbound = UpdateWorkspaceRequestBody$Outbound;
58
+ }
59
+
60
+ /** @internal */
61
+ export const UpdateWorkspaceRequest$inboundSchema: z.ZodType<
62
+ UpdateWorkspaceRequest,
63
+ z.ZodTypeDef,
64
+ unknown
65
+ > = z
66
+ .object({
67
+ idOrSlug: z.string(),
68
+ RequestBody: z.lazy(() => UpdateWorkspaceRequestBody$inboundSchema).optional(),
69
+ })
70
+ .transform((v) => {
71
+ return remap$(v, {
72
+ RequestBody: "requestBody",
29
73
  });
74
+ });
75
+
76
+ /** @internal */
77
+ export type UpdateWorkspaceRequest$Outbound = {
78
+ idOrSlug: string;
79
+ RequestBody?: UpdateWorkspaceRequestBody$Outbound | undefined;
80
+ };
81
+
82
+ /** @internal */
83
+ export const UpdateWorkspaceRequest$outboundSchema: z.ZodType<
84
+ UpdateWorkspaceRequest$Outbound,
85
+ z.ZodTypeDef,
86
+ UpdateWorkspaceRequest
87
+ > = z
88
+ .object({
89
+ idOrSlug: z.string(),
90
+ requestBody: z.lazy(() => UpdateWorkspaceRequestBody$outboundSchema).optional(),
91
+ })
92
+ .transform((v) => {
93
+ return remap$(v, {
94
+ requestBody: "RequestBody",
95
+ });
96
+ });
97
+
98
+ /**
99
+ * @internal
100
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
101
+ */
102
+ export namespace UpdateWorkspaceRequest$ {
103
+ /** @deprecated use `UpdateWorkspaceRequest$inboundSchema` instead. */
104
+ export const inboundSchema = UpdateWorkspaceRequest$inboundSchema;
105
+ /** @deprecated use `UpdateWorkspaceRequest$outboundSchema` instead. */
106
+ export const outboundSchema = UpdateWorkspaceRequest$outboundSchema;
107
+ /** @deprecated use `UpdateWorkspaceRequest$Outbound` instead. */
108
+ export type Outbound = UpdateWorkspaceRequest$Outbound;
30
109
  }
@@ -124,129 +124,196 @@ export type UpsertLinkRequestBody = {
124
124
  };
125
125
 
126
126
  /** @internal */
127
- export namespace UpsertLinkGlobals$ {
128
- export const inboundSchema: z.ZodType<UpsertLinkGlobals, z.ZodTypeDef, unknown> = z.object({
127
+ export const UpsertLinkGlobals$inboundSchema: z.ZodType<UpsertLinkGlobals, z.ZodTypeDef, unknown> =
128
+ z.object({
129
129
  workspaceId: z.string().optional(),
130
130
  });
131
131
 
132
- export type Outbound = {
133
- workspaceId?: string | undefined;
134
- };
132
+ /** @internal */
133
+ export type UpsertLinkGlobals$Outbound = {
134
+ workspaceId?: string | undefined;
135
+ };
135
136
 
136
- export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, UpsertLinkGlobals> = z.object({
137
- workspaceId: z.string().optional(),
138
- });
137
+ /** @internal */
138
+ export const UpsertLinkGlobals$outboundSchema: z.ZodType<
139
+ UpsertLinkGlobals$Outbound,
140
+ z.ZodTypeDef,
141
+ UpsertLinkGlobals
142
+ > = z.object({
143
+ workspaceId: z.string().optional(),
144
+ });
145
+
146
+ /**
147
+ * @internal
148
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
149
+ */
150
+ export namespace UpsertLinkGlobals$ {
151
+ /** @deprecated use `UpsertLinkGlobals$inboundSchema` instead. */
152
+ export const inboundSchema = UpsertLinkGlobals$inboundSchema;
153
+ /** @deprecated use `UpsertLinkGlobals$outboundSchema` instead. */
154
+ export const outboundSchema = UpsertLinkGlobals$outboundSchema;
155
+ /** @deprecated use `UpsertLinkGlobals$Outbound` instead. */
156
+ export type Outbound = UpsertLinkGlobals$Outbound;
139
157
  }
140
158
 
141
159
  /** @internal */
160
+ export const UpsertLinkTagIds$inboundSchema: z.ZodType<UpsertLinkTagIds, z.ZodTypeDef, unknown> =
161
+ z.union([z.string(), z.array(z.string())]);
162
+
163
+ /** @internal */
164
+ export type UpsertLinkTagIds$Outbound = string | Array<string>;
165
+
166
+ /** @internal */
167
+ export const UpsertLinkTagIds$outboundSchema: z.ZodType<
168
+ UpsertLinkTagIds$Outbound,
169
+ z.ZodTypeDef,
170
+ UpsertLinkTagIds
171
+ > = z.union([z.string(), z.array(z.string())]);
172
+
173
+ /**
174
+ * @internal
175
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
176
+ */
142
177
  export namespace UpsertLinkTagIds$ {
143
- export const inboundSchema: z.ZodType<UpsertLinkTagIds, z.ZodTypeDef, unknown> = z.union([
144
- z.string(),
145
- z.array(z.string()),
146
- ]);
147
-
148
- export type Outbound = string | Array<string>;
149
- export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, UpsertLinkTagIds> = z.union([
150
- z.string(),
151
- z.array(z.string()),
152
- ]);
178
+ /** @deprecated use `UpsertLinkTagIds$inboundSchema` instead. */
179
+ export const inboundSchema = UpsertLinkTagIds$inboundSchema;
180
+ /** @deprecated use `UpsertLinkTagIds$outboundSchema` instead. */
181
+ export const outboundSchema = UpsertLinkTagIds$outboundSchema;
182
+ /** @deprecated use `UpsertLinkTagIds$Outbound` instead. */
183
+ export type Outbound = UpsertLinkTagIds$Outbound;
153
184
  }
154
185
 
155
186
  /** @internal */
187
+ export const UpsertLinkTagNames$inboundSchema: z.ZodType<
188
+ UpsertLinkTagNames,
189
+ z.ZodTypeDef,
190
+ unknown
191
+ > = z.union([z.string(), z.array(z.string())]);
192
+
193
+ /** @internal */
194
+ export type UpsertLinkTagNames$Outbound = string | Array<string>;
195
+
196
+ /** @internal */
197
+ export const UpsertLinkTagNames$outboundSchema: z.ZodType<
198
+ UpsertLinkTagNames$Outbound,
199
+ z.ZodTypeDef,
200
+ UpsertLinkTagNames
201
+ > = z.union([z.string(), z.array(z.string())]);
202
+
203
+ /**
204
+ * @internal
205
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
206
+ */
156
207
  export namespace UpsertLinkTagNames$ {
157
- export const inboundSchema: z.ZodType<UpsertLinkTagNames, z.ZodTypeDef, unknown> = z.union([
158
- z.string(),
159
- z.array(z.string()),
160
- ]);
161
-
162
- export type Outbound = string | Array<string>;
163
- export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, UpsertLinkTagNames> = z.union([
164
- z.string(),
165
- z.array(z.string()),
166
- ]);
208
+ /** @deprecated use `UpsertLinkTagNames$inboundSchema` instead. */
209
+ export const inboundSchema = UpsertLinkTagNames$inboundSchema;
210
+ /** @deprecated use `UpsertLinkTagNames$outboundSchema` instead. */
211
+ export const outboundSchema = UpsertLinkTagNames$outboundSchema;
212
+ /** @deprecated use `UpsertLinkTagNames$Outbound` instead. */
213
+ export type Outbound = UpsertLinkTagNames$Outbound;
167
214
  }
168
215
 
169
216
  /** @internal */
170
- export namespace UpsertLinkRequestBody$ {
171
- export const inboundSchema: z.ZodType<UpsertLinkRequestBody, z.ZodTypeDef, unknown> = z.object({
172
- url: z.string(),
173
- domain: z.string().optional(),
174
- key: z.string().optional(),
175
- externalId: z.nullable(z.string()).optional(),
176
- prefix: z.string().optional(),
177
- trackConversion: z.boolean().default(false),
178
- archived: z.boolean().default(false),
179
- publicStats: z.boolean().default(false),
180
- tagId: z.nullable(z.string()).optional(),
181
- tagIds: z.union([z.string(), z.array(z.string())]).optional(),
182
- tagNames: z.union([z.string(), z.array(z.string())]).optional(),
183
- comments: z.nullable(z.string()).optional(),
184
- expiresAt: z.nullable(z.string()).optional(),
185
- expiredUrl: z.nullable(z.string()).optional(),
186
- password: z.nullable(z.string()).optional(),
187
- proxy: z.boolean().default(false),
188
- title: z.nullable(z.string()).optional(),
189
- description: z.nullable(z.string()).optional(),
190
- image: z.nullable(z.string()).optional(),
191
- rewrite: z.boolean().default(false),
192
- ios: z.nullable(z.string()).optional(),
193
- android: z.nullable(z.string()).optional(),
194
- geo: z.nullable(components.LinkGeoTargeting$.inboundSchema).optional(),
195
- doIndex: z.boolean().default(false),
196
- });
217
+ export const UpsertLinkRequestBody$inboundSchema: z.ZodType<
218
+ UpsertLinkRequestBody,
219
+ z.ZodTypeDef,
220
+ unknown
221
+ > = z.object({
222
+ url: z.string(),
223
+ domain: z.string().optional(),
224
+ key: z.string().optional(),
225
+ externalId: z.nullable(z.string()).optional(),
226
+ prefix: z.string().optional(),
227
+ trackConversion: z.boolean().default(false),
228
+ archived: z.boolean().default(false),
229
+ publicStats: z.boolean().default(false),
230
+ tagId: z.nullable(z.string()).optional(),
231
+ tagIds: z.union([z.string(), z.array(z.string())]).optional(),
232
+ tagNames: z.union([z.string(), z.array(z.string())]).optional(),
233
+ comments: z.nullable(z.string()).optional(),
234
+ expiresAt: z.nullable(z.string()).optional(),
235
+ expiredUrl: z.nullable(z.string()).optional(),
236
+ password: z.nullable(z.string()).optional(),
237
+ proxy: z.boolean().default(false),
238
+ title: z.nullable(z.string()).optional(),
239
+ description: z.nullable(z.string()).optional(),
240
+ image: z.nullable(z.string()).optional(),
241
+ rewrite: z.boolean().default(false),
242
+ ios: z.nullable(z.string()).optional(),
243
+ android: z.nullable(z.string()).optional(),
244
+ geo: z.nullable(components.LinkGeoTargeting$inboundSchema).optional(),
245
+ doIndex: z.boolean().default(false),
246
+ });
247
+
248
+ /** @internal */
249
+ export type UpsertLinkRequestBody$Outbound = {
250
+ url: string;
251
+ domain?: string | undefined;
252
+ key?: string | undefined;
253
+ externalId?: string | null | undefined;
254
+ prefix?: string | undefined;
255
+ trackConversion: boolean;
256
+ archived: boolean;
257
+ publicStats: boolean;
258
+ tagId?: string | null | undefined;
259
+ tagIds?: string | Array<string> | undefined;
260
+ tagNames?: string | Array<string> | undefined;
261
+ comments?: string | null | undefined;
262
+ expiresAt?: string | null | undefined;
263
+ expiredUrl?: string | null | undefined;
264
+ password?: string | null | undefined;
265
+ proxy: boolean;
266
+ title?: string | null | undefined;
267
+ description?: string | null | undefined;
268
+ image?: string | null | undefined;
269
+ rewrite: boolean;
270
+ ios?: string | null | undefined;
271
+ android?: string | null | undefined;
272
+ geo?: components.LinkGeoTargeting$Outbound | null | undefined;
273
+ doIndex: boolean;
274
+ };
275
+
276
+ /** @internal */
277
+ export const UpsertLinkRequestBody$outboundSchema: z.ZodType<
278
+ UpsertLinkRequestBody$Outbound,
279
+ z.ZodTypeDef,
280
+ UpsertLinkRequestBody
281
+ > = z.object({
282
+ url: z.string(),
283
+ domain: z.string().optional(),
284
+ key: z.string().optional(),
285
+ externalId: z.nullable(z.string()).optional(),
286
+ prefix: z.string().optional(),
287
+ trackConversion: z.boolean().default(false),
288
+ archived: z.boolean().default(false),
289
+ publicStats: z.boolean().default(false),
290
+ tagId: z.nullable(z.string()).optional(),
291
+ tagIds: z.union([z.string(), z.array(z.string())]).optional(),
292
+ tagNames: z.union([z.string(), z.array(z.string())]).optional(),
293
+ comments: z.nullable(z.string()).optional(),
294
+ expiresAt: z.nullable(z.string()).optional(),
295
+ expiredUrl: z.nullable(z.string()).optional(),
296
+ password: z.nullable(z.string()).optional(),
297
+ proxy: z.boolean().default(false),
298
+ title: z.nullable(z.string()).optional(),
299
+ description: z.nullable(z.string()).optional(),
300
+ image: z.nullable(z.string()).optional(),
301
+ rewrite: z.boolean().default(false),
302
+ ios: z.nullable(z.string()).optional(),
303
+ android: z.nullable(z.string()).optional(),
304
+ geo: z.nullable(components.LinkGeoTargeting$outboundSchema).optional(),
305
+ doIndex: z.boolean().default(false),
306
+ });
197
307
 
198
- export type Outbound = {
199
- url: string;
200
- domain?: string | undefined;
201
- key?: string | undefined;
202
- externalId?: string | null | undefined;
203
- prefix?: string | undefined;
204
- trackConversion: boolean;
205
- archived: boolean;
206
- publicStats: boolean;
207
- tagId?: string | null | undefined;
208
- tagIds?: string | Array<string> | undefined;
209
- tagNames?: string | Array<string> | undefined;
210
- comments?: string | null | undefined;
211
- expiresAt?: string | null | undefined;
212
- expiredUrl?: string | null | undefined;
213
- password?: string | null | undefined;
214
- proxy: boolean;
215
- title?: string | null | undefined;
216
- description?: string | null | undefined;
217
- image?: string | null | undefined;
218
- rewrite: boolean;
219
- ios?: string | null | undefined;
220
- android?: string | null | undefined;
221
- geo?: components.LinkGeoTargeting$.Outbound | null | undefined;
222
- doIndex: boolean;
223
- };
224
-
225
- export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, UpsertLinkRequestBody> =
226
- z.object({
227
- url: z.string(),
228
- domain: z.string().optional(),
229
- key: z.string().optional(),
230
- externalId: z.nullable(z.string()).optional(),
231
- prefix: z.string().optional(),
232
- trackConversion: z.boolean().default(false),
233
- archived: z.boolean().default(false),
234
- publicStats: z.boolean().default(false),
235
- tagId: z.nullable(z.string()).optional(),
236
- tagIds: z.union([z.string(), z.array(z.string())]).optional(),
237
- tagNames: z.union([z.string(), z.array(z.string())]).optional(),
238
- comments: z.nullable(z.string()).optional(),
239
- expiresAt: z.nullable(z.string()).optional(),
240
- expiredUrl: z.nullable(z.string()).optional(),
241
- password: z.nullable(z.string()).optional(),
242
- proxy: z.boolean().default(false),
243
- title: z.nullable(z.string()).optional(),
244
- description: z.nullable(z.string()).optional(),
245
- image: z.nullable(z.string()).optional(),
246
- rewrite: z.boolean().default(false),
247
- ios: z.nullable(z.string()).optional(),
248
- android: z.nullable(z.string()).optional(),
249
- geo: z.nullable(components.LinkGeoTargeting$.outboundSchema).optional(),
250
- doIndex: z.boolean().default(false),
251
- });
308
+ /**
309
+ * @internal
310
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
311
+ */
312
+ export namespace UpsertLinkRequestBody$ {
313
+ /** @deprecated use `UpsertLinkRequestBody$inboundSchema` instead. */
314
+ export const inboundSchema = UpsertLinkRequestBody$inboundSchema;
315
+ /** @deprecated use `UpsertLinkRequestBody$outboundSchema` instead. */
316
+ export const outboundSchema = UpsertLinkRequestBody$outboundSchema;
317
+ /** @deprecated use `UpsertLinkRequestBody$Outbound` instead. */
318
+ export type Outbound = UpsertLinkRequestBody$Outbound;
252
319
  }
@@ -52,7 +52,7 @@ export class Analytics extends ClientSDK {
52
52
 
53
53
  const payload$ = schemas$.parse(
54
54
  input$,
55
- (value$) => operations.RetrieveAnalyticsRequest$.outboundSchema.parse(value$),
55
+ (value$) => operations.RetrieveAnalyticsRequest$outboundSchema.parse(value$),
56
56
  "Input validation failed"
57
57
  );
58
58
  const body$ = null;
@@ -137,16 +137,16 @@ export class Analytics extends ClientSDK {
137
137
  };
138
138
 
139
139
  const [result$] = await this.matcher<operations.RetrieveAnalyticsResponseBody>()
140
- .json(200, operations.RetrieveAnalyticsResponseBody$)
141
- .json(400, errors.BadRequest$, { err: true })
142
- .json(401, errors.Unauthorized$, { err: true })
143
- .json(403, errors.Forbidden$, { err: true })
144
- .json(404, errors.NotFound$, { err: true })
145
- .json(409, errors.Conflict$, { err: true })
146
- .json(410, errors.InviteExpired$, { err: true })
147
- .json(422, errors.UnprocessableEntity$, { err: true })
148
- .json(429, errors.RateLimitExceeded$, { err: true })
149
- .json(500, errors.InternalServerError$, { err: true })
140
+ .json(200, operations.RetrieveAnalyticsResponseBody$inboundSchema)
141
+ .json(400, errors.BadRequest$inboundSchema, { err: true })
142
+ .json(401, errors.Unauthorized$inboundSchema, { err: true })
143
+ .json(403, errors.Forbidden$inboundSchema, { err: true })
144
+ .json(404, errors.NotFound$inboundSchema, { err: true })
145
+ .json(409, errors.Conflict$inboundSchema, { err: true })
146
+ .json(410, errors.InviteExpired$inboundSchema, { err: true })
147
+ .json(422, errors.UnprocessableEntity$inboundSchema, { err: true })
148
+ .json(429, errors.RateLimitExceeded$inboundSchema, { err: true })
149
+ .json(500, errors.InternalServerError$inboundSchema, { err: true })
150
150
  .fail(["4XX", "5XX"])
151
151
  .match(response, { extraFields: responseFields$ });
152
152