@oursprivacy/platform-sdk 1.52.0 → 1.54.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (376) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/client.d.mts +12 -6
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +12 -6
  5. package/client.d.ts.map +1 -1
  6. package/client.js +6 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +6 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +2 -2
  11. package/resources/allowed-events.d.mts +9 -7
  12. package/resources/allowed-events.d.mts.map +1 -1
  13. package/resources/allowed-events.d.ts +9 -7
  14. package/resources/allowed-events.d.ts.map +1 -1
  15. package/resources/allowed-events.js +9 -7
  16. package/resources/allowed-events.js.map +1 -1
  17. package/resources/allowed-events.mjs +9 -7
  18. package/resources/allowed-events.mjs.map +1 -1
  19. package/resources/analytics.d.mts +4 -2
  20. package/resources/analytics.d.mts.map +1 -1
  21. package/resources/analytics.d.ts +4 -2
  22. package/resources/analytics.d.ts.map +1 -1
  23. package/resources/analytics.js +4 -2
  24. package/resources/analytics.js.map +1 -1
  25. package/resources/analytics.mjs +4 -2
  26. package/resources/analytics.mjs.map +1 -1
  27. package/resources/attribution.d.mts +8 -5
  28. package/resources/attribution.d.mts.map +1 -1
  29. package/resources/attribution.d.ts +8 -5
  30. package/resources/attribution.d.ts.map +1 -1
  31. package/resources/attribution.js +8 -5
  32. package/resources/attribution.js.map +1 -1
  33. package/resources/attribution.mjs +8 -5
  34. package/resources/attribution.mjs.map +1 -1
  35. package/resources/audience-conversion-reports.d.mts +11 -9
  36. package/resources/audience-conversion-reports.d.mts.map +1 -1
  37. package/resources/audience-conversion-reports.d.ts +11 -9
  38. package/resources/audience-conversion-reports.d.ts.map +1 -1
  39. package/resources/audience-conversion-reports.js +11 -9
  40. package/resources/audience-conversion-reports.js.map +1 -1
  41. package/resources/audience-conversion-reports.mjs +11 -9
  42. package/resources/audience-conversion-reports.mjs.map +1 -1
  43. package/resources/consent-analytics.d.mts +2 -1
  44. package/resources/consent-analytics.d.mts.map +1 -1
  45. package/resources/consent-analytics.d.ts +2 -1
  46. package/resources/consent-analytics.d.ts.map +1 -1
  47. package/resources/consent-analytics.js +2 -1
  48. package/resources/consent-analytics.js.map +1 -1
  49. package/resources/consent-analytics.mjs +2 -1
  50. package/resources/consent-analytics.mjs.map +1 -1
  51. package/resources/consent-settings.d.mts +6238 -650
  52. package/resources/consent-settings.d.mts.map +1 -1
  53. package/resources/consent-settings.d.ts +6238 -650
  54. package/resources/consent-settings.d.ts.map +1 -1
  55. package/resources/consent-settings.js +72 -34
  56. package/resources/consent-settings.js.map +1 -1
  57. package/resources/consent-settings.mjs +72 -34
  58. package/resources/consent-settings.mjs.map +1 -1
  59. package/resources/conversion-journey-summaries.d.mts +10 -5
  60. package/resources/conversion-journey-summaries.d.mts.map +1 -1
  61. package/resources/conversion-journey-summaries.d.ts +10 -5
  62. package/resources/conversion-journey-summaries.d.ts.map +1 -1
  63. package/resources/conversion-journey-summaries.js +10 -5
  64. package/resources/conversion-journey-summaries.js.map +1 -1
  65. package/resources/conversion-journey-summaries.mjs +10 -5
  66. package/resources/conversion-journey-summaries.mjs.map +1 -1
  67. package/resources/custom-domains.d.mts +301 -0
  68. package/resources/custom-domains.d.mts.map +1 -0
  69. package/resources/custom-domains.d.ts +301 -0
  70. package/resources/custom-domains.d.ts.map +1 -0
  71. package/resources/custom-domains.js +55 -0
  72. package/resources/custom-domains.js.map +1 -0
  73. package/resources/custom-domains.mjs +51 -0
  74. package/resources/custom-domains.mjs.map +1 -0
  75. package/resources/data-governance.d.mts +83 -21
  76. package/resources/data-governance.d.mts.map +1 -1
  77. package/resources/data-governance.d.ts +83 -21
  78. package/resources/data-governance.d.ts.map +1 -1
  79. package/resources/data-governance.js +8 -6
  80. package/resources/data-governance.js.map +1 -1
  81. package/resources/data-governance.mjs +8 -6
  82. package/resources/data-governance.mjs.map +1 -1
  83. package/resources/default-mappings.d.mts +213 -8
  84. package/resources/default-mappings.d.mts.map +1 -1
  85. package/resources/default-mappings.d.ts +213 -8
  86. package/resources/default-mappings.d.ts.map +1 -1
  87. package/resources/default-mappings.js +6 -5
  88. package/resources/default-mappings.js.map +1 -1
  89. package/resources/default-mappings.mjs +6 -5
  90. package/resources/default-mappings.mjs.map +1 -1
  91. package/resources/destinations.d.mts +45 -20
  92. package/resources/destinations.d.mts.map +1 -1
  93. package/resources/destinations.d.ts +45 -20
  94. package/resources/destinations.d.ts.map +1 -1
  95. package/resources/destinations.js +12 -7
  96. package/resources/destinations.js.map +1 -1
  97. package/resources/destinations.mjs +12 -7
  98. package/resources/destinations.mjs.map +1 -1
  99. package/resources/experiment-settings.d.mts +9 -6
  100. package/resources/experiment-settings.d.mts.map +1 -1
  101. package/resources/experiment-settings.d.ts +9 -6
  102. package/resources/experiment-settings.d.ts.map +1 -1
  103. package/resources/experiment-settings.js +9 -6
  104. package/resources/experiment-settings.js.map +1 -1
  105. package/resources/experiment-settings.mjs +9 -6
  106. package/resources/experiment-settings.mjs.map +1 -1
  107. package/resources/experiment-variants.d.mts +126 -19
  108. package/resources/experiment-variants.d.mts.map +1 -1
  109. package/resources/experiment-variants.d.ts +126 -19
  110. package/resources/experiment-variants.d.ts.map +1 -1
  111. package/resources/experiment-variants.js +9 -5
  112. package/resources/experiment-variants.js.map +1 -1
  113. package/resources/experiment-variants.mjs +9 -5
  114. package/resources/experiment-variants.mjs.map +1 -1
  115. package/resources/experiments.d.mts +4009 -272
  116. package/resources/experiments.d.mts.map +1 -1
  117. package/resources/experiments.d.ts +4009 -272
  118. package/resources/experiments.d.ts.map +1 -1
  119. package/resources/experiments.js +30 -19
  120. package/resources/experiments.js.map +1 -1
  121. package/resources/experiments.mjs +30 -19
  122. package/resources/experiments.mjs.map +1 -1
  123. package/resources/funnels.d.mts +659 -17
  124. package/resources/funnels.d.mts.map +1 -1
  125. package/resources/funnels.d.ts +659 -17
  126. package/resources/funnels.d.ts.map +1 -1
  127. package/resources/funnels.js +11 -10
  128. package/resources/funnels.js.map +1 -1
  129. package/resources/funnels.mjs +11 -10
  130. package/resources/funnels.mjs.map +1 -1
  131. package/resources/heatmap-pages.d.mts +3 -2
  132. package/resources/heatmap-pages.d.mts.map +1 -1
  133. package/resources/heatmap-pages.d.ts +3 -2
  134. package/resources/heatmap-pages.d.ts.map +1 -1
  135. package/resources/heatmap-pages.js +3 -2
  136. package/resources/heatmap-pages.js.map +1 -1
  137. package/resources/heatmap-pages.mjs +3 -2
  138. package/resources/heatmap-pages.mjs.map +1 -1
  139. package/resources/index.d.mts +5 -3
  140. package/resources/index.d.mts.map +1 -1
  141. package/resources/index.d.ts +5 -3
  142. package/resources/index.d.ts.map +1 -1
  143. package/resources/index.js +5 -1
  144. package/resources/index.js.map +1 -1
  145. package/resources/index.mjs +2 -0
  146. package/resources/index.mjs.map +1 -1
  147. package/resources/journey-flows.d.mts +597 -28
  148. package/resources/journey-flows.d.mts.map +1 -1
  149. package/resources/journey-flows.d.ts +597 -28
  150. package/resources/journey-flows.d.ts.map +1 -1
  151. package/resources/journey-flows.js +17 -12
  152. package/resources/journey-flows.js.map +1 -1
  153. package/resources/journey-flows.mjs +17 -12
  154. package/resources/journey-flows.mjs.map +1 -1
  155. package/resources/locations.d.mts +31 -10
  156. package/resources/locations.d.mts.map +1 -1
  157. package/resources/locations.d.ts +31 -10
  158. package/resources/locations.d.ts.map +1 -1
  159. package/resources/locations.js +6 -5
  160. package/resources/locations.js.map +1 -1
  161. package/resources/locations.mjs +6 -5
  162. package/resources/locations.mjs.map +1 -1
  163. package/resources/mappings.d.mts +558 -24
  164. package/resources/mappings.d.mts.map +1 -1
  165. package/resources/mappings.d.ts +558 -24
  166. package/resources/mappings.d.ts.map +1 -1
  167. package/resources/mappings.js +40 -12
  168. package/resources/mappings.js.map +1 -1
  169. package/resources/mappings.mjs +40 -12
  170. package/resources/mappings.mjs.map +1 -1
  171. package/resources/me.d.mts +29 -0
  172. package/resources/me.d.mts.map +1 -0
  173. package/resources/me.d.ts +29 -0
  174. package/resources/me.d.ts.map +1 -0
  175. package/resources/me.js +17 -0
  176. package/resources/me.js.map +1 -0
  177. package/resources/me.mjs +13 -0
  178. package/resources/me.mjs.map +1 -0
  179. package/resources/personalization-properties.d.mts +10 -7
  180. package/resources/personalization-properties.d.mts.map +1 -1
  181. package/resources/personalization-properties.d.ts +10 -7
  182. package/resources/personalization-properties.d.ts.map +1 -1
  183. package/resources/personalization-properties.js +10 -7
  184. package/resources/personalization-properties.js.map +1 -1
  185. package/resources/personalization-properties.mjs +10 -7
  186. package/resources/personalization-properties.mjs.map +1 -1
  187. package/resources/replay-settings.d.mts +126 -9
  188. package/resources/replay-settings.d.mts.map +1 -1
  189. package/resources/replay-settings.d.ts +126 -9
  190. package/resources/replay-settings.d.ts.map +1 -1
  191. package/resources/replay-settings.js +9 -6
  192. package/resources/replay-settings.js.map +1 -1
  193. package/resources/replay-settings.mjs +9 -6
  194. package/resources/replay-settings.mjs.map +1 -1
  195. package/resources/session-replays.d.mts +9 -2
  196. package/resources/session-replays.d.mts.map +1 -1
  197. package/resources/session-replays.d.ts +9 -2
  198. package/resources/session-replays.d.ts.map +1 -1
  199. package/resources/session-replays.js +4 -2
  200. package/resources/session-replays.js.map +1 -1
  201. package/resources/session-replays.mjs +4 -2
  202. package/resources/session-replays.mjs.map +1 -1
  203. package/resources/short-links.d.mts +733 -17
  204. package/resources/short-links.d.mts.map +1 -1
  205. package/resources/short-links.d.ts +733 -17
  206. package/resources/short-links.d.ts.map +1 -1
  207. package/resources/short-links.js +11 -7
  208. package/resources/short-links.js.map +1 -1
  209. package/resources/short-links.mjs +11 -7
  210. package/resources/short-links.mjs.map +1 -1
  211. package/resources/sources.d.mts +98 -17
  212. package/resources/sources.d.mts.map +1 -1
  213. package/resources/sources.d.ts +98 -17
  214. package/resources/sources.d.ts.map +1 -1
  215. package/resources/sources.js +12 -6
  216. package/resources/sources.js.map +1 -1
  217. package/resources/sources.mjs +12 -6
  218. package/resources/sources.mjs.map +1 -1
  219. package/resources/tag-manager-asset-folders.d.mts +2 -1
  220. package/resources/tag-manager-asset-folders.d.mts.map +1 -1
  221. package/resources/tag-manager-asset-folders.d.ts +2 -1
  222. package/resources/tag-manager-asset-folders.d.ts.map +1 -1
  223. package/resources/tag-manager-asset-folders.js +2 -1
  224. package/resources/tag-manager-asset-folders.js.map +1 -1
  225. package/resources/tag-manager-asset-folders.mjs +2 -1
  226. package/resources/tag-manager-asset-folders.mjs.map +1 -1
  227. package/resources/tag-manager-folders.d.mts +9 -7
  228. package/resources/tag-manager-folders.d.mts.map +1 -1
  229. package/resources/tag-manager-folders.d.ts +9 -7
  230. package/resources/tag-manager-folders.d.ts.map +1 -1
  231. package/resources/tag-manager-folders.js +9 -7
  232. package/resources/tag-manager-folders.js.map +1 -1
  233. package/resources/tag-manager-folders.mjs +9 -7
  234. package/resources/tag-manager-folders.mjs.map +1 -1
  235. package/resources/tag-manager-tags.d.mts +13 -7
  236. package/resources/tag-manager-tags.d.mts.map +1 -1
  237. package/resources/tag-manager-tags.d.ts +13 -7
  238. package/resources/tag-manager-tags.d.ts.map +1 -1
  239. package/resources/tag-manager-tags.js +10 -6
  240. package/resources/tag-manager-tags.js.map +1 -1
  241. package/resources/tag-manager-tags.mjs +10 -6
  242. package/resources/tag-manager-tags.mjs.map +1 -1
  243. package/resources/tag-manager-triggers.d.mts +14 -7
  244. package/resources/tag-manager-triggers.d.mts.map +1 -1
  245. package/resources/tag-manager-triggers.d.ts +14 -7
  246. package/resources/tag-manager-triggers.d.ts.map +1 -1
  247. package/resources/tag-manager-triggers.js +11 -6
  248. package/resources/tag-manager-triggers.js.map +1 -1
  249. package/resources/tag-manager-triggers.mjs +11 -6
  250. package/resources/tag-manager-triggers.mjs.map +1 -1
  251. package/resources/tag-manager-variables.d.mts +53 -23
  252. package/resources/tag-manager-variables.d.mts.map +1 -1
  253. package/resources/tag-manager-variables.d.ts +53 -23
  254. package/resources/tag-manager-variables.d.ts.map +1 -1
  255. package/resources/tag-manager-variables.js +10 -6
  256. package/resources/tag-manager-variables.js.map +1 -1
  257. package/resources/tag-manager-variables.mjs +10 -6
  258. package/resources/tag-manager-variables.mjs.map +1 -1
  259. package/resources/tag-managers.d.mts +24 -6
  260. package/resources/tag-managers.d.mts.map +1 -1
  261. package/resources/tag-managers.d.ts +24 -6
  262. package/resources/tag-managers.d.ts.map +1 -1
  263. package/resources/tag-managers.js +18 -5
  264. package/resources/tag-managers.js.map +1 -1
  265. package/resources/tag-managers.mjs +18 -5
  266. package/resources/tag-managers.mjs.map +1 -1
  267. package/resources/test-events.d.mts +73 -15
  268. package/resources/test-events.d.mts.map +1 -1
  269. package/resources/test-events.d.ts +73 -15
  270. package/resources/test-events.d.ts.map +1 -1
  271. package/resources/test-events.js +6 -4
  272. package/resources/test-events.js.map +1 -1
  273. package/resources/test-events.mjs +6 -4
  274. package/resources/test-events.mjs.map +1 -1
  275. package/resources/translation-widgets.d.mts +7 -6
  276. package/resources/translation-widgets.d.mts.map +1 -1
  277. package/resources/translation-widgets.d.ts +7 -6
  278. package/resources/translation-widgets.d.ts.map +1 -1
  279. package/resources/translation-widgets.js +7 -6
  280. package/resources/translation-widgets.js.map +1 -1
  281. package/resources/translation-widgets.mjs +7 -6
  282. package/resources/translation-widgets.mjs.map +1 -1
  283. package/resources/versions.d.mts +102 -47
  284. package/resources/versions.d.mts.map +1 -1
  285. package/resources/versions.d.ts +102 -47
  286. package/resources/versions.d.ts.map +1 -1
  287. package/resources/versions.js +20 -15
  288. package/resources/versions.js.map +1 -1
  289. package/resources/versions.mjs +20 -15
  290. package/resources/versions.mjs.map +1 -1
  291. package/resources/video-channels.d.mts +47 -13
  292. package/resources/video-channels.d.mts.map +1 -1
  293. package/resources/video-channels.d.ts +47 -13
  294. package/resources/video-channels.d.ts.map +1 -1
  295. package/resources/video-channels.js +15 -9
  296. package/resources/video-channels.js.map +1 -1
  297. package/resources/video-channels.mjs +15 -9
  298. package/resources/video-channels.mjs.map +1 -1
  299. package/resources/videos.d.mts +21 -14
  300. package/resources/videos.d.mts.map +1 -1
  301. package/resources/videos.d.ts +21 -14
  302. package/resources/videos.d.ts.map +1 -1
  303. package/resources/videos.js +21 -14
  304. package/resources/videos.js.map +1 -1
  305. package/resources/videos.mjs +21 -14
  306. package/resources/videos.mjs.map +1 -1
  307. package/resources/web-analytics.d.mts +14 -9
  308. package/resources/web-analytics.d.mts.map +1 -1
  309. package/resources/web-analytics.d.ts +14 -9
  310. package/resources/web-analytics.d.ts.map +1 -1
  311. package/resources/web-analytics.js +14 -9
  312. package/resources/web-analytics.js.map +1 -1
  313. package/resources/web-analytics.mjs +14 -9
  314. package/resources/web-analytics.mjs.map +1 -1
  315. package/resources/web-scanner-rules.d.mts +10 -6
  316. package/resources/web-scanner-rules.d.mts.map +1 -1
  317. package/resources/web-scanner-rules.d.ts +10 -6
  318. package/resources/web-scanner-rules.d.ts.map +1 -1
  319. package/resources/web-scanner-rules.js +10 -6
  320. package/resources/web-scanner-rules.js.map +1 -1
  321. package/resources/web-scanner-rules.mjs +10 -6
  322. package/resources/web-scanner-rules.mjs.map +1 -1
  323. package/resources/web-scanners.d.mts +26 -19
  324. package/resources/web-scanners.d.mts.map +1 -1
  325. package/resources/web-scanners.d.ts +26 -19
  326. package/resources/web-scanners.d.ts.map +1 -1
  327. package/resources/web-scanners.js +25 -18
  328. package/resources/web-scanners.js.map +1 -1
  329. package/resources/web-scanners.mjs +25 -18
  330. package/resources/web-scanners.mjs.map +1 -1
  331. package/src/client.ts +44 -0
  332. package/src/resources/allowed-events.ts +9 -7
  333. package/src/resources/analytics.ts +4 -2
  334. package/src/resources/attribution.ts +8 -5
  335. package/src/resources/audience-conversion-reports.ts +11 -9
  336. package/src/resources/consent-analytics.ts +2 -1
  337. package/src/resources/consent-settings.ts +7576 -519
  338. package/src/resources/conversion-journey-summaries.ts +10 -5
  339. package/src/resources/custom-domains.ts +450 -0
  340. package/src/resources/data-governance.ts +53 -21
  341. package/src/resources/default-mappings.ts +309 -8
  342. package/src/resources/destinations.ts +40 -15
  343. package/src/resources/experiment-settings.ts +9 -6
  344. package/src/resources/experiment-variants.ts +140 -19
  345. package/src/resources/experiments.ts +8051 -462
  346. package/src/resources/funnels.ts +1366 -17
  347. package/src/resources/heatmap-pages.ts +3 -2
  348. package/src/resources/index.ts +19 -0
  349. package/src/resources/journey-flows.ts +1241 -28
  350. package/src/resources/locations.ts +41 -10
  351. package/src/resources/mappings.ts +812 -31
  352. package/src/resources/me.ts +37 -0
  353. package/src/resources/personalization-properties.ts +10 -7
  354. package/src/resources/replay-settings.ts +147 -9
  355. package/src/resources/session-replays.ts +10 -2
  356. package/src/resources/short-links.ts +883 -17
  357. package/src/resources/sources.ts +108 -17
  358. package/src/resources/tag-manager-asset-folders.ts +2 -1
  359. package/src/resources/tag-manager-folders.ts +9 -7
  360. package/src/resources/tag-manager-tags.ts +17 -7
  361. package/src/resources/tag-manager-triggers.ts +18 -7
  362. package/src/resources/tag-manager-variables.ts +101 -19
  363. package/src/resources/tag-managers.ts +35 -5
  364. package/src/resources/test-events.ts +53 -15
  365. package/src/resources/translation-widgets.ts +7 -6
  366. package/src/resources/versions.ts +104 -47
  367. package/src/resources/video-channels.ts +59 -13
  368. package/src/resources/videos.ts +21 -14
  369. package/src/resources/web-analytics.ts +14 -9
  370. package/src/resources/web-scanner-rules.ts +10 -6
  371. package/src/resources/web-scanners.ts +26 -19
  372. package/src/version.ts +1 -1
  373. package/version.d.mts +1 -1
  374. package/version.d.ts +1 -1
  375. package/version.js +1 -1
  376. package/version.mjs +1 -1
