@oursprivacy/platform-sdk 1.30.0 → 1.31.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 (56) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/client.d.mts +4 -4
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +4 -4
  5. package/client.d.ts.map +1 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs.map +1 -1
  8. package/package.json +1 -1
  9. package/resources/consent-settings.d.mts +46 -0
  10. package/resources/consent-settings.d.mts.map +1 -1
  11. package/resources/consent-settings.d.ts +46 -0
  12. package/resources/consent-settings.d.ts.map +1 -1
  13. package/resources/destinations.d.mts +7 -7
  14. package/resources/destinations.d.mts.map +1 -1
  15. package/resources/destinations.d.ts +7 -7
  16. package/resources/destinations.d.ts.map +1 -1
  17. package/resources/experiments.d.mts +13 -13
  18. package/resources/experiments.d.mts.map +1 -1
  19. package/resources/experiments.d.ts +13 -13
  20. package/resources/experiments.d.ts.map +1 -1
  21. package/resources/experiments.js +3 -3
  22. package/resources/experiments.mjs +3 -3
  23. package/resources/index.d.mts +2 -2
  24. package/resources/index.d.mts.map +1 -1
  25. package/resources/index.d.ts +2 -2
  26. package/resources/index.d.ts.map +1 -1
  27. package/resources/index.js.map +1 -1
  28. package/resources/index.mjs.map +1 -1
  29. package/resources/versions.d.mts +210 -1
  30. package/resources/versions.d.mts.map +1 -1
  31. package/resources/versions.d.ts +210 -1
  32. package/resources/versions.d.ts.map +1 -1
  33. package/resources/versions.js +33 -0
  34. package/resources/versions.js.map +1 -1
  35. package/resources/versions.mjs +33 -0
  36. package/resources/versions.mjs.map +1 -1
  37. package/resources/web-scanners.d.mts +267 -1
  38. package/resources/web-scanners.d.mts.map +1 -1
  39. package/resources/web-scanners.d.ts +267 -1
  40. package/resources/web-scanners.d.ts.map +1 -1
  41. package/resources/web-scanners.js +44 -0
  42. package/resources/web-scanners.js.map +1 -1
  43. package/resources/web-scanners.mjs +44 -0
  44. package/resources/web-scanners.mjs.map +1 -1
  45. package/src/client.ts +18 -0
  46. package/src/resources/consent-settings.ts +54 -0
  47. package/src/resources/destinations.ts +9 -2
  48. package/src/resources/experiments.ts +13 -13
  49. package/src/resources/index.ts +9 -0
  50. package/src/resources/versions.ts +272 -0
  51. package/src/resources/web-scanners.ts +431 -0
  52. package/src/version.ts +1 -1
  53. package/version.d.mts +1 -1
  54. package/version.d.ts +1 -1
  55. package/version.js +1 -1
  56. package/version.mjs +1 -1
