@oursprivacy/platform-sdk 1.61.0 → 1.62.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 (64) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/client.d.mts +5 -2
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +5 -2
  5. package/client.d.ts.map +1 -1
  6. package/client.js +3 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +3 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/attribution-reports.d.mts +1400 -0
  12. package/resources/attribution-reports.d.mts.map +1 -0
  13. package/resources/attribution-reports.d.ts +1400 -0
  14. package/resources/attribution-reports.d.ts.map +1 -0
  15. package/resources/attribution-reports.js +116 -0
  16. package/resources/attribution-reports.js.map +1 -0
  17. package/resources/attribution-reports.mjs +112 -0
  18. package/resources/attribution-reports.mjs.map +1 -0
  19. package/resources/experiment-variants.d.mts +84 -93
  20. package/resources/experiment-variants.d.mts.map +1 -1
  21. package/resources/experiment-variants.d.ts +84 -93
  22. package/resources/experiment-variants.d.ts.map +1 -1
  23. package/resources/experiment-variants.js +3 -1
  24. package/resources/experiment-variants.js.map +1 -1
  25. package/resources/experiment-variants.mjs +3 -1
  26. package/resources/experiment-variants.mjs.map +1 -1
  27. package/resources/experiments.d.mts +50 -65
  28. package/resources/experiments.d.mts.map +1 -1
  29. package/resources/experiments.d.ts +50 -65
  30. package/resources/experiments.d.ts.map +1 -1
  31. package/resources/index.d.mts +2 -1
  32. package/resources/index.d.mts.map +1 -1
  33. package/resources/index.d.ts +2 -1
  34. package/resources/index.d.ts.map +1 -1
  35. package/resources/index.js +3 -1
  36. package/resources/index.js.map +1 -1
  37. package/resources/index.mjs +1 -0
  38. package/resources/index.mjs.map +1 -1
  39. package/resources/videos.d.mts +17 -5
  40. package/resources/videos.d.mts.map +1 -1
  41. package/resources/videos.d.ts +17 -5
  42. package/resources/videos.d.ts.map +1 -1
  43. package/resources/videos.js +2 -2
  44. package/resources/videos.mjs +2 -2
  45. package/resources/web-scanners.d.mts +84 -32
  46. package/resources/web-scanners.d.mts.map +1 -1
  47. package/resources/web-scanners.d.ts +84 -32
  48. package/resources/web-scanners.d.ts.map +1 -1
  49. package/resources/web-scanners.js +34 -18
  50. package/resources/web-scanners.js.map +1 -1
  51. package/resources/web-scanners.mjs +34 -18
  52. package/resources/web-scanners.mjs.map +1 -1
  53. package/src/client.ts +49 -0
  54. package/src/resources/attribution-reports.ts +2294 -0
  55. package/src/resources/experiment-variants.ts +84 -93
  56. package/src/resources/experiments.ts +50 -65
  57. package/src/resources/index.ts +23 -0
  58. package/src/resources/videos.ts +243 -5
  59. package/src/resources/web-scanners.ts +100 -31
  60. package/src/version.ts +1 -1
  61. package/version.d.mts +1 -1
  62. package/version.d.ts +1 -1
  63. package/version.js +1 -1
  64. package/version.mjs +1 -1
