@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
@@ -147,7 +147,7 @@ export interface ExperimentVariantListResponse {
147
147
  * How this variant changes the user experience. `dom_modifications` for on-page
148
148
  * changes or `redirect` for redirect tests.
149
149
  */
150
- variantType?: string | null;
150
+ variantType?: 'dom_modifications' | 'redirect' | null;
151
151
  }
152
152
 
153
153
  export namespace ExperimentVariantListResponse {
@@ -187,7 +187,7 @@ export namespace ExperimentVariantListResponse {
187
187
  * Customers may also send this field instead of a JSON-stringified `value` on
188
188
  * write — see `domModificationInputSchema`.
189
189
  */
190
- attribute?: unknown | null;
190
+ attribute?: DomModification.Attribute | null;
191
191
 
192
192
  /**
193
193
  * Populated on read for `setStyle` modifications, parsed from `value`. Customers
@@ -198,6 +198,23 @@ export namespace ExperimentVariantListResponse {
198
198
  }
199
199
 
200
200
  export namespace DomModification {
201
+ /**
202
+ * Populated on read for `setAttribute` modifications, parsed from `value`.
203
+ * Customers may also send this field instead of a JSON-stringified `value` on
204
+ * write — see `domModificationInputSchema`.
205
+ */
206
+ export interface Attribute {
207
+ /**
208
+ * HTML attribute name.
209
+ */
210
+ name: string;
211
+
212
+ /**
213
+ * Attribute value to assign.
214
+ */
215
+ value: string;
216
+ }
217
+
201
218
  export interface Style {
202
219
  /**
203
220
  * CSS property name in camelCase or kebab-case.
@@ -255,7 +272,7 @@ export interface ExperimentVariantCreateResponse {
255
272
  * How this variant changes the user experience. `dom_modifications` for on-page
256
273
  * changes or `redirect` for redirect tests.
257
274
  */
258
- variantType?: string | null;
275
+ variantType?: 'dom_modifications' | 'redirect' | null;
259
276
  }
260
277
 
261
278
  export namespace ExperimentVariantCreateResponse {
@@ -295,7 +312,7 @@ export namespace ExperimentVariantCreateResponse {
295
312
  * Customers may also send this field instead of a JSON-stringified `value` on
296
313
  * write — see `domModificationInputSchema`.
297
314
  */
298
- attribute?: unknown | null;
315
+ attribute?: DomModification.Attribute | null;
299
316
 
300
317
  /**
301
318
  * Populated on read for `setStyle` modifications, parsed from `value`. Customers
@@ -306,6 +323,23 @@ export namespace ExperimentVariantCreateResponse {
306
323
  }
307
324
 
308
325
  export namespace DomModification {
326
+ /**
327
+ * Populated on read for `setAttribute` modifications, parsed from `value`.
328
+ * Customers may also send this field instead of a JSON-stringified `value` on
329
+ * write — see `domModificationInputSchema`.
330
+ */
331
+ export interface Attribute {
332
+ /**
333
+ * HTML attribute name.
334
+ */
335
+ name: string;
336
+
337
+ /**
338
+ * Attribute value to assign.
339
+ */
340
+ value: string;
341
+ }
342
+
309
343
  export interface Style {
310
344
  /**
311
345
  * CSS property name in camelCase or kebab-case.
@@ -363,7 +397,7 @@ export interface ExperimentVariantRetrieveResponse {
363
397
  * How this variant changes the user experience. `dom_modifications` for on-page
364
398
  * changes or `redirect` for redirect tests.
365
399
  */
366
- variantType?: string | null;
400
+ variantType?: 'dom_modifications' | 'redirect' | null;
367
401
  }
368
402
 
369
403
  export namespace ExperimentVariantRetrieveResponse {
@@ -403,7 +437,7 @@ export namespace ExperimentVariantRetrieveResponse {
403
437
  * Customers may also send this field instead of a JSON-stringified `value` on
404
438
  * write — see `domModificationInputSchema`.
405
439
  */
406
- attribute?: unknown | null;
440
+ attribute?: DomModification.Attribute | null;
407
441
 
408
442
  /**
409
443
  * Populated on read for `setStyle` modifications, parsed from `value`. Customers
@@ -414,6 +448,23 @@ export namespace ExperimentVariantRetrieveResponse {
414
448
  }
415
449
 
416
450
  export namespace DomModification {
451
+ /**
452
+ * Populated on read for `setAttribute` modifications, parsed from `value`.
453
+ * Customers may also send this field instead of a JSON-stringified `value` on
454
+ * write — see `domModificationInputSchema`.
455
+ */
456
+ export interface Attribute {
457
+ /**
458
+ * HTML attribute name.
459
+ */
460
+ name: string;
461
+
462
+ /**
463
+ * Attribute value to assign.
464
+ */
465
+ value: string;
466
+ }
467
+
417
468
  export interface Style {
418
469
  /**
419
470
  * CSS property name in camelCase or kebab-case.
@@ -471,7 +522,7 @@ export interface ExperimentVariantUpdateResponse {
471
522
  * How this variant changes the user experience. `dom_modifications` for on-page
472
523
  * changes or `redirect` for redirect tests.
473
524
  */
474
- variantType?: string | null;
525
+ variantType?: 'dom_modifications' | 'redirect' | null;
475
526
  }
476
527
 
477
528
  export namespace ExperimentVariantUpdateResponse {
@@ -511,7 +562,7 @@ export namespace ExperimentVariantUpdateResponse {
511
562
  * Customers may also send this field instead of a JSON-stringified `value` on
512
563
  * write — see `domModificationInputSchema`.
513
564
  */
514
- attribute?: unknown | null;
565
+ attribute?: DomModification.Attribute | null;
515
566
 
516
567
  /**
517
568
  * Populated on read for `setStyle` modifications, parsed from `value`. Customers
@@ -522,6 +573,23 @@ export namespace ExperimentVariantUpdateResponse {
522
573
  }
523
574
 
524
575
  export namespace DomModification {
576
+ /**
577
+ * Populated on read for `setAttribute` modifications, parsed from `value`.
578
+ * Customers may also send this field instead of a JSON-stringified `value` on
579
+ * write — see `domModificationInputSchema`.
580
+ */
581
+ export interface Attribute {
582
+ /**
583
+ * HTML attribute name.
584
+ */
585
+ name: string;
586
+
587
+ /**
588
+ * Attribute value to assign.
589
+ */
590
+ value: string;
591
+ }
592
+
525
593
  export interface Style {
526
594
  /**
527
595
  * CSS property name in camelCase or kebab-case.
@@ -579,7 +647,7 @@ export interface ExperimentVariantDeleteResponse {
579
647
  * How this variant changes the user experience. `dom_modifications` for on-page
580
648
  * changes or `redirect` for redirect tests.
581
649
  */
582
- variantType?: string | null;
650
+ variantType?: 'dom_modifications' | 'redirect' | null;
583
651
  }
584
652
 
585
653
  export namespace ExperimentVariantDeleteResponse {
@@ -619,7 +687,7 @@ export namespace ExperimentVariantDeleteResponse {
619
687
  * Customers may also send this field instead of a JSON-stringified `value` on
620
688
  * write — see `domModificationInputSchema`.
621
689
  */
622
- attribute?: unknown | null;
690
+ attribute?: DomModification.Attribute | null;
623
691
 
624
692
  /**
625
693
  * Populated on read for `setStyle` modifications, parsed from `value`. Customers
@@ -630,6 +698,23 @@ export namespace ExperimentVariantDeleteResponse {
630
698
  }
631
699
 
632
700
  export namespace DomModification {
701
+ /**
702
+ * Populated on read for `setAttribute` modifications, parsed from `value`.
703
+ * Customers may also send this field instead of a JSON-stringified `value` on
704
+ * write — see `domModificationInputSchema`.
705
+ */
706
+ export interface Attribute {
707
+ /**
708
+ * HTML attribute name.
709
+ */
710
+ name: string;
711
+
712
+ /**
713
+ * Attribute value to assign.
714
+ */
715
+ value: string;
716
+ }
717
+
633
718
  export interface Style {
634
719
  /**
635
720
  * CSS property name in camelCase or kebab-case.
@@ -741,7 +826,7 @@ export namespace ExperimentVariantCreateParams {
741
826
  * Use this for `setAttribute` to avoid JSON-stringifying `{name: value}` yourself.
742
827
  * Ignored for other actions.
743
828
  */
744
- attribute?: unknown | null;
829
+ attribute?: DomModification.Attribute | null;
745
830
 
746
831
  /**
747
832
  * Use this for `setStyle` to avoid JSON-stringifying `{property: value}` yourself.
@@ -760,6 +845,22 @@ export namespace ExperimentVariantCreateParams {
760
845
  }
761
846
 
762
847
  export namespace DomModification {
848
+ /**
849
+ * Use this for `setAttribute` to avoid JSON-stringifying `{name: value}` yourself.
850
+ * Ignored for other actions.
851
+ */
852
+ export interface Attribute {
853
+ /**
854
+ * HTML attribute name.
855
+ */
856
+ name: string;
857
+
858
+ /**
859
+ * Attribute value to assign.
860
+ */
861
+ value: string;
862
+ }
863
+
763
864
  export interface Style {
764
865
  /**
765
866
  * CSS property name in camelCase or kebab-case.
@@ -784,8 +885,8 @@ export interface ExperimentVariantUpdateParams {
784
885
  /**
785
886
  * Promote or demote this variant as the control. Promoting a second variant while
786
887
  * another already has `isControl: true` is rejected with 409. Demoting the control
787
- * (`isControl: false`) is rejected when it would leave the treatments at 100% —
788
- * there must always be room for a control.
888
+ * (`isControl: false`) is rejected — an experiment must always keep a control.
889
+ * Null leaves the control flag unchanged.
789
890
  */
790
891
  isControl?: boolean | null;
791
892
 
@@ -850,7 +951,7 @@ export namespace ExperimentVariantUpdateParams {
850
951
  * Use this for `setAttribute` to avoid JSON-stringifying `{name: value}` yourself.
851
952
  * Ignored for other actions.
852
953
  */
853
- attribute?: unknown | null;
954
+ attribute?: DomModification.Attribute | null;
854
955
 
855
956
  /**
856
957
  * Use this for `setStyle` to avoid JSON-stringifying `{property: value}` yourself.
@@ -869,6 +970,22 @@ export namespace ExperimentVariantUpdateParams {
869
970
  }
870
971
 
871
972
  export namespace DomModification {
973
+ /**
974
+ * Use this for `setAttribute` to avoid JSON-stringifying `{name: value}` yourself.
975
+ * Ignored for other actions.
976
+ */
977
+ export interface Attribute {
978
+ /**
979
+ * HTML attribute name.
980
+ */
981
+ name: string;
982
+
983
+ /**
984
+ * Attribute value to assign.
985
+ */
986
+ value: string;
987
+ }
988
+
872
989
  export interface Style {
873
990
  /**
874
991
  * CSS property name in camelCase or kebab-case.