@@ -61,6 +61,50 @@ class WebScanners extends resource_1.APIResource {
61
61
  trigger(id, options) {
62
62
  return this._client.post((0, path_1.path) `/rest/v1/web-scanners/${id}/trigger`, options);
63
63
  }
64
+ /**
65
+ * List the third-party trackers (requests) found on a scan run, with their risk,
66
+ * category, the pages they were seen on, and whether each host is already covered
67
+ * by a CMP consent service. Defaults to the latest run; pass `date` (an ISO-8601
68
+ * timestamp; only the calendar day is used to select the run) to read an earlier
69
+ * run. Documented exception to the cursor-pagination standard: paginates with
70
+ * `limit` and `offset` because each run is an immutable snapshot. A host that is
71
+ * neither covered (`coveredByCmp: false`) nor matched by a suppression rule still
72
+ * needs a triage decision — resolve it by adding the host to a CMP consent service
73
+ * or by creating a suppression rule with `POST /rest/v1/web-scanner-rules`. Use
74
+ * `GET /rest/v1/web-scanners/{id}/summary` for the rolled-up counts. Requires
75
+ * scope: webScanner:find
76
+ */
77
+ findings(id, query = {}, options) {
78
+ return this._client.get((0, path_1.path) `/rest/v1/web-scanners/${id}/findings`, { query, ...options });
79
+ }
80
+ /**
81
+ * List the cookies and local-storage entries observed on a scan run. Defaults to
82
+ * the latest run; pass `date` (an ISO-8601 timestamp; only the calendar day is
83
+ * used to select the run) to read an earlier run. Cookies paginate with `limit`
84
+ * and `offset` (a documented exception to the cursor-pagination standard, since
85
+ * each run is an immutable snapshot); local-storage entries are returned in full.
86
+ * Requires scope: webScanner:find
87
+ */
88
+ cookies(id, query = {}, options) {
89
+ return this._client.get((0, path_1.path) `/rest/v1/web-scanners/${id}/cookies`, { query, ...options });
90
+ }
91
+ /**
92
+ * Compliance summary for a scan run — the rolled-up "what does this site look
93
+ * like, and what still needs a decision" view, assembled server-side so you do not
94
+ * have to page every finding. Includes total host/vendor/cookie counts, a
95
+ * breakdown by risk and by category, coverage (how many hosts are already covered
96
+ * by a CMP consent service or a suppression rule vs. how many still need a
97
+ * decision), the new/removed host delta versus the previous run, and up to 10
98
+ * highest-risk hosts that still need a decision. Defaults to the latest run; pass
99
+ * `date` (an ISO-8601 timestamp; only the calendar day is used to select the run)
100
+ * to read an earlier run. Clear a host that needs a decision by adding it to a CMP
101
+ * consent service or creating a suppression rule with
102
+ * `POST /rest/v1/web-scanner-rules`. When the scanner has no completed runs, every
103
+ * count is 0 and `runDate` is null. Requires scope: webScanner:find
104
+ */
105
+ summary(id, query = {}, options) {
106
+ return this._client.get((0, path_1.path) `/rest/v1/web-scanners/${id}/summary`, { query, ...options });
107
+ }
64
108
  }
65
109
  exports.WebScanners = WebScanners;
66
110
  //# sourceMappingURL=web-scanners.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"web-scanners.js","sourceRoot":"","sources":["../src/resources/web-scanners.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAA8C;AAE9C,MAAa,WAAY,SAAQ,sBAAW;IAC1C;;;;OAIG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,uBAAuB,EAAE,OAAO,CAAC,CAAC;IAC5D,CAAC;IAED;;;;;;;;OAQG;IACH,MAAM,CAAC,IAA4B,EAAE,OAAwB;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,uBAAuB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,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C,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,yBAAyB,EAAE,UAAU,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5F,CAAC;CACF;AA7HD,kCA6HC"}
