@oursprivacy/platform-sdk 1.53.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 (158) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/client.d.mts +10 -4
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +10 -4
  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/consent-settings.d.mts +5930 -442
  12. package/resources/consent-settings.d.mts.map +1 -1
  13. package/resources/consent-settings.d.ts +5930 -442
  14. package/resources/consent-settings.d.ts.map +1 -1
  15. package/resources/custom-domains.d.mts +301 -0
  16. package/resources/custom-domains.d.mts.map +1 -0
  17. package/resources/custom-domains.d.ts +301 -0
  18. package/resources/custom-domains.d.ts.map +1 -0
  19. package/resources/custom-domains.js +55 -0
  20. package/resources/custom-domains.js.map +1 -0
  21. package/resources/custom-domains.mjs +51 -0
  22. package/resources/custom-domains.mjs.map +1 -0
  23. package/resources/data-governance.d.mts +75 -15
  24. package/resources/data-governance.d.mts.map +1 -1
  25. package/resources/data-governance.d.ts +75 -15
  26. package/resources/data-governance.d.ts.map +1 -1
  27. package/resources/default-mappings.d.mts +207 -3
  28. package/resources/default-mappings.d.mts.map +1 -1
  29. package/resources/default-mappings.d.ts +207 -3
  30. package/resources/default-mappings.d.ts.map +1 -1
  31. package/resources/destinations.d.mts +33 -13
  32. package/resources/destinations.d.mts.map +1 -1
  33. package/resources/destinations.d.ts +33 -13
  34. package/resources/destinations.d.ts.map +1 -1
  35. package/resources/experiment-variants.d.mts +117 -14
  36. package/resources/experiment-variants.d.mts.map +1 -1
  37. package/resources/experiment-variants.d.ts +117 -14
  38. package/resources/experiment-variants.d.ts.map +1 -1
  39. package/resources/experiments.d.mts +3979 -253
  40. package/resources/experiments.d.mts.map +1 -1
  41. package/resources/experiments.d.ts +3979 -253
  42. package/resources/experiments.d.ts.map +1 -1
  43. package/resources/funnels.d.mts +648 -7
  44. package/resources/funnels.d.mts.map +1 -1
  45. package/resources/funnels.d.ts +648 -7
  46. package/resources/funnels.d.ts.map +1 -1
  47. package/resources/index.d.mts +4 -2
  48. package/resources/index.d.mts.map +1 -1
  49. package/resources/index.d.ts +4 -2
  50. package/resources/index.d.ts.map +1 -1
  51. package/resources/index.js +5 -1
  52. package/resources/index.js.map +1 -1
  53. package/resources/index.mjs +2 -0
  54. package/resources/index.mjs.map +1 -1
  55. package/resources/journey-flows.d.mts +580 -16
  56. package/resources/journey-flows.d.mts.map +1 -1
  57. package/resources/journey-flows.d.ts +580 -16
  58. package/resources/journey-flows.d.ts.map +1 -1
  59. package/resources/locations.d.mts +25 -5
  60. package/resources/locations.d.mts.map +1 -1
  61. package/resources/locations.d.ts +25 -5
  62. package/resources/locations.d.ts.map +1 -1
  63. package/resources/mappings.d.mts +540 -12
  64. package/resources/mappings.d.mts.map +1 -1
  65. package/resources/mappings.d.ts +540 -12
  66. package/resources/mappings.d.ts.map +1 -1
  67. package/resources/mappings.js +22 -0
  68. package/resources/mappings.js.map +1 -1
  69. package/resources/mappings.mjs +22 -0
  70. package/resources/mappings.mjs.map +1 -1
  71. package/resources/me.d.mts +29 -0
  72. package/resources/me.d.mts.map +1 -0
  73. package/resources/me.d.ts +29 -0
  74. package/resources/me.d.ts.map +1 -0
  75. package/resources/me.js +17 -0
  76. package/resources/me.js.map +1 -0
  77. package/resources/me.mjs +13 -0
  78. package/resources/me.mjs.map +1 -0
  79. package/resources/replay-settings.d.mts +117 -3
  80. package/resources/replay-settings.d.mts.map +1 -1
  81. package/resources/replay-settings.d.ts +117 -3
  82. package/resources/replay-settings.d.ts.map +1 -1
  83. package/resources/session-replays.d.mts +5 -0
  84. package/resources/session-replays.d.mts.map +1 -1
  85. package/resources/session-replays.d.ts +5 -0
  86. package/resources/session-replays.d.ts.map +1 -1
  87. package/resources/short-links.d.mts +722 -10
  88. package/resources/short-links.d.mts.map +1 -1
  89. package/resources/short-links.d.ts +722 -10
  90. package/resources/short-links.d.ts.map +1 -1
  91. package/resources/sources.d.mts +86 -11
  92. package/resources/sources.d.mts.map +1 -1
  93. package/resources/sources.d.ts +86 -11
  94. package/resources/sources.d.ts.map +1 -1
  95. package/resources/tag-manager-tags.d.mts +3 -1
  96. package/resources/tag-manager-tags.d.mts.map +1 -1
  97. package/resources/tag-manager-tags.d.ts +3 -1
  98. package/resources/tag-manager-tags.d.ts.map +1 -1
  99. package/resources/tag-manager-triggers.d.mts +3 -1
  100. package/resources/tag-manager-triggers.d.mts.map +1 -1
  101. package/resources/tag-manager-triggers.d.ts +3 -1
  102. package/resources/tag-manager-triggers.d.ts.map +1 -1
  103. package/resources/tag-manager-variables.d.mts +39 -13
  104. package/resources/tag-manager-variables.d.mts.map +1 -1
  105. package/resources/tag-manager-variables.d.ts +39 -13
  106. package/resources/tag-manager-variables.d.ts.map +1 -1
  107. package/resources/tag-managers.d.mts +14 -1
  108. package/resources/tag-managers.d.mts.map +1 -1
  109. package/resources/tag-managers.d.ts +14 -1
  110. package/resources/tag-managers.d.ts.map +1 -1
  111. package/resources/tag-managers.js +8 -0
  112. package/resources/tag-managers.js.map +1 -1
  113. package/resources/tag-managers.mjs +8 -0
  114. package/resources/tag-managers.mjs.map +1 -1
  115. package/resources/test-events.d.mts +67 -11
  116. package/resources/test-events.d.mts.map +1 -1
  117. package/resources/test-events.d.ts +67 -11
  118. package/resources/test-events.d.ts.map +1 -1
  119. package/resources/versions.d.mts +82 -37
  120. package/resources/versions.d.mts.map +1 -1
  121. package/resources/versions.d.ts +82 -37
  122. package/resources/versions.d.ts.map +1 -1
  123. package/resources/versions.js +5 -5
  124. package/resources/versions.mjs +5 -5
  125. package/resources/video-channels.d.mts +32 -4
  126. package/resources/video-channels.d.mts.map +1 -1
  127. package/resources/video-channels.d.ts +32 -4
  128. package/resources/video-channels.d.ts.map +1 -1
  129. package/src/client.ts +36 -0
  130. package/src/resources/consent-settings.ts +7287 -374
  131. package/src/resources/custom-domains.ts +450 -0
  132. package/src/resources/data-governance.ts +45 -15
  133. package/src/resources/default-mappings.ts +303 -3
  134. package/src/resources/destinations.ts +23 -8
  135. package/src/resources/experiment-variants.ts +131 -14
  136. package/src/resources/experiments.ts +8021 -443
  137. package/src/resources/funnels.ts +1355 -7
  138. package/src/resources/index.ts +15 -0
  139. package/src/resources/journey-flows.ts +1224 -16
  140. package/src/resources/locations.ts +35 -5
  141. package/src/resources/mappings.ts +794 -19
  142. package/src/resources/me.ts +37 -0
  143. package/src/resources/replay-settings.ts +138 -3
  144. package/src/resources/session-replays.ts +6 -0
  145. package/src/resources/short-links.ts +872 -10
  146. package/src/resources/sources.ts +96 -11
  147. package/src/resources/tag-manager-tags.ts +7 -1
  148. package/src/resources/tag-manager-triggers.ts +7 -1
  149. package/src/resources/tag-manager-variables.ts +91 -13
  150. package/src/resources/tag-managers.ts +25 -0
  151. package/src/resources/test-events.ts +47 -11
  152. package/src/resources/versions.ts +83 -37
  153. package/src/resources/video-channels.ts +44 -4
  154. package/src/version.ts +1 -1
  155. package/version.d.mts +1 -1
  156. package/version.d.ts +1 -1
  157. package/version.js +1 -1
  158. package/version.mjs +1 -1