@@ -13,7 +13,7 @@ export class ShortLinks extends APIResource {
13
13
  * excluded. Supports cursor pagination and optional `status`, `nameContains`, and
14
14
  * `search` filters. Search matches names, destinations, and codes. Each entity
15
15
  * bundles the destination URL, immutable code, path format, and QR/campaign
16
- * design. Requires scope: source:list
16
+ * design. Requires API-key scope or current OAuth user permission: source:list
17
17
  *
18
18
  * @example
19
19
  * ```ts
@@ -39,7 +39,8 @@ export class ShortLinks extends APIResource {
39
39
  * compact code; `shortUrl` resolves as `/r/{pixel}` without tracking query
40
40
  * parameters. All body fields are optional: send `{}` to create an unconfigured
41
41
  * link and fill it in later with PATCH. A newly created short link only resolves
42
- * at the edge once a version is published. Requires scope: source:create
42
+ * at the edge once a version is published. Requires API-key scope or current OAuth
43
+ * user permission: source:create
43
44
  *
44
45
  * @example
45
46
  * ```ts
@@ -56,7 +57,8 @@ export class ShortLinks extends APIResource {
56
57
  /**
57
58
  * Fetch a single short link by id, including its destination, immutable code,
58
59
  * composed `shortUrl`, and QR/campaign design. Returns 404 when no short link
59
- * matches the id or it belongs to a different account. Requires scope: source:view
60
+ * matches the id or it belongs to a different account. Requires API-key scope or
61
+ * current OAuth user permission: source:view
60
62
  *
61
63
  * @example
62
64
  * ```ts
@@ -71,7 +73,8 @@ export class ShortLinks extends APIResource {
71
73
  * Partially update a short link. Only the fields you send are changed; omitted
72
74
  * fields are unchanged. Send explicit `null` to clear `redirectUrl`. The `utm` and
73
75
  * `qr` objects are replaced wholesale when sent. Returns the full short link
74
- * entity after the update. Requires scope: source:update
76
+ * entity after the update. Requires API-key scope or current OAuth user
77
+ * permission: source:update
75
78
  *
76
79
  * @example
77
80
  * ```ts
@@ -88,7 +91,8 @@ export class ShortLinks extends APIResource {
88
91
 
89
92
  /**
90
93
  * Delete a short link and its QR/campaign design. After deletion the short URL
91
- * stops resolving on the next publish. Requires scope: source:delete
94
+ * stops resolving on the next publish. Requires API-key scope or current OAuth
95
+ * user permission: source:delete
92
96
  *
93
97
  * @example
94
98
  * ```ts
@@ -102,7 +106,7 @@ export class ShortLinks extends APIResource {
102
106
  /**
103
107
  * Duplicate a short link with its campaign tags and QR styling. The copy starts
104
108
  * disabled with a new code. Requires permission to view the original and create a
105
- * source. Requires scope: source:create
109
+ * source. Requires API-key scope or current OAuth user permission: source:create
106
110
  *
107
111
  * @example
108
112
  * ```ts
@@ -120,7 +124,7 @@ export class ShortLinks extends APIResource {
120
124
  * (`YYYY-MM-DD`); set `granularity=HOURLY` for hourly buckets and
121
125
  * `excludeBots=false` to include bot traffic. Requires the `shortlink:reporting`
122
126
  * scope, which is gated separately because analytics data is PHI-bearing. Requires
123
- * scope: shortlink:reporting
127
+ * API-key scope or current OAuth user permission: shortlink:reporting
124
128
  *
125
129
  * @example
126
130
  * ```ts
@@ -193,7 +197,7 @@ export interface ShortLinkListResponse {
193
197
  * QR styling + campaign tags. New links include an empty design; legacy redirects
194
198
  * may return null.
195
199
  */
196
- shortLinkDesign?: unknown | null;
200
+ shortLinkDesign?: ShortLinkListResponse.ShortLinkDesign | null;
197
201
 
198
202
  /**
199
203
  * The public short-link URL that the QR encodes and callers share. New links use
@@ -203,6 +207,132 @@ export interface ShortLinkListResponse {
203
207
  shortUrl?: string | null;
204
208
  }
205
209
 
210
+ export namespace ShortLinkListResponse {
211
+ /**
212
+ * QR styling + campaign tags. New links include an empty design; legacy redirects
213
+ * may return null.
214
+ */
215
+ export interface ShortLinkDesign {
216
+ qr?: ShortLinkDesign.Qr | null;
217
+
218
+ utm?: ShortLinkDesign.Utm | null;
219
+ }
220
+
221
+ export namespace ShortLinkDesign {
222
+ export interface Qr {
223
+ /**
224
+ * Background color.
225
+ */
226
+ bgColor?: string | null;
227
+
228
+ /**
229
+ * Finder (corner) dot shape: `square` or `dot`.
230
+ */
231
+ cornerDotStyle?: string | null;
232
+
233
+ /**
234
+ * Finder (corner) square shape: `square`, `dot`, or `extra-rounded`.
235
+ */
236
+ cornerSquareStyle?: string | null;
237
+
238
+ /**
239
+ * Module shape: `square`, `rounded`, `dots`, `classy`, `classy-rounded`, or
240
+ * `extra-rounded`.
241
+ */
242
+ dotStyle?: string | null;
243
+
244
+ /**
245
+ * Foreground (module) color.
246
+ */
247
+ fgColor?: string | null;
248
+
249
+ /**
250
+ * Download frame: `square`, `rounded`, or `circle`.
251
+ */
252
+ frameShape?: string | null;
253
+
254
+ /**
255
+ * A two-stop gradient fill for the QR modules.
256
+ */
257
+ gradient?: Qr.Gradient | null;
258
+
259
+ /**
260
+ * Base64 data URL of a centered logo overlay.
261
+ */
262
+ logo?: string | null;
263
+
264
+ /**
265
+ * Logo size as a fraction of the QR (0–0.4).
266
+ */
267
+ logoSizeRatio?: number | null;
268
+
269
+ /**
270
+ * The selected preset theme id, for re-highlighting it in a UI.
271
+ */
272
+ theme?: string | null;
273
+
274
+ /**
275
+ * When true, the background is exported transparent.
276
+ */
277
+ transparentBackground?: boolean | null;
278
+ }
279
+
280
+ export namespace Qr {
281
+ /**
282
+ * A two-stop gradient fill for the QR modules.
283
+ */
284
+ export interface Gradient {
285
+ /**
286
+ * Gradient end color.
287
+ */
288
+ endColor: string;
289
+
290
+ /**
291
+ * Gradient start color.
292
+ */
293
+ startColor: string;
294
+
295
+ /**
296
+ * Gradient type: `linear` or `radial`.
297
+ */
298
+ type: string;
299
+
300
+ /**
301
+ * Rotation in radians (linear gradients only).
302
+ */
303
+ rotation?: number | null;
304
+ }
305
+ }
306
+
307
+ export interface Utm {
308
+ /**
309
+ * The `utm_campaign` value appended to the tracked short-link URL.
310
+ */
311
+ campaign?: string | null;
312
+
313
+ /**
314
+ * The `utm_content` value.
315
+ */
316
+ content?: string | null;
317
+
318
+ /**
319
+ * The `utm_medium` value.
320
+ */
321
+ medium?: string | null;
322
+
323
+ /**
324
+ * The `utm_source` value.
325
+ */
326
+ source?: string | null;
327
+
328
+ /**
329
+ * The `utm_term` value.
330
+ */
331
+ term?: string | null;
332
+ }
333
+ }
334
+ }
335
+
206
336
  export interface ShortLinkCreateResponse {
207
337
  id: string;
208
338
 
@@ -255,7 +385,7 @@ export interface ShortLinkCreateResponse {
255
385
  * QR styling + campaign tags. New links include an empty design; legacy redirects
256
386
  * may return null.
257
387
  */
258
- shortLinkDesign?: unknown | null;
388
+ shortLinkDesign?: ShortLinkCreateResponse.ShortLinkDesign | null;
259
389
 
260
390
  /**
261
391
  * The public short-link URL that the QR encodes and callers share. New links use
@@ -265,6 +395,132 @@ export interface ShortLinkCreateResponse {
265
395
  shortUrl?: string | null;
266
396
  }
267
397
 
398
+ export namespace ShortLinkCreateResponse {
399
+ /**
400
+ * QR styling + campaign tags. New links include an empty design; legacy redirects
401
+ * may return null.
402
+ */
403
+ export interface ShortLinkDesign {
404
+ qr?: ShortLinkDesign.Qr | null;
405
+
406
+ utm?: ShortLinkDesign.Utm | null;
407
+ }
408
+
409
+ export namespace ShortLinkDesign {
410
+ export interface Qr {
411
+ /**
412
+ * Background color.
413
+ */
414
+ bgColor?: string | null;
415
+
416
+ /**
417
+ * Finder (corner) dot shape: `square` or `dot`.
418
+ */
419
+ cornerDotStyle?: string | null;
420
+
421
+ /**
422
+ * Finder (corner) square shape: `square`, `dot`, or `extra-rounded`.
423
+ */
424
+ cornerSquareStyle?: string | null;
425
+
426
+ /**
427
+ * Module shape: `square`, `rounded`, `dots`, `classy`, `classy-rounded`, or
428
+ * `extra-rounded`.
429
+ */
430
+ dotStyle?: string | null;
431
+
432
+ /**
433
+ * Foreground (module) color.
434
+ */
435
+ fgColor?: string | null;
436
+
437
+ /**
438
+ * Download frame: `square`, `rounded`, or `circle`.
439
+ */
440
+ frameShape?: string | null;
441
+
442
+ /**
443
+ * A two-stop gradient fill for the QR modules.
444
+ */
445
+ gradient?: Qr.Gradient | null;
446
+
447
+ /**
448
+ * Base64 data URL of a centered logo overlay.
449
+ */
450
+ logo?: string | null;
451
+
452
+ /**
453
+ * Logo size as a fraction of the QR (0–0.4).
454
+ */
455
+ logoSizeRatio?: number | null;
456
+
457
+ /**
458
+ * The selected preset theme id, for re-highlighting it in a UI.
459
+ */
460
+ theme?: string | null;
461
+
462
+ /**
463
+ * When true, the background is exported transparent.
464
+ */
465
+ transparentBackground?: boolean | null;
466
+ }
467
+
468
+ export namespace Qr {
469
+ /**
470
+ * A two-stop gradient fill for the QR modules.
471
+ */
472
+ export interface Gradient {
473
+ /**
474
+ * Gradient end color.
475
+ */
476
+ endColor: string;
477
+
478
+ /**
479
+ * Gradient start color.
480
+ */
481
+ startColor: string;
482
+
483
+ /**
484
+ * Gradient type: `linear` or `radial`.
485
+ */
486
+ type: string;
487
+
488
+ /**
489
+ * Rotation in radians (linear gradients only).
490
+ */
491
+ rotation?: number | null;
492
+ }
493
+ }
494
+
495
+ export interface Utm {
496
+ /**
497
+ * The `utm_campaign` value appended to the tracked short-link URL.
498
+ */
499
+ campaign?: string | null;
500
+
501
+ /**
502
+ * The `utm_content` value.
503
+ */
504
+ content?: string | null;
505
+
506
+ /**
507
+ * The `utm_medium` value.
508
+ */
509
+ medium?: string | null;
510
+
511
+ /**
512
+ * The `utm_source` value.
513
+ */
514
+ source?: string | null;
515
+
516
+ /**
517
+ * The `utm_term` value.
518
+ */
519
+ term?: string | null;
520
+ }
521
+ }
522
+ }
523
+
268
524
  export interface ShortLinkRetrieveResponse {
269
525
  id: string;
270
526
 
@@ -317,7 +573,7 @@ export interface ShortLinkRetrieveResponse {
317
573
  * QR styling + campaign tags. New links include an empty design; legacy redirects
318
574
  * may return null.
319
575
  */
320
- shortLinkDesign?: unknown | null;
576
+ shortLinkDesign?: ShortLinkRetrieveResponse.ShortLinkDesign | null;
321
577
 
322
578
  /**
323
579
  * The public short-link URL that the QR encodes and callers share. New links use
@@ -327,6 +583,132 @@ export interface ShortLinkRetrieveResponse {
327
583
  shortUrl?: string | null;
328
584
  }
329
585
 
586
+ export namespace ShortLinkRetrieveResponse {
587
+ /**
588
+ * QR styling + campaign tags. New links include an empty design; legacy redirects
589
+ * may return null.
590
+ */
591
+ export interface ShortLinkDesign {
592
+ qr?: ShortLinkDesign.Qr | null;
593
+
594
+ utm?: ShortLinkDesign.Utm | null;
595
+ }
596
+
597
+ export namespace ShortLinkDesign {
598
+ export interface Qr {
599
+ /**
600
+ * Background color.
601
+ */
602
+ bgColor?: string | null;
603
+
604
+ /**
605
+ * Finder (corner) dot shape: `square` or `dot`.
606
+ */
607
+ cornerDotStyle?: string | null;
608
+
609
+ /**
610
+ * Finder (corner) square shape: `square`, `dot`, or `extra-rounded`.
611
+ */
612
+ cornerSquareStyle?: string | null;
613
+
614
+ /**
615
+ * Module shape: `square`, `rounded`, `dots`, `classy`, `classy-rounded`, or
616
+ * `extra-rounded`.
617
+ */
618
+ dotStyle?: string | null;
619
+
620
+ /**
621
+ * Foreground (module) color.
622
+ */
623
+ fgColor?: string | null;
624
+
625
+ /**
626
+ * Download frame: `square`, `rounded`, or `circle`.
627
+ */
628
+ frameShape?: string | null;
629
+
630
+ /**
631
+ * A two-stop gradient fill for the QR modules.
632
+ */
633
+ gradient?: Qr.Gradient | null;
634
+
635
+ /**
636
+ * Base64 data URL of a centered logo overlay.
637
+ */
638
+ logo?: string | null;
639
+
640
+ /**
641
+ * Logo size as a fraction of the QR (0–0.4).
642
+ */
643
+ logoSizeRatio?: number | null;
644
+
645
+ /**
646
+ * The selected preset theme id, for re-highlighting it in a UI.
647
+ */
648
+ theme?: string | null;
649
+
650
+ /**
651
+ * When true, the background is exported transparent.
652
+ */
653
+ transparentBackground?: boolean | null;
654
+ }
655
+
656
+ export namespace Qr {
657
+ /**
658
+ * A two-stop gradient fill for the QR modules.
659
+ */
660
+ export interface Gradient {
661
+ /**
662
+ * Gradient end color.
663
+ */
664
+ endColor: string;
665
+
666
+ /**
667
+ * Gradient start color.
668
+ */
669
+ startColor: string;
670
+
671
+ /**
672
+ * Gradient type: `linear` or `radial`.
673
+ */
674
+ type: string;
675
+
676
+ /**
677
+ * Rotation in radians (linear gradients only).
678
+ */
679
+ rotation?: number | null;
680
+ }
681
+ }
682
+
683
+ export interface Utm {
684
+ /**
685
+ * The `utm_campaign` value appended to the tracked short-link URL.
686
+ */
687
+ campaign?: string | null;
688
+
689
+ /**
690
+ * The `utm_content` value.
691
+ */
692
+ content?: string | null;
693
+
694
+ /**
695
+ * The `utm_medium` value.
696
+ */
697
+ medium?: string | null;
698
+
699
+ /**
700
+ * The `utm_source` value.
701
+ */
702
+ source?: string | null;
703
+
704
+ /**
705
+ * The `utm_term` value.
706
+ */
707
+ term?: string | null;
708
+ }
709
+ }
710
+ }
711
+
330
712
  export interface ShortLinkUpdateResponse {
331
713
  id: string;
332
714
 
@@ -379,7 +761,7 @@ export interface ShortLinkUpdateResponse {
379
761
  * QR styling + campaign tags. New links include an empty design; legacy redirects
380
762
  * may return null.
381
763
  */
382
- shortLinkDesign?: unknown | null;
764
+ shortLinkDesign?: ShortLinkUpdateResponse.ShortLinkDesign | null;
383
765
 
384
766
  /**
385
767
  * The public short-link URL that the QR encodes and callers share. New links use
@@ -389,6 +771,132 @@ export interface ShortLinkUpdateResponse {
389
771
  shortUrl?: string | null;
390
772
  }
391
773
 
774
+ export namespace ShortLinkUpdateResponse {
775
+ /**
776
+ * QR styling + campaign tags. New links include an empty design; legacy redirects
777
+ * may return null.
778
+ */
779
+ export interface ShortLinkDesign {
780
+ qr?: ShortLinkDesign.Qr | null;
781
+
782
+ utm?: ShortLinkDesign.Utm | null;
783
+ }
784
+
785
+ export namespace ShortLinkDesign {
786
+ export interface Qr {
787
+ /**
788
+ * Background color.
789
+ */
790
+ bgColor?: string | null;
791
+
792
+ /**
793
+ * Finder (corner) dot shape: `square` or `dot`.
794
+ */
795
+ cornerDotStyle?: string | null;
796
+
797
+ /**
798
+ * Finder (corner) square shape: `square`, `dot`, or `extra-rounded`.
799
+ */
800
+ cornerSquareStyle?: string | null;
801
+
802
+ /**
803
+ * Module shape: `square`, `rounded`, `dots`, `classy`, `classy-rounded`, or
804
+ * `extra-rounded`.
805
+ */
806
+ dotStyle?: string | null;
807
+
808
+ /**
809
+ * Foreground (module) color.
810
+ */
811
+ fgColor?: string | null;
812
+
813
+ /**
814
+ * Download frame: `square`, `rounded`, or `circle`.
815
+ */
816
+ frameShape?: string | null;
817
+
818
+ /**
819
+ * A two-stop gradient fill for the QR modules.
820
+ */
821
+ gradient?: Qr.Gradient | null;
822
+
823
+ /**
824
+ * Base64 data URL of a centered logo overlay.
825
+ */
826
+ logo?: string | null;
827
+
828
+ /**
829
+ * Logo size as a fraction of the QR (0–0.4).
830
+ */
831
+ logoSizeRatio?: number | null;
832
+
833
+ /**
834
+ * The selected preset theme id, for re-highlighting it in a UI.
835
+ */
836
+ theme?: string | null;
837
+
838
+ /**
839
+ * When true, the background is exported transparent.
840
+ */
841
+ transparentBackground?: boolean | null;
842
+ }
843
+
844
+ export namespace Qr {
845
+ /**
846
+ * A two-stop gradient fill for the QR modules.
847
+ */
848
+ export interface Gradient {
849
+ /**
850
+ * Gradient end color.
851
+ */
852
+ endColor: string;
853
+
854
+ /**
855
+ * Gradient start color.
856
+ */
857
+ startColor: string;
858
+
859
+ /**
860
+ * Gradient type: `linear` or `radial`.
861
+ */
862
+ type: string;
863
+
864
+ /**
865
+ * Rotation in radians (linear gradients only).
866
+ */
867
+ rotation?: number | null;
868
+ }
869
+ }
870
+
871
+ export interface Utm {
872
+ /**
873
+ * The `utm_campaign` value appended to the tracked short-link URL.
874
+ */
875
+ campaign?: string | null;
876
+
877
+ /**
878
+ * The `utm_content` value.
879
+ */
880
+ content?: string | null;
881
+
882
+ /**
883
+ * The `utm_medium` value.
884
+ */
885
+ medium?: string | null;
886
+
887
+ /**
888
+ * The `utm_source` value.
889
+ */
890
+ source?: string | null;
891
+
892
+ /**
893
+ * The `utm_term` value.
894
+ */
895
+ term?: string | null;
896
+ }
897
+ }
898
+ }
899
+
392
900
  export interface ShortLinkDeleteResponse {
393
901
  deleted: true;
394
902
  }
@@ -445,7 +953,7 @@ export interface ShortLinkCloneResponse {
445
953
  * QR styling + campaign tags. New links include an empty design; legacy redirects
446
954
  * may return null.
447
955
  */
448
- shortLinkDesign?: unknown | null;
956
+ shortLinkDesign?: ShortLinkCloneResponse.ShortLinkDesign | null;
449
957
 
450
958
  /**
451
959
  * The public short-link URL that the QR encodes and callers share. New links use
@@ -455,6 +963,132 @@ export interface ShortLinkCloneResponse {
455
963
  shortUrl?: string | null;
456
964
  }
457
965
 
966
+ export namespace ShortLinkCloneResponse {
967
+ /**
968
+ * QR styling + campaign tags. New links include an empty design; legacy redirects
969
+ * may return null.
970
+ */
971
+ export interface ShortLinkDesign {
972
+ qr?: ShortLinkDesign.Qr | null;
973
+
974
+ utm?: ShortLinkDesign.Utm | null;
975
+ }
976
+
977
+ export namespace ShortLinkDesign {
978
+ export interface Qr {
979
+ /**
980
+ * Background color.
981
+ */
982
+ bgColor?: string | null;
983
+
984
+ /**
985
+ * Finder (corner) dot shape: `square` or `dot`.
986
+ */
987
+ cornerDotStyle?: string | null;
988
+
989
+ /**
990
+ * Finder (corner) square shape: `square`, `dot`, or `extra-rounded`.
991
+ */
992
+ cornerSquareStyle?: string | null;
993
+
994
+ /**
995
+ * Module shape: `square`, `rounded`, `dots`, `classy`, `classy-rounded`, or
996
+ * `extra-rounded`.
997
+ */
998
+ dotStyle?: string | null;
999
+
1000
+ /**
1001
+ * Foreground (module) color.
1002
+ */
1003
+ fgColor?: string | null;
1004
+
1005
+ /**
1006
+ * Download frame: `square`, `rounded`, or `circle`.
1007
+ */
1008
+ frameShape?: string | null;
1009
+
1010
+ /**
1011
+ * A two-stop gradient fill for the QR modules.
1012
+ */
1013
+ gradient?: Qr.Gradient | null;
1014
+
1015
+ /**
1016
+ * Base64 data URL of a centered logo overlay.
1017
+ */
1018
+ logo?: string | null;
1019
+
1020
+ /**
1021
+ * Logo size as a fraction of the QR (0–0.4).
1022
+ */
1023
+ logoSizeRatio?: number | null;
1024
+
1025
+ /**
1026
+ * The selected preset theme id, for re-highlighting it in a UI.
1027
+ */
1028
+ theme?: string | null;
1029
+
1030
+ /**
1031
+ * When true, the background is exported transparent.
1032
+ */
1033
+ transparentBackground?: boolean | null;
1034
+ }
1035
+
1036
+ export namespace Qr {
1037
+ /**
1038
+ * A two-stop gradient fill for the QR modules.
1039
+ */
1040
+ export interface Gradient {
1041
+ /**
1042
+ * Gradient end color.
1043
+ */
1044
+ endColor: string;
1045
+
1046
+ /**
1047
+ * Gradient start color.
1048
+ */
1049
+ startColor: string;
1050
+
1051
+ /**
1052
+ * Gradient type: `linear` or `radial`.
1053
+ */
1054
+ type: string;
1055
+
1056
+ /**
1057
+ * Rotation in radians (linear gradients only).
1058
+ */
1059
+ rotation?: number | null;
1060
+ }
1061
+ }
1062
+
1063
+ export interface Utm {
1064
+ /**
1065
+ * The `utm_campaign` value appended to the tracked short-link URL.
1066
+ */
1067
+ campaign?: string | null;
1068
+
1069
+ /**
1070
+ * The `utm_content` value.
1071
+ */
1072
+ content?: string | null;
1073
+
1074
+ /**
1075
+ * The `utm_medium` value.
1076
+ */
1077
+ medium?: string | null;
1078
+
1079
+ /**
1080
+ * The `utm_source` value.
1081
+ */
1082
+ source?: string | null;
1083
+
1084
+ /**
1085
+ * The `utm_term` value.
1086
+ */
1087
+ term?: string | null;
1088
+ }
1089
+ }
1090
+ }
1091
+
458
1092
  export interface ShortLinkResultsResponse {
459
1093
  devices: Array<ShortLinkResultsResponse.Device>;
460
1094
 
@@ -540,7 +1174,7 @@ export interface ShortLinkCreateParams {
540
1174
  /**
541
1175
  * QR code visual styling.
542
1176
  */
543
- qr?: unknown | null;
1177
+ qr?: ShortLinkCreateParams.Qr | null;
544
1178
 
545
1179
  /**
546
1180
  * Destination URL the short link redirects to. Must be a valid URL.
@@ -550,7 +1184,126 @@ export interface ShortLinkCreateParams {
550
1184
  /**
551
1185
  * Campaign / UTM tags appended to the tracked short-link URL.
552
1186
  */
553
- utm?: unknown | null;
1187
+ utm?: ShortLinkCreateParams.Utm | null;
1188
+ }
1189
+
1190
+ export namespace ShortLinkCreateParams {
1191
+ /**
1192
+ * QR code visual styling.
1193
+ */
1194
+ export interface Qr {
1195
+ /**
1196
+ * Background color.
1197
+ */
1198
+ bgColor?: string | null;
1199
+
1200
+ /**
1201
+ * Finder (corner) dot shape.
1202
+ */
1203
+ cornerDotStyle?: 'square' | 'dot' | null;
1204
+
1205
+ /**
1206
+ * Finder (corner) square shape.
1207
+ */
1208
+ cornerSquareStyle?: 'square' | 'dot' | 'extra-rounded' | null;
1209
+
1210
+ /**
1211
+ * Module shape.
1212
+ */
1213
+ dotStyle?: 'square' | 'rounded' | 'dots' | 'classy' | 'classy-rounded' | 'extra-rounded' | null;
1214
+
1215
+ /**
1216
+ * Foreground (module) color.
1217
+ */
1218
+ fgColor?: string | null;
1219
+
1220
+ /**
1221
+ * Download frame.
1222
+ */
1223
+ frameShape?: 'square' | 'rounded' | 'circle' | null;
1224
+
1225
+ /**
1226
+ * A two-stop gradient fill for the QR modules.
1227
+ */
1228
+ gradient?: Qr.Gradient | null;
1229
+
1230
+ /**
1231
+ * Base64 data URL of a centered logo overlay.
1232
+ */
1233
+ logo?: string | null;
1234
+
1235
+ /**
1236
+ * Logo size as a fraction of the QR.
1237
+ */
1238
+ logoSizeRatio?: number | null;
1239
+
1240
+ /**
1241
+ * The selected preset theme id, for re-highlighting it in a UI.
1242
+ */
1243
+ theme?: string | null;
1244
+
1245
+ /**
1246
+ * When true, the background is exported transparent.
1247
+ */
1248
+ transparentBackground?: boolean | null;
1249
+ }
1250
+
1251
+ export namespace Qr {
1252
+ /**
1253
+ * A two-stop gradient fill for the QR modules.
1254
+ */
1255
+ export interface Gradient {
1256
+ /**
1257
+ * Gradient end color.
1258
+ */
1259
+ endColor: string;
1260
+
1261
+ /**
1262
+ * Gradient start color.
1263
+ */
1264
+ startColor: string;
1265
+
1266
+ /**
1267
+ * Gradient type.
1268
+ */
1269
+ type: 'linear' | 'radial';
1270
+
1271
+ /**
1272
+ * Rotation in radians (linear gradients only).
1273
+ */
1274
+ rotation?: number | null;
1275
+ }
1276
+ }
1277
+
1278
+ /**
1279
+ * Campaign / UTM tags appended to the tracked short-link URL.
1280
+ */
1281
+ export interface Utm {
1282
+ /**
1283
+ * The `utm_campaign` value appended to the tracked short-link URL.
1284
+ */
1285
+ campaign?: string | null;
1286
+
1287
+ /**
1288
+ * The `utm_content` value.
1289
+ */
1290
+ content?: string | null;
1291
+
1292
+ /**
1293
+ * The `utm_medium` value.
1294
+ */
1295
+ medium?: string | null;
1296
+
1297
+ /**
1298
+ * The `utm_source` value.
1299
+ */
1300
+ source?: string | null;
1301
+
1302
+ /**
1303
+ * The `utm_term` value.
1304
+ */
1305
+ term?: string | null;
1306
+ }
554
1307
  }
555
1308
 
556
1309
  export interface ShortLinkUpdateParams {
@@ -564,7 +1317,7 @@ export interface ShortLinkUpdateParams {
564
1317
 
565
1318
  name?: string | null;
566
1319
 
567
- qr?: unknown | null;
1320
+ qr?: ShortLinkUpdateParams.Qr | null;
568
1321
 
569
1322
  /**
570
1323
  * Destination URL the short link redirects to. Must be a valid URL. Send `null` to
@@ -576,9 +1329,122 @@ export interface ShortLinkUpdateParams {
576
1329
  * Whether the short link resolves at the edge. Send `Enabled` or `Disabled`;
577
1330
  * `null` is rejected since storage cannot represent it.
578
1331
  */
579
- status?: string | null;
1332
+ status?: 'Disabled' | 'Enabled' | null;
1333
+
1334
+ utm?: ShortLinkUpdateParams.Utm | null;
1335
+ }
1336
+
1337
+ export namespace ShortLinkUpdateParams {
1338
+ export interface Qr {
1339
+ /**
1340
+ * Background color.
1341
+ */
1342
+ bgColor?: string | null;
1343
+
1344
+ /**
1345
+ * Finder (corner) dot shape.
1346
+ */
1347
+ cornerDotStyle?: 'square' | 'dot' | null;
1348
+
1349
+ /**
1350
+ * Finder (corner) square shape.
1351
+ */
1352
+ cornerSquareStyle?: 'square' | 'dot' | 'extra-rounded' | null;
1353
+
1354
+ /**
1355
+ * Module shape.
1356
+ */
1357
+ dotStyle?: 'square' | 'rounded' | 'dots' | 'classy' | 'classy-rounded' | 'extra-rounded' | null;
1358
+
1359
+ /**
1360
+ * Foreground (module) color.
1361
+ */
1362
+ fgColor?: string | null;
1363
+
1364
+ /**
1365
+ * Download frame.
1366
+ */
1367
+ frameShape?: 'square' | 'rounded' | 'circle' | null;
1368
+
1369
+ /**
1370
+ * A two-stop gradient fill for the QR modules.
1371
+ */
1372
+ gradient?: Qr.Gradient | null;
1373
+
1374
+ /**
1375
+ * Base64 data URL of a centered logo overlay.
1376
+ */
1377
+ logo?: string | null;
1378
+
1379
+ /**
1380
+ * Logo size as a fraction of the QR.
1381
+ */
1382
+ logoSizeRatio?: number | null;
1383
+
1384
+ /**
1385
+ * The selected preset theme id, for re-highlighting it in a UI.
1386
+ */
1387
+ theme?: string | null;
1388
+
1389
+ /**
1390
+ * When true, the background is exported transparent.
1391
+ */
1392
+ transparentBackground?: boolean | null;
1393
+ }
1394
+
1395
+ export namespace Qr {
1396
+ /**
1397
+ * A two-stop gradient fill for the QR modules.
1398
+ */
1399
+ export interface Gradient {
1400
+ /**
1401
+ * Gradient end color.
1402
+ */
1403
+ endColor: string;
1404
+
1405
+ /**
1406
+ * Gradient start color.
1407
+ */
1408
+ startColor: string;
1409
+
1410
+ /**
1411
+ * Gradient type.
1412
+ */
1413
+ type: 'linear' | 'radial';
1414
+
1415
+ /**
1416
+ * Rotation in radians (linear gradients only).
1417
+ */
1418
+ rotation?: number | null;
1419
+ }
1420
+ }
580
1421
 
581
- utm?: unknown | null;
1422
+ export interface Utm {
1423
+ /**
1424
+ * The `utm_campaign` value appended to the tracked short-link URL.
1425
+ */
1426
+ campaign?: string | null;
1427
+
1428
+ /**
1429
+ * The `utm_content` value.
1430
+ */
1431
+ content?: string | null;
1432
+
1433
+ /**
1434
+ * The `utm_medium` value.
1435
+ */
1436
+ medium?: string | null;
1437
+
1438
+ /**
1439
+ * The `utm_source` value.
1440
+ */
1441
+ source?: string | null;
1442
+
1443
+ /**
1444
+ * The `utm_term` value.
1445
+ */
1446
+ term?: string | null;
1447
+ }
582
1448
  }
583
1449
 
584
1450
  export interface ShortLinkResultsParams {