@@ -58,5 +58,49 @@ export class WebScanners extends APIResource {
58
58
  trigger(id, options) {
59
59
  return this._client.post(path `/rest/v1/web-scanners/${id}/trigger`, options);
60
60
  }
61
+ /**
62
+ * List the third-party trackers (requests) found on a scan run, with their risk,
63
+ * category, the pages they were seen on, and whether each host is already covered
64
+ * by a CMP consent service. Defaults to the latest run; pass `date` (an ISO-8601
65
+ * timestamp; only the calendar day is used to select the run) to read an earlier
66
+ * run. Documented exception to the cursor-pagination standard: paginates with
67
+ * `limit` and `offset` because each run is an immutable snapshot. A host that is
68
+ * neither covered (`coveredByCmp: false`) nor matched by a suppression rule still
69
+ * needs a triage decision — resolve it by adding the host to a CMP consent service
70
+ * or by creating a suppression rule with `POST /rest/v1/web-scanner-rules`. Use
71
+ * `GET /rest/v1/web-scanners/{id}/summary` for the rolled-up counts. Requires
72
+ * scope: webScanner:find
73
+ */
74
+ findings(id, query = {}, options) {
75
+ return this._client.get(path `/rest/v1/web-scanners/${id}/findings`, { query, ...options });
76
+ }
77
+ /**
78
+ * List the cookies and local-storage entries observed on a scan run. Defaults to
79
+ * the latest run; pass `date` (an ISO-8601 timestamp; only the calendar day is
80
+ * used to select the run) to read an earlier run. Cookies paginate with `limit`
81
+ * and `offset` (a documented exception to the cursor-pagination standard, since
82
+ * each run is an immutable snapshot); local-storage entries are returned in full.
83
+ * Requires scope: webScanner:find
84
+ */
85
+ cookies(id, query = {}, options) {
86
+ return this._client.get(path `/rest/v1/web-scanners/${id}/cookies`, { query, ...options });
87
+ }
88
+ /**
89
+ * Compliance summary for a scan run — the rolled-up "what does this site look
90
+ * like, and what still needs a decision" view, assembled server-side so you do not
91
+ * have to page every finding. Includes total host/vendor/cookie counts, a
92
+ * breakdown by risk and by category, coverage (how many hosts are already covered
93
+ * by a CMP consent service or a suppression rule vs. how many still need a
94
+ * decision), the new/removed host delta versus the previous run, and up to 10
95
+ * highest-risk hosts that still need a decision. Defaults to the latest run; pass
96
+ * `date` (an ISO-8601 timestamp; only the calendar day is used to select the run)
97
+ * to read an earlier run. Clear a host that needs a decision by adding it to a CMP
98
+ * consent service or creating a suppression rule with
99
+ * `POST /rest/v1/web-scanner-rules`. When the scanner has no completed runs, every
100
+ * count is 0 and `runDate` is null. Requires scope: webScanner:find
101
+ */
102
+ summary(id, query = {}, options) {
103
+ return this._client.get(path `/rest/v1/web-scanners/${id}/summary`, { query, ...options });
104
+ }
61
105
  }
62
106
  //# sourceMappingURL=web-scanners.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"web-scanners.mjs","sourceRoot":"","sources":["../src/resources/web-scanners.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAG/C,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;;;OAIG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,uBAAuB,EAAE,OAAO,CAAC,CAAC;IAC5D,CAAC;IAED;;;;;;;;OAQG;IACH,MAAM,CAAC,IAA4B,EAAE,OAAwB;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,uBAAuB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,yBAAyB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CACJ,EAAU,EACV,IAA4B,EAC5B,OAAwB;QAExB,OAAO,IAAI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  } from './resources/tag-managers';