@@ -369,8 +369,8 @@ export declare namespace ExperimentListResponse {
369
369
  */
370
370
  name: string;
371
371
  /**
372
- * Relative traffic weight used when assigning visitors among variants in an active
373
- * experiment.
372
+ * Share of the experiment's traffic as a percentage (0–100). Weights across all
373
+ * variants total 100; the control's weight is the remainder after the treatments.
374
374
  */
375
375
  weight: number;
376
376
  /**
@@ -404,28 +404,25 @@ export declare namespace ExperimentListResponse {
404
404
  * Canonical action payload. For `setText` / `setHtml` / `customCss` / `customJs` /
405
405
  * `setImage` / `insertBefore` / `insertAfter` this is the literal
406
406
  * text/HTML/CSS/JS/URL. For `setStyle` and `setAttribute` it is a JSON-stringified
407
- * `{key: value}` object — prefer the structured `styles` / `attribute` fields
408
- * below to avoid manual JSON encoding.
407
+ * `{key: value}` object; the structured `styles` / `attribute` fields carry the
408
+ * same data.
409
409
  */
410
410
  value: string;
411
411
  /**
412
- * Populated on read for `setAttribute` modifications, parsed from `value`.
413
- * Customers may also send this field instead of a JSON-stringified `value` on
414
- * write — see `domModificationInputSchema`.
412
+ * Populated on read for `setAttribute` modifications, parsed from `value`. May
413
+ * also be sent instead of a JSON-stringified `value` on write.
415
414
  */
416
415
  attribute?: DomModification.Attribute | null;
417
416
  /**
418
- * Populated on read for `setStyle` modifications, parsed from `value`. Customers
419
- * may also send this field instead of a JSON-stringified `value` on write — see
420
- * `domModificationInputSchema`.
417
+ * Populated on read for `setStyle` modifications, parsed from `value`. May also be
418
+ * sent instead of a JSON-stringified `value` on write.
421
419
  */
422
420
  styles?: Array<DomModification.Style> | null;
423
421
  }
