@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.
- package/CHANGELOG.md +7 -0
- package/client.d.mts +5 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +5 -2
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/attribution-reports.d.mts +1400 -0
- package/resources/attribution-reports.d.mts.map +1 -0
- package/resources/attribution-reports.d.ts +1400 -0
- package/resources/attribution-reports.d.ts.map +1 -0
- package/resources/attribution-reports.js +116 -0
- package/resources/attribution-reports.js.map +1 -0
- package/resources/attribution-reports.mjs +112 -0
- package/resources/attribution-reports.mjs.map +1 -0
- package/resources/experiment-variants.d.mts +84 -93
- package/resources/experiment-variants.d.mts.map +1 -1
- package/resources/experiment-variants.d.ts +84 -93
- package/resources/experiment-variants.d.ts.map +1 -1
- package/resources/experiment-variants.js +3 -1
- package/resources/experiment-variants.js.map +1 -1
- package/resources/experiment-variants.mjs +3 -1
- package/resources/experiment-variants.mjs.map +1 -1
- package/resources/experiments.d.mts +50 -65
- package/resources/experiments.d.mts.map +1 -1
- package/resources/experiments.d.ts +50 -65
- package/resources/experiments.d.ts.map +1 -1
- package/resources/index.d.mts +2 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/videos.d.mts +17 -5
- package/resources/videos.d.mts.map +1 -1
- package/resources/videos.d.ts +17 -5
- package/resources/videos.d.ts.map +1 -1
- package/resources/videos.js +2 -2
- package/resources/videos.mjs +2 -2
- package/resources/web-scanners.d.mts +84 -32
- package/resources/web-scanners.d.mts.map +1 -1
- package/resources/web-scanners.d.ts +84 -32
- package/resources/web-scanners.d.ts.map +1 -1
- package/resources/web-scanners.js +34 -18
- package/resources/web-scanners.js.map +1 -1
- package/resources/web-scanners.mjs +34 -18
- package/resources/web-scanners.mjs.map +1 -1
- package/src/client.ts +49 -0
- package/src/resources/attribution-reports.ts +2294 -0
- package/src/resources/experiment-variants.ts +84 -93
- package/src/resources/experiments.ts +50 -65
- package/src/resources/index.ts +23 -0
- package/src/resources/videos.ts +243 -5
- package/src/resources/web-scanners.ts +100 -31
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -369,8 +369,8 @@ export declare namespace ExperimentListResponse {
|
|
|
369
369
|
*/
|
|
370
370
|
name: string;
|
|
371
371
|
/**
|
|
372
|
-
*
|
|
373
|
-
*
|
|
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
|
|
408
|
-
*
|
|
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
|
-
*
|
|
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`.
|
|
419
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
982
|
-
*
|
|
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
|
|
1017
|
-
*
|
|
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
|
-
*
|
|
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`.
|
|
1028
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
1591
|
-
*
|
|
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
|
|
1626
|
-
*
|
|
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
|
-
*
|
|
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`.
|
|
1637
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
2200
|
-
*
|
|
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
|
|
2235
|
-
*
|
|
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
|
-
*
|
|
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`.
|
|
2246
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
2813
|
-
*
|
|
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
|
|
2848
|
-
*
|
|
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
|
-
*
|
|
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`.
|
|
2859
|
-
*
|
|
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
|
-
*
|
|
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
|
/**
|