262
262
  import {
263
+ VersionAbandonResponse,
263
264
  VersionCreateParams,
264
265
  VersionCreateResponse,
265
266
  VersionDiffParams,
@@ -269,6 +270,8 @@ import {
269
270
  VersionListResponsesCursor,
270
271
  VersionPublishResponse,
271
272
  VersionRetrieveResponse,
273
+ VersionRevertParams,
274
+ VersionRevertResponse,
272
275
  VersionSnapshotResponse,
273
276
  VersionUpdateParams,
274
277
  VersionUpdateResponse,
@@ -286,11 +289,17 @@ import {
286
289
  WebScannerRules,
287
290
  } from './resources/web-scanner-rules';
288
291
  import {
292
+ WebScannerCookiesParams,
293
+ WebScannerCookiesResponse,
289
294
  WebScannerCreateParams,
290
295
  WebScannerCreateResponse,
291
296
  WebScannerDeleteResponse,
297
+ WebScannerFindingsParams,
298
+ WebScannerFindingsResponse,
292
299
  WebScannerListResponse,
293
300
  WebScannerRetrieveResponse,
301
+ WebScannerSummaryParams,
302
+ WebScannerSummaryResponse,
294
303
  WebScannerTriggerResponse,
295
304
  WebScannerUpdateParams,
296
305
  WebScannerUpdateResponse,
@@ -1356,11 +1365,14 @@ export declare namespace OursPrivacyPlatform {
1356
1365
  type VersionPublishResponse as VersionPublishResponse,
1357
1366
  type VersionSnapshotResponse as VersionSnapshotResponse,
1358
1367
  type VersionDiffResponse as VersionDiffResponse,
1368
+ type VersionRevertResponse as VersionRevertResponse,
1369
+ type VersionAbandonResponse as VersionAbandonResponse,
1359
1370
  type VersionListResponsesCursor as VersionListResponsesCursor,
1360
1371
  type VersionListParams as VersionListParams,
1361
1372
  type VersionCreateParams as VersionCreateParams,
1362
1373
  type VersionUpdateParams as VersionUpdateParams,
1363
1374
  type VersionDiffParams as VersionDiffParams,
1375
+ type VersionRevertParams as VersionRevertParams,
1364
1376
  };
1365
1377
 
1366
1378
  export {
@@ -1383,7 +1395,13 @@ export declare namespace OursPrivacyPlatform {
1383
1395
  type WebScannerUpdateResponse as WebScannerUpdateResponse,
1384
1396
  type WebScannerDeleteResponse as WebScannerDeleteResponse,
1385
1397
  type WebScannerTriggerResponse as WebScannerTriggerResponse,
1398
+ type WebScannerFindingsResponse as WebScannerFindingsResponse,
1399
+ type WebScannerCookiesResponse as WebScannerCookiesResponse,
1400
+ type WebScannerSummaryResponse as WebScannerSummaryResponse,
1386
1401
  type WebScannerCreateParams as WebScannerCreateParams,
1387
1402
  type WebScannerUpdateParams as WebScannerUpdateParams,
1403
+ type WebScannerFindingsParams as WebScannerFindingsParams,
1404
+ type WebScannerCookiesParams as WebScannerCookiesParams,
1405
+ type WebScannerSummaryParams as WebScannerSummaryParams,
1388
1406
  };
1389
1407
  }
@@ -190,6 +190,13 @@ export namespace ConsentSettingListResponse {
190
190
  */
191
191
  customDomain?: string | null;
192
192
 
193
+ /**
194
+ * Cookie/localStorage key for the visitor (device) ID. Must exactly match the web
195
+ * SDK's cookie_names.device_id (default "ours_device_id") so consent and SDK
196
+ * events resolve to the same visitor.
197
+ */
198
+ deviceIdCookieName?: string | null;
199
+
193
200
  /**
194
201
  * Revision counter. Bump this to force users who already consented to see the
195
202
  * modal again (the SDK compares the persisted revision against this value).
@@ -616,6 +623,13 @@ export interface ConsentSettingCreateResponse {
616
623
  */
617
624
  customDomain?: string | null;
618
625
 
626
+ /**
627
+ * Cookie/localStorage key for the visitor (device) ID. Must exactly match the web
628
+ * SDK's cookie_names.device_id (default "ours_device_id") so consent and SDK
629
+ * events resolve to the same visitor.
630
+ */
631
+ deviceIdCookieName?: string | null;
632
+
619
633
  /**
620
634
  * Revision counter. Bump this to force users who already consented to see the
621
635
  * modal again (the SDK compares the persisted revision against this value).
@@ -1041,6 +1055,13 @@ export interface ConsentSettingRetrieveResponse {
1041
1055
  */
1042
1056
  customDomain?: string | null;
1043
1057
 
1058
+ /**
1059
+ * Cookie/localStorage key for the visitor (device) ID. Must exactly match the web
1060
+ * SDK's cookie_names.device_id (default "ours_device_id") so consent and SDK
1061
+ * events resolve to the same visitor.
1062
+ */
1063
+ deviceIdCookieName?: string | null;
1064
+
1044
1065
  /**
1045
1066
  * Revision counter. Bump this to force users who already consented to see the
1046
1067
  * modal again (the SDK compares the persisted revision against this value).
@@ -1466,6 +1487,13 @@ export interface ConsentSettingReplaceResponse {
1466
1487
  */
1467
1488
  customDomain?: string | null;
1468
1489
 
1490
+ /**
1491
+ * Cookie/localStorage key for the visitor (device) ID. Must exactly match the web
1492
+ * SDK's cookie_names.device_id (default "ours_device_id") so consent and SDK
1493
+ * events resolve to the same visitor.
1494
+ */
1495
+ deviceIdCookieName?: string | null;
1496
+
1469
1497
  /**
1470
1498
  * Revision counter. Bump this to force users who already consented to see the
1471
1499
  * modal again (the SDK compares the persisted revision against this value).
@@ -1891,6 +1919,13 @@ export interface ConsentSettingUpdateResponse {
1891
1919
  */
1892
1920
  customDomain?: string | null;
1893
1921
 
1922
+ /**
1923
+ * Cookie/localStorage key for the visitor (device) ID. Must exactly match the web
1924
+ * SDK's cookie_names.device_id (default "ours_device_id") so consent and SDK
1925
+ * events resolve to the same visitor.
1926
+ */
1927
+ deviceIdCookieName?: string | null;
1928
+
1894
1929
  /**
1895
1930
  * Revision counter. Bump this to force users who already consented to see the
1896
1931
  * modal again (the SDK compares the persisted revision against this value).
@@ -2316,6 +2351,13 @@ export interface ConsentSettingDeleteResponse {
2316
2351
  */
2317
2352
  customDomain?: string | null;
2318
2353
 
2354
+ /**
2355
+ * Cookie/localStorage key for the visitor (device) ID. Must exactly match the web
2356
+ * SDK's cookie_names.device_id (default "ours_device_id") so consent and SDK
2357
+ * events resolve to the same visitor.
2358
+ */
2359
+ deviceIdCookieName?: string | null;
2360
+
2319
2361
  /**
2320
2362
  * Revision counter. Bump this to force users who already consented to see the
2321
2363
  * modal again (the SDK compares the persisted revision against this value).
@@ -2834,6 +2876,12 @@ export interface ConsentSettingReplaceParams {
2834
2876
  */
2835
2877
  customDomain?: string | null;
2836
2878
 
2879
+ /**
2880
+ * Cookie/localStorage key for the visitor (device) ID. Must exactly match the web
2881
+ * SDK's cookie_names.device_id (default "ours_device_id"). Pass null to clear.
2882
+ */
2883
+ deviceIdCookieName?: string | null;
2884
+
2837
2885
  /**
2838
2886
  * Revision counter. Bump to re-prompt users who already consented.
2839
2887
  */
@@ -3211,6 +3259,12 @@ export interface ConsentSettingUpdateParams {
3211
3259
  */
3212
3260
  default?: ConsentSettingUpdateParams.Default;
3213
3261
 
3262
+ /**
3263
+ * Cookie/localStorage key for the visitor (device) ID. Must exactly match the web
3264
+ * SDK's cookie_names.device_id (default "ours_device_id"). Pass null to clear.
3265
+ */
3266
+ deviceIdCookieName?: string | null;
3267
+
3214
3268
  /**
3215
3269
  * Rename the consent settings record.
3216
3270
  */
@@ -131,6 +131,7 @@ export interface DestinationListResponse {
131
131
  | 'LinkedInAdsCAPI'
132
132
  | 'LiveIntent'
133
133
  | 'LiveRampWarehouse'
134
+ | 'MNTN'
134
135
  | 'Mailchimp'
135
136
  | 'Mixpanel'
136
137
  | 'NextdoorAds'
@@ -236,6 +237,7 @@ export interface DestinationCreateResponse {
236
237
  | 'LinkedInAdsCAPI'
237
238
  | 'LiveIntent'
238
239
  | 'LiveRampWarehouse'
240
+ | 'MNTN'
239
241
  | 'Mailchimp'
240
242
  | 'Mixpanel'
241
243
  | 'NextdoorAds'
@@ -341,6 +343,7 @@ export interface DestinationRetrieveResponse {
341
343
  | 'LinkedInAdsCAPI'
342
344
  | 'LiveIntent'
343
345
  | 'LiveRampWarehouse'
346
+ | 'MNTN'
344
347
  | 'Mailchimp'
345
348
  | 'Mixpanel'
346
349
  | 'NextdoorAds'
@@ -446,6 +449,7 @@ export interface DestinationUpdateResponse {
446
449
  | 'LinkedInAdsCAPI'
447
450
  | 'LiveIntent'
448
451
  | 'LiveRampWarehouse'
452
+ | 'MNTN'
449
453
  | 'Mailchimp'
450
454
  | 'Mixpanel'
451
455
  | 'NextdoorAds'
@@ -570,7 +574,8 @@ export namespace DestinationTypesResponse {
570
574
  | 'AdobeAnalytics'
571
575
  | 'UniversalAds'
572
576
  | 'OpenAIAds'
573
- | 'YelpCAPI';
577
+ | 'YelpCAPI'
578
+ | 'MNTN';
574
579
 
575
580
  capabilities: Entity.Capabilities;
576
581
 
@@ -729,6 +734,7 @@ export interface DestinationListParams extends CursorParams {
729
734
  | 'LinkedInAdsCAPI'
730
735
  | 'LiveIntent'
731
736
  | 'LiveRampWarehouse'
737
+ | 'MNTN'
732
738
  | 'Mailchimp'
733
739
  | 'Mixpanel'
734
740
  | 'NextdoorAds'
@@ -841,7 +847,8 @@ export interface DestinationCreateParams {
841
847
  | 'AdobeAnalytics'
842
848
  | 'UniversalAds'
843
849
  | 'OpenAIAds'
844
- | 'YelpCAPI';
850
+ | 'YelpCAPI'
851
+ | 'MNTN';
845
852
 
846
853
  name?: string | null;
847
854
 
@@ -61,9 +61,9 @@ export class Experiments extends APIResource {
61
61
 
62
62
  /**
63
63
  * Partially update an experiment. Only the fields you send are changed. Edits are
64
- * only accepted while the experiment is in `draft` status — running, paused, and
65
- * completed experiments return 409 with
66
- * `Experiment can only be edited in draft status`. Use the lifecycle endpoints
64
+ * allowed on draft, running, and paused experiments and are recorded in the change
65
+ * log. Only completed experiments return 409 with
66
+ * `A completed experiment can no longer be edited`. Use the lifecycle endpoints
67
67
  * (`/start`, `/pause`, `/resume`, `/stop`) to change status. Requires scope:
68
68
  * experiment:update
69
69
  *
@@ -407,7 +407,7 @@ export namespace ExperimentListResponse {
407
407
  /**
408
408
  * Comparison operator applied to the query string value.
409
409
  */
410
- operator: 'contains' | 'equals' | 'exists' | 'not_equals' | 'not_exists';
410
+ operator: 'contains' | 'equals' | 'exists' | 'not_equals' | 'not_exists' | 'regex';
411
411
 
412
412
  /**
413
413
  * Comparison value used by operators that require one. Omit for `exists` and
@@ -705,7 +705,7 @@ export namespace ExperimentCreateResponse {
705
705
  /**
706
706
  * Comparison operator applied to the query string value.
707
707
  */
708
- operator: 'contains' | 'equals' | 'exists' | 'not_equals' | 'not_exists';
708
+ operator: 'contains' | 'equals' | 'exists' | 'not_equals' | 'not_exists' | 'regex';
709
709
 
710
710
  /**
711
711
  * Comparison value used by operators that require one. Omit for `exists` and
@@ -1003,7 +1003,7 @@ export namespace ExperimentRetrieveResponse {
1003
1003
  /**
1004
1004
  * Comparison operator applied to the query string value.
1005
1005
  */
1006
- operator: 'contains' | 'equals' | 'exists' | 'not_equals' | 'not_exists';
1006
+ operator: 'contains' | 'equals' | 'exists' | 'not_equals' | 'not_exists' | 'regex';
1007
1007
 
1008
1008
  /**
1009
1009
  * Comparison value used by operators that require one. Omit for `exists` and
@@ -1186,7 +1186,7 @@ export namespace ExperimentUpdateResponse {
1186
1186
  /**
1187
1187
  * Comparison operator applied to the query string value.
1188
1188
  */
1189
- operator: 'contains' | 'equals' | 'exists' | 'not_equals' | 'not_exists';
1189
+ operator: 'contains' | 'equals' | 'exists' | 'not_equals' | 'not_exists' | 'regex';
1190
1190
 
1191
1191
  /**
1192
1192
  * Comparison value used by operators that require one. Omit for `exists` and
@@ -1392,7 +1392,7 @@ export namespace ExperimentStartResponse {
1392
1392
  /**
1393
1393
  * Comparison operator applied to the query string value.
1394
1394
  */
1395
- operator: 'contains' | 'equals' | 'exists' | 'not_equals' | 'not_exists';
1395
+ operator: 'contains' | 'equals' | 'exists' | 'not_equals' | 'not_exists' | 'regex';
1396
1396
 
1397
1397
  /**
1398
1398
  * Comparison value used by operators that require one. Omit for `exists` and
@@ -1594,7 +1594,7 @@ export namespace ExperimentStopResponse {
1594
1594
  /**
1595
1595
  * Comparison operator applied to the query string value.
1596
1596
  */
1597
- operator: 'contains' | 'equals' | 'exists' | 'not_equals' | 'not_exists';
1597
+ operator: 'contains' | 'equals' | 'exists' | 'not_equals' | 'not_exists' | 'regex';
1598
1598
 
1599
1599
  /**
1600
1600
  * Comparison value used by operators that require one. Omit for `exists` and
@@ -1796,7 +1796,7 @@ export namespace ExperimentPauseResponse {
1796
1796
  /**
1797
1797
  * Comparison operator applied to the query string value.
1798
1798
  */
1799
- operator: 'contains' | 'equals' | 'exists' | 'not_equals' | 'not_exists';
1799
+ operator: 'contains' | 'equals' | 'exists' | 'not_equals' | 'not_exists' | 'regex';
1800
1800
 
1801
1801
  /**
1802
1802
  * Comparison value used by operators that require one. Omit for `exists` and
@@ -1998,7 +1998,7 @@ export namespace ExperimentResumeResponse {
1998
1998
  /**
1999
1999
  * Comparison operator applied to the query string value.
2000
2000
  */
2001
- operator: 'contains' | 'equals' | 'exists' | 'not_equals' | 'not_exists';
2001
+ operator: 'contains' | 'equals' | 'exists' | 'not_equals' | 'not_exists' | 'regex';
2002
2002
 
2003
2003
  /**
2004
2004
  * Comparison value used by operators that require one. Omit for `exists` and
@@ -2338,7 +2338,7 @@ export namespace ExperimentCreateParams {
2338
2338
  /**
2339
2339
  * Comparison operator applied to the query string value.
2340
2340
  */
2341
- operator: 'contains' | 'equals' | 'exists' | 'not_equals' | 'not_exists';
2341
+ operator: 'contains' | 'equals' | 'exists' | 'not_equals' | 'not_exists' | 'regex';
2342
2342
 
2343
2343
  /**
2344
2344
  * Comparison value used by operators that require one. Omit for `exists` and
@@ -2490,7 +2490,7 @@ export namespace ExperimentUpdateParams {
2490
2490
  /**
2491
2491
  * Comparison operator applied to the query string value.
2492
2492
  */
2493
- operator: 'contains' | 'equals' | 'exists' | 'not_equals' | 'not_exists';
2493
+ operator: 'contains' | 'equals' | 'exists' | 'not_equals' | 'not_exists' | 'regex';
2494
2494
 
2495
2495
  /**
2496
2496
  * Comparison value used by operators that require one. Omit for `exists` and
@@ -249,10 +249,13 @@ export {
249
249
  type VersionPublishResponse,
250
250
  type VersionSnapshotResponse,
251
251
  type VersionDiffResponse,
252
+ type VersionRevertResponse,
253
+ type VersionAbandonResponse,
252
254
  type VersionListParams,
253
255
  type VersionCreateParams,
254
256
  type VersionUpdateParams,
255
257
  type VersionDiffParams,
258
+ type VersionRevertParams,
256
259
  type VersionListResponsesCursor,
257
260
  } from './versions';
258
261
  export {
@@ -274,6 +277,12 @@ export {
274
277
  type WebScannerUpdateResponse,
275
278
  type WebScannerDeleteResponse,
276
279
  type WebScannerTriggerResponse,
280
+ type WebScannerFindingsResponse,
281
+ type WebScannerCookiesResponse,
282
+ type WebScannerSummaryResponse,
277
283
  type WebScannerCreateParams,
278
284
  type WebScannerUpdateParams,
285
+ type WebScannerFindingsParams,
286
+ type WebScannerCookiesParams,
287
+ type WebScannerSummaryParams,
279
288
  } from './web-scanners';