@@ -197,7 +197,7 @@ export interface ShortLinkListResponse {
197
197
  * QR styling + campaign tags. New links include an empty design; legacy redirects
198
198
  * may return null.
199
199
  */
200
- shortLinkDesign?: unknown | null;
200
+ shortLinkDesign?: ShortLinkListResponse.ShortLinkDesign | null;
201
201
 
202
202
  /**
203
203
  * The public short-link URL that the QR encodes and callers share. New links use
@@ -207,6 +207,132 @@ export interface ShortLinkListResponse {
207
207
  shortUrl?: string | null;
208
208
  }
209
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
+
210
336
  export interface ShortLinkCreateResponse {
211
337
  id: string;
212
338
 
@@ -259,7 +385,7 @@ export interface ShortLinkCreateResponse {
259
385
  * QR styling + campaign tags. New links include an empty design; legacy redirects
260
386
  * may return null.
261
387
  */
262
- shortLinkDesign?: unknown | null;
388
+ shortLinkDesign?: ShortLinkCreateResponse.ShortLinkDesign | null;
263
389
 
264
390
  /**
265
391
  * The public short-link URL that the QR encodes and callers share. New links use
@@ -269,6 +395,132 @@ export interface ShortLinkCreateResponse {
269
395
  shortUrl?: string | null;
270
396
  }
271
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
+
272
524
  export interface ShortLinkRetrieveResponse {
273
525
  id: string;
274
526
 
@@ -321,7 +573,7 @@ export interface ShortLinkRetrieveResponse {
321
573
  * QR styling + campaign tags. New links include an empty design; legacy redirects
322
574
  * may return null.
323
575
  */
324
- shortLinkDesign?: unknown | null;
576
+ shortLinkDesign?: ShortLinkRetrieveResponse.ShortLinkDesign | null;
325
577
 
326
578
  /**
327
579
  * The public short-link URL that the QR encodes and callers share. New links use
@@ -331,6 +583,132 @@ export interface ShortLinkRetrieveResponse {
331
583
  shortUrl?: string | null;
332
584
  }
333
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
+
334
712
  export interface ShortLinkUpdateResponse {
335
713
  id: string;
336
714
 
@@ -383,7 +761,7 @@ export interface ShortLinkUpdateResponse {
383
761
  * QR styling + campaign tags. New links include an empty design; legacy redirects
384
762
  * may return null.
385
763
  */
386
- shortLinkDesign?: unknown | null;
764
+ shortLinkDesign?: ShortLinkUpdateResponse.ShortLinkDesign | null;
387
765
 
388
766
  /**
389
767
  * The public short-link URL that the QR encodes and callers share. New links use
@@ -393,6 +771,132 @@ export interface ShortLinkUpdateResponse {
393
771
  shortUrl?: string | null;
394
772
  }
395
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
+
396
900
  export interface ShortLinkDeleteResponse {
397
901
  deleted: true;
398
902
  }
@@ -449,7 +953,7 @@ export interface ShortLinkCloneResponse {
449
953
  * QR styling + campaign tags. New links include an empty design; legacy redirects
450
954
  * may return null.
451
955
  */
452
- shortLinkDesign?: unknown | null;
956
+ shortLinkDesign?: ShortLinkCloneResponse.ShortLinkDesign | null;
453
957
 
454
958
  /**
455
959
  * The public short-link URL that the QR encodes and callers share. New links use
@@ -459,6 +963,132 @@ export interface ShortLinkCloneResponse {
459
963
  shortUrl?: string | null;
460
964
  }
461
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
+
462
1092
  export interface ShortLinkResultsResponse {
463
1093
  devices: Array<ShortLinkResultsResponse.Device>;
464
1094
 
@@ -544,7 +1174,7 @@ export interface ShortLinkCreateParams {
544
1174
  /**
545
1175
  * QR code visual styling.
546
1176
  */
547
- qr?: unknown | null;
1177
+ qr?: ShortLinkCreateParams.Qr | null;
548
1178
 
549
1179
  /**
550
1180
  * Destination URL the short link redirects to. Must be a valid URL.
@@ -554,7 +1184,126 @@ export interface ShortLinkCreateParams {
554
1184
  /**
555
1185
  * Campaign / UTM tags appended to the tracked short-link URL.
556
1186
  */
557
- 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
+ }
558
1307
  }
559
1308
 
560
1309
  export interface ShortLinkUpdateParams {
@@ -568,7 +1317,7 @@ export interface ShortLinkUpdateParams {
568
1317
 
569
1318
  name?: string | null;
570
1319
 
571
- qr?: unknown | null;
1320
+ qr?: ShortLinkUpdateParams.Qr | null;
572
1321
 
573
1322
  /**
574
1323
  * Destination URL the short link redirects to. Must be a valid URL. Send `null` to
@@ -580,9 +1329,122 @@ export interface ShortLinkUpdateParams {
580
1329
  * Whether the short link resolves at the edge. Send `Enabled` or `Disabled`;
581
1330
  * `null` is rejected since storage cannot represent it.
582
1331
  */
583
- 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
+ }
584
1421
 
585
- 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
+ }
586
1448
  }
587
1449
 
588
1450
  export interface ShortLinkResultsParams {