424
422
  namespace DomModification {
425
423
  /**
426
- * Populated on read for `setAttribute` modifications, parsed from `value`.
427
- * Customers may also send this field instead of a JSON-stringified `value` on
428
- * write — see `domModificationInputSchema`.
424
+ * Populated on read for `setAttribute` modifications, parsed from `value`. May
425
+ * also be sent instead of a JSON-stringified `value` on write.
429
426
  */
430
427
  interface Attribute {
431
428
  /**
@@ -978,8 +975,8 @@ export declare namespace ExperimentCreateResponse {
978
975
  */
979
976
  name: string;
980
977
  /**
981
- * Relative traffic weight used when assigning visitors among variants in an active
982
- * experiment.
978
+ * Share of the experiment's traffic as a percentage (0–100). Weights across all
979
+ * variants total 100; the control's weight is the remainder after the treatments.
983
980
  */
984
981
  weight: number;
985
982
  /**
@@ -1013,28 +1010,25 @@ export declare namespace ExperimentCreateResponse {
1013
1010
  * Canonical action payload. For `setText` / `setHtml` / `customCss` / `customJs` /
1014
1011
  * `setImage` / `insertBefore` / `insertAfter` this is the literal
1015
1012
  * text/HTML/CSS/JS/URL. For `setStyle` and `setAttribute` it is a JSON-stringified
1016
- * `{key: value}` object — prefer the structured `styles` / `attribute` fields
1017
- * below to avoid manual JSON encoding.
1013
+ * `{key: value}` object; the structured `styles` / `attribute` fields carry the
1014
+ * same data.
1018
1015
  */
1019
1016
  value: string;
1020
1017
  /**
1021
- * Populated on read for `setAttribute` modifications, parsed from `value`.
1022
- * Customers may also send this field instead of a JSON-stringified `value` on
1023
- * write — see `domModificationInputSchema`.
1018
+ * Populated on read for `setAttribute` modifications, parsed from `value`. May
1019
+ * also be sent instead of a JSON-stringified `value` on write.
1024
1020
  */
1025
1021
  attribute?: DomModification.Attribute | null;
1026
1022
  /**
1027
- * Populated on read for `setStyle` modifications, parsed from `value`. Customers
1028
- * may also send this field instead of a JSON-stringified `value` on write — see
1029
- * `domModificationInputSchema`.
1023
+ * Populated on read for `setStyle` modifications, parsed from `value`. May also be
1024
+ * sent instead of a JSON-stringified `value` on write.
1030
1025
  */
1031
1026
  styles?: Array<DomModification.Style> | null;
1032
1027
  }
1033
1028
  namespace DomModification {
1034
1029
  /**
1035
- * Populated on read for `setAttribute` modifications, parsed from `value`.
1036
- * Customers may also send this field instead of a JSON-stringified `value` on
1037
- * write — see `domModificationInputSchema`.
1030
+ * Populated on read for `setAttribute` modifications, parsed from `value`. May
1031
+ * also be sent instead of a JSON-stringified `value` on write.
1038
1032
  */
1039
1033
  interface Attribute {
1040
1034
  /**
@@ -1587,8 +1581,8 @@ export declare namespace ExperimentRetrieveResponse {
1587
1581
  */
1588
1582
  name: string;
1589
1583
  /**
1590
- * Relative traffic weight used when assigning visitors among variants in an active
1591
- * experiment.
1584
+ * Share of the experiment's traffic as a percentage (0–100). Weights across all
1585
+ * variants total 100; the control's weight is the remainder after the treatments.
1592
1586
  */
1593
1587
  weight: number;
1594
1588
  /**
@@ -1622,28 +1616,25 @@ export declare namespace ExperimentRetrieveResponse {
1622
1616
  * Canonical action payload. For `setText` / `setHtml` / `customCss` / `customJs` /
1623
1617
  * `setImage` / `insertBefore` / `insertAfter` this is the literal
1624
1618
  * text/HTML/CSS/JS/URL. For `setStyle` and `setAttribute` it is a JSON-stringified
1625
- * `{key: value}` object — prefer the structured `styles` / `attribute` fields
1626
- * below to avoid manual JSON encoding.
1619
+ * `{key: value}` object; the structured `styles` / `attribute` fields carry the
1620
+ * same data.
1627
1621
  */
1628
1622
  value: string;
1629
1623
  /**
1630
- * Populated on read for `setAttribute` modifications, parsed from `value`.
1631
- * Customers may also send this field instead of a JSON-stringified `value` on
1632
- * write — see `domModificationInputSchema`.
1624
+ * Populated on read for `setAttribute` modifications, parsed from `value`. May
1625
+ * also be sent instead of a JSON-stringified `value` on write.
1633
1626
  */
1634
1627
  attribute?: DomModification.Attribute | null;
1635
1628
  /**
1636
- * Populated on read for `setStyle` modifications, parsed from `value`. Customers
1637
- * may also send this field instead of a JSON-stringified `value` on write — see
1638
- * `domModificationInputSchema`.
1629
+ * Populated on read for `setStyle` modifications, parsed from `value`. May also be
1630
+ * sent instead of a JSON-stringified `value` on write.
1639
1631
  */
1640
1632
  styles?: Array<DomModification.Style> | null;
1641
1633
  }
1642
1634
  namespace DomModification {
1643
1635
  /**
1644
- * Populated on read for `setAttribute` modifications, parsed from `value`.
1645
- * Customers may also send this field instead of a JSON-stringified `value` on
1646
- * write — see `domModificationInputSchema`.
1636
+ * Populated on read for `setAttribute` modifications, parsed from `value`. May
1637
+ * also be sent instead of a JSON-stringified `value` on write.
1647
1638
  */
1648
1639
  interface Attribute {
1649
1640
  /**
@@ -2196,8 +2187,8 @@ export declare namespace ExperimentUpdateResponse {
2196
2187
  */
2197
2188
  name: string;
2198
2189
  /**
2199
- * Relative traffic weight used when assigning visitors among variants in an active
2200
- * experiment.
2190
+ * Share of the experiment's traffic as a percentage (0–100). Weights across all
2191
+ * variants total 100; the control's weight is the remainder after the treatments.
2201
2192
  */
2202
2193
  weight: number;
2203
2194
  /**
@@ -2231,28 +2222,25 @@ export declare namespace ExperimentUpdateResponse {
2231
2222
  * Canonical action payload. For `setText` / `setHtml` / `customCss` / `customJs` /
2232
2223
  * `setImage` / `insertBefore` / `insertAfter` this is the literal
2233
2224
  * text/HTML/CSS/JS/URL. For `setStyle` and `setAttribute` it is a JSON-stringified
2234
- * `{key: value}` object — prefer the structured `styles` / `attribute` fields
2235
- * below to avoid manual JSON encoding.
2225
+ * `{key: value}` object; the structured `styles` / `attribute` fields carry the
2226
+ * same data.
2236
2227
  */
2237
2228
  value: string;
2238
2229
  /**
2239
- * Populated on read for `setAttribute` modifications, parsed from `value`.
2240
- * Customers may also send this field instead of a JSON-stringified `value` on
2241
- * write — see `domModificationInputSchema`.
2230
+ * Populated on read for `setAttribute` modifications, parsed from `value`. May
2231
+ * also be sent instead of a JSON-stringified `value` on write.
2242
2232
  */
2243
2233
  attribute?: DomModification.Attribute | null;
2244
2234
  /**
2245
- * Populated on read for `setStyle` modifications, parsed from `value`. Customers
2246
- * may also send this field instead of a JSON-stringified `value` on write — see
2247
- * `domModificationInputSchema`.
2235
+ * Populated on read for `setStyle` modifications, parsed from `value`. May also be
2236
+ * sent instead of a JSON-stringified `value` on write.
2248
2237
  */
2249
2238
  styles?: Array<DomModification.Style> | null;
2250
2239
  }
2251
2240
  namespace DomModification {
2252
2241
  /**
2253
- * Populated on read for `setAttribute` modifications, parsed from `value`.
2254
- * Customers may also send this field instead of a JSON-stringified `value` on
2255
- * write — see `domModificationInputSchema`.
2242
+ * Populated on read for `setAttribute` modifications, parsed from `value`. May
2243
+ * also be sent instead of a JSON-stringified `value` on write.
2256
2244
  */
2257
2245
  interface Attribute {
2258
2246
  /**
@@ -2809,8 +2797,8 @@ export declare namespace ExperimentDuplicateResponse {
2809
2797
  */
2810
2798
  name: string;
2811
2799
  /**
2812
- * Relative traffic weight used when assigning visitors among variants in an active
2813
- * experiment.
2800
+ * Share of the experiment's traffic as a percentage (0–100). Weights across all
2801
+ * variants total 100; the control's weight is the remainder after the treatments.
2814
2802
  */
2815
2803
  weight: number;
2816
2804
  /**
@@ -2844,28 +2832,25 @@ export declare namespace ExperimentDuplicateResponse {
2844
2832
  * Canonical action payload. For `setText` / `setHtml` / `customCss` / `customJs` /
2845
2833
  * `setImage` / `insertBefore` / `insertAfter` this is the literal
2846
2834
  * text/HTML/CSS/JS/URL. For `setStyle` and `setAttribute` it is a JSON-stringified
2847
- * `{key: value}` object — prefer the structured `styles` / `attribute` fields
2848
- * below to avoid manual JSON encoding.
2835
+ * `{key: value}` object; the structured `styles` / `attribute` fields carry the
2836
+ * same data.
2849
2837
  */
2850
2838
  value: string;
2851
2839
  /**
2852
- * Populated on read for `setAttribute` modifications, parsed from `value`.
2853
- * Customers may also send this field instead of a JSON-stringified `value` on
2854
- * write — see `domModificationInputSchema`.
2840
+ * Populated on read for `setAttribute` modifications, parsed from `value`. May
2841
+ * also be sent instead of a JSON-stringified `value` on write.
2855
2842
  */
2856
2843
  attribute?: DomModification.Attribute | null;
2857
2844
  /**
2858
- * Populated on read for `setStyle` modifications, parsed from `value`. Customers
2859
- * may also send this field instead of a JSON-stringified `value` on write — see
2860
- * `domModificationInputSchema`.
2845
+ * Populated on read for `setStyle` modifications, parsed from `value`. May also be
2846
+ * sent instead of a JSON-stringified `value` on write.
2861
2847
  */
2862
2848
  styles?: Array<DomModification.Style> | null;
2863
2849
  }
2864
2850
  namespace DomModification {
2865
2851
  /**
2866
- * Populated on read for `setAttribute` modifications, parsed from `value`.
2867
- * Customers may also send this field instead of a JSON-stringified `value` on
2868
- * write — see `domModificationInputSchema`.
2852
+ * Populated on read for `setAttribute` modifications, parsed from `value`. May
2853
+ * also be sent instead of a JSON-stringified `value` on write.
2869
2854
  */
2870
2855
  interface Attribute {
2871
2856
  /**