@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
@@ -9,7 +9,7 @@ export declare class ShortLinks extends APIResource {
9
9
  * excluded. Supports cursor pagination and optional `status`, `nameContains`, and
10
10
  * `search` filters. Search matches names, destinations, and codes. Each entity
11
11
  * bundles the destination URL, immutable code, path format, and QR/campaign
12
- * design. Requires scope: source:list
12
+ * design. Requires API-key scope or current OAuth user permission: source:list
13
13
  *
14
14
  * @example
15
15
  * ```ts
@@ -26,7 +26,8 @@ export declare class ShortLinks extends APIResource {
26
26
  * compact code; `shortUrl` resolves as `/r/{pixel}` without tracking query
27
27
  * parameters. All body fields are optional: send `{}` to create an unconfigured
28
28
  * link and fill it in later with PATCH. A newly created short link only resolves
29
- * at the edge once a version is published. Requires scope: source:create
29
+ * at the edge once a version is published. Requires API-key scope or current OAuth
30
+ * user permission: source:create
30
31
  *
31
32
  * @example
32
33
  * ```ts
@@ -37,7 +38,8 @@ export declare class ShortLinks extends APIResource {
37
38
  /**
38
39
  * Fetch a single short link by id, including its destination, immutable code,
39
40
  * composed `shortUrl`, and QR/campaign design. Returns 404 when no short link
40
- * matches the id or it belongs to a different account. Requires scope: source:view
41
+ * matches the id or it belongs to a different account. Requires API-key scope or
42
+ * current OAuth user permission: source:view
41
43
  *
42
44
  * @example
43
45
  * ```ts
@@ -49,7 +51,8 @@ export declare class ShortLinks extends APIResource {
49
51
  * Partially update a short link. Only the fields you send are changed; omitted
50
52
  * fields are unchanged. Send explicit `null` to clear `redirectUrl`. The `utm` and
51
53
  * `qr` objects are replaced wholesale when sent. Returns the full short link
52
- * entity after the update. Requires scope: source:update
54
+ * entity after the update. Requires API-key scope or current OAuth user
55
+ * permission: source:update
53
56
  *
54
57
  * @example
55
58
  * ```ts
@@ -59,7 +62,8 @@ export declare class ShortLinks extends APIResource {
59
62
  update(id: string, body: ShortLinkUpdateParams, options?: RequestOptions): APIPromise<ShortLinkUpdateResponse>;
60
63
  /**
61
64
  * Delete a short link and its QR/campaign design. After deletion the short URL
62
- * stops resolving on the next publish. Requires scope: source:delete
65
+ * stops resolving on the next publish. Requires API-key scope or current OAuth
66
+ * user permission: source:delete
63
67
  *
64
68
  * @example
65
69
  * ```ts
@@ -70,7 +74,7 @@ export declare class ShortLinks extends APIResource {
70
74
  /**
71
75
  * Duplicate a short link with its campaign tags and QR styling. The copy starts
72
76
  * disabled with a new code. Requires permission to view the original and create a
73
- * source. Requires scope: source:create
77
+ * source. Requires API-key scope or current OAuth user permission: source:create
74
78
  *
75
79
  * @example
76
80
  * ```ts
@@ -85,7 +89,7 @@ export declare class ShortLinks extends APIResource {
85
89
  * (`YYYY-MM-DD`); set `granularity=HOURLY` for hourly buckets and
86
90
  * `excludeBots=false` to include bot traffic. Requires the `shortlink:reporting`
87
91
  * scope, which is gated separately because analytics data is PHI-bearing. Requires
88
- * scope: shortlink:reporting
92
+ * API-key scope or current OAuth user permission: shortlink:reporting
89
93
  *
90
94
  * @example
91
95
  * ```ts
@@ -139,7 +143,7 @@ export interface ShortLinkListResponse {
139
143
  * QR styling + campaign tags. New links include an empty design; legacy redirects
140
144
  * may return null.
141
145
  */
142
- shortLinkDesign?: unknown | null;
146
+ shortLinkDesign?: ShortLinkListResponse.ShortLinkDesign | null;
143
147
  /**
144
148
  * The public short-link URL that the QR encodes and callers share. New links use
145
149
  * `/r/{pixel}`; tracked event and campaign defaults are stored server-side. Also
@@ -147,6 +151,110 @@ export interface ShortLinkListResponse {
147
151
  */
148
152
  shortUrl?: string | null;
149
153
  }
154
+ export declare namespace ShortLinkListResponse {
155
+ /**
156
+ * QR styling + campaign tags. New links include an empty design; legacy redirects
157
+ * may return null.
158
+ */
159
+ interface ShortLinkDesign {
160
+ qr?: ShortLinkDesign.Qr | null;
161
+ utm?: ShortLinkDesign.Utm | null;
162
+ }
163
+ namespace ShortLinkDesign {
164
+ interface Qr {
165
+ /**
166
+ * Background color.
167
+ */
168
+ bgColor?: string | null;
169
+ /**
170
+ * Finder (corner) dot shape: `square` or `dot`.
171
+ */
172
+ cornerDotStyle?: string | null;
173
+ /**
174
+ * Finder (corner) square shape: `square`, `dot`, or `extra-rounded`.
175
+ */
176
+ cornerSquareStyle?: string | null;
177
+ /**
178
+ * Module shape: `square`, `rounded`, `dots`, `classy`, `classy-rounded`, or
179
+ * `extra-rounded`.
180
+ */
181
+ dotStyle?: string | null;
182
+ /**
183
+ * Foreground (module) color.
184
+ */
185
+ fgColor?: string | null;
186
+ /**
187
+ * Download frame: `square`, `rounded`, or `circle`.
188
+ */
189
+ frameShape?: string | null;
190
+ /**
191
+ * A two-stop gradient fill for the QR modules.
192
+ */
193
+ gradient?: Qr.Gradient | null;
194
+ /**
195
+ * Base64 data URL of a centered logo overlay.
196
+ */
197
+ logo?: string | null;
198
+ /**
199
+ * Logo size as a fraction of the QR (0–0.4).
200
+ */
201
+ logoSizeRatio?: number | null;
202
+ /**
203
+ * The selected preset theme id, for re-highlighting it in a UI.
204
+ */
205
+ theme?: string | null;
206
+ /**
207
+ * When true, the background is exported transparent.
208
+ */
209
+ transparentBackground?: boolean | null;
210
+ }
211
+ namespace Qr {
212
+ /**
213
+ * A two-stop gradient fill for the QR modules.
214
+ */
215
+ interface Gradient {
216
+ /**
217
+ * Gradient end color.
218
+ */
219
+ endColor: string;
220
+ /**
221
+ * Gradient start color.
222
+ */
223
+ startColor: string;
224
+ /**
225
+ * Gradient type: `linear` or `radial`.
226
+ */
227
+ type: string;
228
+ /**
229
+ * Rotation in radians (linear gradients only).
230
+ */
231
+ rotation?: number | null;
232
+ }
233
+ }
234
+ interface Utm {
235
+ /**
236
+ * The `utm_campaign` value appended to the tracked short-link URL.
237
+ */
238
+ campaign?: string | null;
239
+ /**
240
+ * The `utm_content` value.
241
+ */
242
+ content?: string | null;
243
+ /**
244
+ * The `utm_medium` value.
245
+ */
246
+ medium?: string | null;
247
+ /**
248
+ * The `utm_source` value.
249
+ */
250
+ source?: string | null;
251
+ /**
252
+ * The `utm_term` value.
253
+ */
254
+ term?: string | null;
255
+ }
256
+ }
257
+ }
150
258
  export interface ShortLinkCreateResponse {
151
259
  id: string;
152
260
  /**
@@ -188,7 +296,7 @@ export interface ShortLinkCreateResponse {
188
296
  * QR styling + campaign tags. New links include an empty design; legacy redirects
189
297
  * may return null.
190
298
  */
191
- shortLinkDesign?: unknown | null;
299
+ shortLinkDesign?: ShortLinkCreateResponse.ShortLinkDesign | null;
192
300
  /**
193
301
  * The public short-link URL that the QR encodes and callers share. New links use
194
302
  * `/r/{pixel}`; tracked event and campaign defaults are stored server-side. Also
@@ -196,6 +304,110 @@ export interface ShortLinkCreateResponse {
196
304
  */
197
305
  shortUrl?: string | null;
198
306
  }
307
+ export declare namespace ShortLinkCreateResponse {
308
+ /**
309
+ * QR styling + campaign tags. New links include an empty design; legacy redirects
310
+ * may return null.
311
+ */
312
+ interface ShortLinkDesign {
313
+ qr?: ShortLinkDesign.Qr | null;
314
+ utm?: ShortLinkDesign.Utm | null;
315
+ }
316
+ namespace ShortLinkDesign {
317
+ interface Qr {
318
+ /**
319
+ * Background color.
320
+ */
321
+ bgColor?: string | null;
322
+ /**
323
+ * Finder (corner) dot shape: `square` or `dot`.
324
+ */
325
+ cornerDotStyle?: string | null;
326
+ /**
327
+ * Finder (corner) square shape: `square`, `dot`, or `extra-rounded`.
328
+ */
329
+ cornerSquareStyle?: string | null;
330
+ /**
331
+ * Module shape: `square`, `rounded`, `dots`, `classy`, `classy-rounded`, or
332
+ * `extra-rounded`.
333
+ */
334
+ dotStyle?: string | null;
335
+ /**
336
+ * Foreground (module) color.
337
+ */
338
+ fgColor?: string | null;
339
+ /**
340
+ * Download frame: `square`, `rounded`, or `circle`.
341
+ */
342
+ frameShape?: string | null;
343
+ /**
344
+ * A two-stop gradient fill for the QR modules.
345
+ */
346
+ gradient?: Qr.Gradient | null;
347
+ /**
348
+ * Base64 data URL of a centered logo overlay.
349
+ */
350
+ logo?: string | null;
351
+ /**
352
+ * Logo size as a fraction of the QR (0–0.4).
353
+ */
354
+ logoSizeRatio?: number | null;
355
+ /**
356
+ * The selected preset theme id, for re-highlighting it in a UI.
357
+ */
358
+ theme?: string | null;
359
+ /**
360
+ * When true, the background is exported transparent.
361
+ */
362
+ transparentBackground?: boolean | null;
363
+ }
364
+ namespace Qr {
365
+ /**
366
+ * A two-stop gradient fill for the QR modules.
367
+ */
368
+ interface Gradient {
369
+ /**
370
+ * Gradient end color.
371
+ */
372
+ endColor: string;
373
+ /**
374
+ * Gradient start color.
375
+ */
376
+ startColor: string;
377
+ /**
378
+ * Gradient type: `linear` or `radial`.
379
+ */
380
+ type: string;
381
+ /**
382
+ * Rotation in radians (linear gradients only).
383
+ */
384
+ rotation?: number | null;
385
+ }
386
+ }
387
+ interface Utm {
388
+ /**
389
+ * The `utm_campaign` value appended to the tracked short-link URL.
390
+ */
391
+ campaign?: string | null;
392
+ /**
393
+ * The `utm_content` value.
394
+ */
395
+ content?: string | null;
396
+ /**
397
+ * The `utm_medium` value.
398
+ */
399
+ medium?: string | null;
400
+ /**
401
+ * The `utm_source` value.
402
+ */
403
+ source?: string | null;
404
+ /**
405
+ * The `utm_term` value.
406
+ */
407
+ term?: string | null;
408
+ }
409
+ }
410
+ }
199
411
  export interface ShortLinkRetrieveResponse {
200
412
  id: string;
201
413
  /**
@@ -237,7 +449,7 @@ export interface ShortLinkRetrieveResponse {
237
449
  * QR styling + campaign tags. New links include an empty design; legacy redirects
238
450
  * may return null.
239
451
  */
240
- shortLinkDesign?: unknown | null;
452
+ shortLinkDesign?: ShortLinkRetrieveResponse.ShortLinkDesign | null;
241
453
  /**
242
454
  * The public short-link URL that the QR encodes and callers share. New links use
243
455
  * `/r/{pixel}`; tracked event and campaign defaults are stored server-side. Also
@@ -245,6 +457,110 @@ export interface ShortLinkRetrieveResponse {
245
457
  */
246
458
  shortUrl?: string | null;
247
459
  }
460
+ export declare namespace ShortLinkRetrieveResponse {
461
+ /**
462
+ * QR styling + campaign tags. New links include an empty design; legacy redirects
463
+ * may return null.
464
+ */
465
+ interface ShortLinkDesign {
466
+ qr?: ShortLinkDesign.Qr | null;
467
+ utm?: ShortLinkDesign.Utm | null;
468
+ }
469
+ namespace ShortLinkDesign {
470
+ interface Qr {
471
+ /**
472
+ * Background color.
473
+ */
474
+ bgColor?: string | null;
475
+ /**
476
+ * Finder (corner) dot shape: `square` or `dot`.
477
+ */
478
+ cornerDotStyle?: string | null;
479
+ /**
480
+ * Finder (corner) square shape: `square`, `dot`, or `extra-rounded`.
481
+ */
482
+ cornerSquareStyle?: string | null;
483
+ /**
484
+ * Module shape: `square`, `rounded`, `dots`, `classy`, `classy-rounded`, or
485
+ * `extra-rounded`.
486
+ */
487
+ dotStyle?: string | null;
488
+ /**
489
+ * Foreground (module) color.
490
+ */
491
+ fgColor?: string | null;
492
+ /**
493
+ * Download frame: `square`, `rounded`, or `circle`.
494
+ */
495
+ frameShape?: string | null;
496
+ /**
497
+ * A two-stop gradient fill for the QR modules.
498
+ */
499
+ gradient?: Qr.Gradient | null;
500
+ /**
501
+ * Base64 data URL of a centered logo overlay.
502
+ */
503
+ logo?: string | null;
504
+ /**
505
+ * Logo size as a fraction of the QR (0–0.4).
506
+ */
507
+ logoSizeRatio?: number | null;
508
+ /**
509
+ * The selected preset theme id, for re-highlighting it in a UI.
510
+ */
511
+ theme?: string | null;
512
+ /**
513
+ * When true, the background is exported transparent.
514
+ */
515
+ transparentBackground?: boolean | null;
516
+ }
517
+ namespace Qr {
518
+ /**
519
+ * A two-stop gradient fill for the QR modules.
520
+ */
521
+ interface Gradient {
522
+ /**
523
+ * Gradient end color.
524
+ */
525
+ endColor: string;
526
+ /**
527
+ * Gradient start color.
528
+ */
529
+ startColor: string;
530
+ /**
531
+ * Gradient type: `linear` or `radial`.
532
+ */
533
+ type: string;
534
+ /**
535
+ * Rotation in radians (linear gradients only).
536
+ */
537
+ rotation?: number | null;
538
+ }
539
+ }
540
+ interface Utm {
541
+ /**
542
+ * The `utm_campaign` value appended to the tracked short-link URL.
543
+ */
544
+ campaign?: string | null;
545
+ /**
546
+ * The `utm_content` value.
547
+ */
548
+ content?: string | null;
549
+ /**
550
+ * The `utm_medium` value.
551
+ */
552
+ medium?: string | null;
553
+ /**
554
+ * The `utm_source` value.
555
+ */
556
+ source?: string | null;
557
+ /**
558
+ * The `utm_term` value.
559
+ */
560
+ term?: string | null;
561
+ }
562
+ }
563
+ }
248
564
  export interface ShortLinkUpdateResponse {
249
565
  id: string;
250
566
  /**
@@ -286,7 +602,7 @@ export interface ShortLinkUpdateResponse {
286
602
  * QR styling + campaign tags. New links include an empty design; legacy redirects
287
603
  * may return null.
288
604
  */
289
- shortLinkDesign?: unknown | null;
605
+ shortLinkDesign?: ShortLinkUpdateResponse.ShortLinkDesign | null;
290
606
  /**
291
607
  * The public short-link URL that the QR encodes and callers share. New links use
292
608
  * `/r/{pixel}`; tracked event and campaign defaults are stored server-side. Also
@@ -294,6 +610,110 @@ export interface ShortLinkUpdateResponse {
294
610
  */
295
611
  shortUrl?: string | null;
296
612
  }
613
+ export declare namespace ShortLinkUpdateResponse {
614
+ /**
615
+ * QR styling + campaign tags. New links include an empty design; legacy redirects
616
+ * may return null.
617
+ */
618
+ interface ShortLinkDesign {
619
+ qr?: ShortLinkDesign.Qr | null;
620
+ utm?: ShortLinkDesign.Utm | null;
621
+ }
622
+ namespace ShortLinkDesign {
623
+ interface Qr {
624
+ /**
625
+ * Background color.
626
+ */
627
+ bgColor?: string | null;
628
+ /**
629
+ * Finder (corner) dot shape: `square` or `dot`.
630
+ */
631
+ cornerDotStyle?: string | null;
632
+ /**
633
+ * Finder (corner) square shape: `square`, `dot`, or `extra-rounded`.
634
+ */
635
+ cornerSquareStyle?: string | null;
636
+ /**
637
+ * Module shape: `square`, `rounded`, `dots`, `classy`, `classy-rounded`, or
638
+ * `extra-rounded`.
639
+ */
640
+ dotStyle?: string | null;
641
+ /**
642
+ * Foreground (module) color.
643
+ */
644
+ fgColor?: string | null;
645
+ /**
646
+ * Download frame: `square`, `rounded`, or `circle`.
647
+ */
648
+ frameShape?: string | null;
649
+ /**
650
+ * A two-stop gradient fill for the QR modules.
651
+ */
652
+ gradient?: Qr.Gradient | null;
653
+ /**
654
+ * Base64 data URL of a centered logo overlay.
655
+ */
656
+ logo?: string | null;
657
+ /**
658
+ * Logo size as a fraction of the QR (0–0.4).
659
+ */
660
+ logoSizeRatio?: number | null;
661
+ /**
662
+ * The selected preset theme id, for re-highlighting it in a UI.
663
+ */
664
+ theme?: string | null;
665
+ /**
666
+ * When true, the background is exported transparent.
667
+ */
668
+ transparentBackground?: boolean | null;
669
+ }
670
+ namespace Qr {
671
+ /**
672
+ * A two-stop gradient fill for the QR modules.
673
+ */
674
+ interface Gradient {
675
+ /**
676
+ * Gradient end color.
677
+ */
678
+ endColor: string;
679
+ /**
680
+ * Gradient start color.
681
+ */
682
+ startColor: string;
683
+ /**
684
+ * Gradient type: `linear` or `radial`.
685
+ */
686
+ type: string;
687
+ /**
688
+ * Rotation in radians (linear gradients only).
689
+ */
690
+ rotation?: number | null;
691
+ }
692
+ }
693
+ interface Utm {
694
+ /**
695
+ * The `utm_campaign` value appended to the tracked short-link URL.
696
+ */
697
+ campaign?: string | null;
698
+ /**
699
+ * The `utm_content` value.
700
+ */
701
+ content?: string | null;
702
+ /**
703
+ * The `utm_medium` value.
704
+ */
705
+ medium?: string | null;
706
+ /**
707
+ * The `utm_source` value.
708
+ */
709
+ source?: string | null;
710
+ /**
711
+ * The `utm_term` value.
712
+ */
713
+ term?: string | null;
714
+ }
715
+ }
716
+ }
297
717
  export interface ShortLinkDeleteResponse {
298
718
  deleted: true;
299
719
  }
@@ -338,7 +758,7 @@ export interface ShortLinkCloneResponse {
338
758
  * QR styling + campaign tags. New links include an empty design; legacy redirects
339
759
  * may return null.
340
760
  */
341
- shortLinkDesign?: unknown | null;
761
+ shortLinkDesign?: ShortLinkCloneResponse.ShortLinkDesign | null;
342
762
  /**
343
763
  * The public short-link URL that the QR encodes and callers share. New links use
344
764
  * `/r/{pixel}`; tracked event and campaign defaults are stored server-side. Also
@@ -346,6 +766,110 @@ export interface ShortLinkCloneResponse {
346
766
  */
347
767
  shortUrl?: string | null;
348
768
  }
769
+ export declare namespace ShortLinkCloneResponse {
770
+ /**
771
+ * QR styling + campaign tags. New links include an empty design; legacy redirects
772
+ * may return null.
773
+ */
774
+ interface ShortLinkDesign {
775
+ qr?: ShortLinkDesign.Qr | null;
776
+ utm?: ShortLinkDesign.Utm | null;
777
+ }
778
+ namespace ShortLinkDesign {
779
+ interface Qr {
780
+ /**
781
+ * Background color.
782
+ */
783
+ bgColor?: string | null;
784
+ /**
785
+ * Finder (corner) dot shape: `square` or `dot`.
786
+ */
787
+ cornerDotStyle?: string | null;
788
+ /**
789
+ * Finder (corner) square shape: `square`, `dot`, or `extra-rounded`.
790
+ */
791
+ cornerSquareStyle?: string | null;
792
+ /**
793
+ * Module shape: `square`, `rounded`, `dots`, `classy`, `classy-rounded`, or
794
+ * `extra-rounded`.
795
+ */
796
+ dotStyle?: string | null;
797
+ /**
798
+ * Foreground (module) color.
799
+ */
800
+ fgColor?: string | null;
801
+ /**
802
+ * Download frame: `square`, `rounded`, or `circle`.
803
+ */
804
+ frameShape?: string | null;
805
+ /**
806
+ * A two-stop gradient fill for the QR modules.
807
+ */
808
+ gradient?: Qr.Gradient | null;
809
+ /**
810
+ * Base64 data URL of a centered logo overlay.
811
+ */
812
+ logo?: string | null;
813
+ /**
814
+ * Logo size as a fraction of the QR (0–0.4).
815
+ */
816
+ logoSizeRatio?: number | null;
817
+ /**
818
+ * The selected preset theme id, for re-highlighting it in a UI.
819
+ */
820
+ theme?: string | null;
821
+ /**
822
+ * When true, the background is exported transparent.
823
+ */
824
+ transparentBackground?: boolean | null;
825
+ }
826
+ namespace Qr {
827
+ /**
828
+ * A two-stop gradient fill for the QR modules.
829
+ */
830
+ interface Gradient {
831
+ /**
832
+ * Gradient end color.
833
+ */
834
+ endColor: string;
835
+ /**
836
+ * Gradient start color.
837
+ */
838
+ startColor: string;
839
+ /**
840
+ * Gradient type: `linear` or `radial`.
841
+ */
842
+ type: string;
843
+ /**
844
+ * Rotation in radians (linear gradients only).
845
+ */
846
+ rotation?: number | null;
847
+ }
848
+ }
849
+ interface Utm {
850
+ /**
851
+ * The `utm_campaign` value appended to the tracked short-link URL.
852
+ */
853
+ campaign?: string | null;
854
+ /**
855
+ * The `utm_content` value.
856
+ */
857
+ content?: string | null;
858
+ /**
859
+ * The `utm_medium` value.
860
+ */
861
+ medium?: string | null;
862
+ /**
863
+ * The `utm_source` value.
864
+ */
865
+ source?: string | null;
866
+ /**
867
+ * The `utm_term` value.
868
+ */
869
+ term?: string | null;
870
+ }
871
+ }
872
+ }
349
873
  export interface ShortLinkResultsResponse {
350
874
  devices: Array<ShortLinkResultsResponse.Device>;
351
875
  geoByCity: Array<ShortLinkResultsResponse.GeoByCity>;
@@ -407,7 +931,7 @@ export interface ShortLinkCreateParams {
407
931
  /**
408
932
  * QR code visual styling.
409
933
  */
410
- qr?: unknown | null;
934
+ qr?: ShortLinkCreateParams.Qr | null;
411
935
  /**
412
936
  * Destination URL the short link redirects to. Must be a valid URL.
413
937
  */
@@ -415,7 +939,106 @@ export interface ShortLinkCreateParams {
415
939
  /**
416
940
  * Campaign / UTM tags appended to the tracked short-link URL.
417
941
  */
418
- utm?: unknown | null;
942
+ utm?: ShortLinkCreateParams.Utm | null;
943
+ }
944
+ export declare namespace ShortLinkCreateParams {
945
+ /**
946
+ * QR code visual styling.
947
+ */
948
+ interface Qr {
949
+ /**
950
+ * Background color.
951
+ */
952
+ bgColor?: string | null;
953
+ /**
954
+ * Finder (corner) dot shape.
955
+ */
956
+ cornerDotStyle?: 'square' | 'dot' | null;
957
+ /**
958
+ * Finder (corner) square shape.
959
+ */
960
+ cornerSquareStyle?: 'square' | 'dot' | 'extra-rounded' | null;
961
+ /**
962
+ * Module shape.
963
+ */
964
+ dotStyle?: 'square' | 'rounded' | 'dots' | 'classy' | 'classy-rounded' | 'extra-rounded' | null;
965
+ /**
966
+ * Foreground (module) color.
967
+ */
968
+ fgColor?: string | null;
969
+ /**
970
+ * Download frame.
971
+ */
972
+ frameShape?: 'square' | 'rounded' | 'circle' | null;
973
+ /**
974
+ * A two-stop gradient fill for the QR modules.
975
+ */
976
+ gradient?: Qr.Gradient | null;
977
+ /**
978
+ * Base64 data URL of a centered logo overlay.
979
+ */
980
+ logo?: string | null;
981
+ /**
982
+ * Logo size as a fraction of the QR.
983
+ */
984
+ logoSizeRatio?: number | null;
985
+ /**
986
+ * The selected preset theme id, for re-highlighting it in a UI.
987
+ */
988
+ theme?: string | null;
989
+ /**
990
+ * When true, the background is exported transparent.
991
+ */
992
+ transparentBackground?: boolean | null;
993
+ }
994
+ namespace Qr {
995
+ /**
996
+ * A two-stop gradient fill for the QR modules.
997
+ */
998
+ interface Gradient {
999
+ /**
1000
+ * Gradient end color.
1001
+ */
1002
+ endColor: string;
1003
+ /**
1004
+ * Gradient start color.
1005
+ */
1006
+ startColor: string;
1007
+ /**
1008
+ * Gradient type.
1009
+ */
1010
+ type: 'linear' | 'radial';
1011
+ /**
1012
+ * Rotation in radians (linear gradients only).
1013
+ */
1014
+ rotation?: number | null;
1015
+ }
1016
+ }
1017
+ /**
1018
+ * Campaign / UTM tags appended to the tracked short-link URL.
1019
+ */
1020
+ interface Utm {
1021
+ /**
1022
+ * The `utm_campaign` value appended to the tracked short-link URL.
1023
+ */
1024
+ campaign?: string | null;
1025
+ /**
1026
+ * The `utm_content` value.
1027
+ */
1028
+ content?: string | null;
1029
+ /**
1030
+ * The `utm_medium` value.
1031
+ */
1032
+ medium?: string | null;
1033
+ /**
1034
+ * The `utm_source` value.
1035
+ */
1036
+ source?: string | null;
1037
+ /**
1038
+ * The `utm_term` value.
1039
+ */
1040
+ term?: string | null;
1041
+ }
419
1042
  }
420
1043
  export interface ShortLinkUpdateParams {
421
1044
  code?: string | null;
@@ -425,7 +1048,7 @@ export interface ShortLinkUpdateParams {
425
1048
  */
426
1049
  forwardUtmToDestination?: boolean;
427
1050
  name?: string | null;
428
- qr?: unknown | null;
1051
+ qr?: ShortLinkUpdateParams.Qr | null;
429
1052
  /**
430
1053
  * Destination URL the short link redirects to. Must be a valid URL. Send `null` to
431
1054
  * clear it.
@@ -435,8 +1058,101 @@ export interface ShortLinkUpdateParams {
435
1058
  * Whether the short link resolves at the edge. Send `Enabled` or `Disabled`;
436
1059
  * `null` is rejected since storage cannot represent it.
437
1060
  */
438
- status?: string | null;
439
- utm?: unknown | null;
1061
+ status?: 'Disabled' | 'Enabled' | null;
1062
+ utm?: ShortLinkUpdateParams.Utm | null;
1063
+ }
1064
+ export declare namespace ShortLinkUpdateParams {
1065
+ interface Qr {
1066
+ /**
1067
+ * Background color.
1068
+ */
1069
+ bgColor?: string | null;
1070
+ /**
1071
+ * Finder (corner) dot shape.
1072
+ */
1073
+ cornerDotStyle?: 'square' | 'dot' | null;
1074
+ /**
1075
+ * Finder (corner) square shape.
1076
+ */
1077
+ cornerSquareStyle?: 'square' | 'dot' | 'extra-rounded' | null;
1078
+ /**
1079
+ * Module shape.
1080
+ */
1081
+ dotStyle?: 'square' | 'rounded' | 'dots' | 'classy' | 'classy-rounded' | 'extra-rounded' | null;
1082
+ /**
1083
+ * Foreground (module) color.
1084
+ */
1085
+ fgColor?: string | null;
1086
+ /**
1087
+ * Download frame.
1088
+ */
1089
+ frameShape?: 'square' | 'rounded' | 'circle' | null;
1090
+ /**
1091
+ * A two-stop gradient fill for the QR modules.
1092
+ */
1093
+ gradient?: Qr.Gradient | null;
1094
+ /**
1095
+ * Base64 data URL of a centered logo overlay.
1096
+ */
1097
+ logo?: string | null;
1098
+ /**
1099
+ * Logo size as a fraction of the QR.
1100
+ */
1101
+ logoSizeRatio?: number | null;
1102
+ /**
1103
+ * The selected preset theme id, for re-highlighting it in a UI.
1104
+ */
1105
+ theme?: string | null;
1106
+ /**
1107
+ * When true, the background is exported transparent.
1108
+ */
1109
+ transparentBackground?: boolean | null;
1110
+ }
1111
+ namespace Qr {
1112
+ /**
1113
+ * A two-stop gradient fill for the QR modules.
1114
+ */
1115
+ interface Gradient {
1116
+ /**
1117
+ * Gradient end color.
1118
+ */
1119
+ endColor: string;
1120
+ /**
1121
+ * Gradient start color.
1122
+ */
1123
+ startColor: string;
1124
+ /**
1125
+ * Gradient type.
1126
+ */
1127
+ type: 'linear' | 'radial';
1128
+ /**
1129
+ * Rotation in radians (linear gradients only).
1130
+ */
1131
+ rotation?: number | null;
1132
+ }
1133
+ }
1134
+ interface Utm {
1135
+ /**
1136
+ * The `utm_campaign` value appended to the tracked short-link URL.
1137
+ */
1138
+ campaign?: string | null;
1139
+ /**
1140
+ * The `utm_content` value.
1141
+ */
1142
+ content?: string | null;
1143
+ /**
1144
+ * The `utm_medium` value.
1145
+ */
1146
+ medium?: string | null;
1147
+ /**
1148
+ * The `utm_source` value.
1149
+ */
1150
+ source?: string | null;
1151
+ /**
1152
+ * The `utm_term` value.
1153
+ */
1154
+ term?: string | null;
1155
+ }
440
1156
  }
441
1157
  export interface ShortLinkResultsParams {
442
1158
  /**