@oursprivacy/platform-sdk 1.42.1 → 1.43.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 (82) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/client.d.mts +6 -0
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +6 -0
  5. package/client.d.ts.map +1 -1
  6. package/client.js +7 -1
  7. package/client.js.map +1 -1
  8. package/client.mjs +7 -1
  9. package/client.mjs.map +1 -1
  10. package/core/pagination.d.mts.map +1 -1
  11. package/core/pagination.d.ts.map +1 -1
  12. package/internal/detect-platform.d.mts.map +1 -1
  13. package/internal/detect-platform.d.ts.map +1 -1
  14. package/internal/detect-platform.js +1 -1
  15. package/internal/detect-platform.js.map +1 -1
  16. package/internal/detect-platform.mjs +1 -1
  17. package/internal/detect-platform.mjs.map +1 -1
  18. package/internal/to-file.d.mts.map +1 -1
  19. package/internal/to-file.d.ts.map +1 -1
  20. package/internal/to-file.js.map +1 -1
  21. package/internal/to-file.mjs.map +1 -1
  22. package/package.json +1 -1
  23. package/resources/conversion-journey-summaries.d.mts +169 -0
  24. package/resources/conversion-journey-summaries.d.mts.map +1 -0
  25. package/resources/conversion-journey-summaries.d.ts +169 -0
  26. package/resources/conversion-journey-summaries.d.ts.map +1 -0
  27. package/resources/conversion-journey-summaries.js +51 -0
  28. package/resources/conversion-journey-summaries.js.map +1 -0
  29. package/resources/conversion-journey-summaries.mjs +47 -0
  30. package/resources/conversion-journey-summaries.mjs.map +1 -0
  31. package/resources/destinations.d.mts +18 -17
  32. package/resources/destinations.d.mts.map +1 -1
  33. package/resources/destinations.d.ts +18 -17
  34. package/resources/destinations.d.ts.map +1 -1
  35. package/resources/funnels.d.mts +33 -16
  36. package/resources/funnels.d.mts.map +1 -1
  37. package/resources/funnels.d.ts +33 -16
  38. package/resources/funnels.d.ts.map +1 -1
  39. package/resources/funnels.js +8 -6
  40. package/resources/funnels.js.map +1 -1
  41. package/resources/funnels.mjs +8 -6
  42. package/resources/funnels.mjs.map +1 -1
  43. package/resources/index.d.mts +2 -0
  44. package/resources/index.d.mts.map +1 -1
  45. package/resources/index.d.ts +2 -0
  46. package/resources/index.d.ts.map +1 -1
  47. package/resources/index.js +5 -1
  48. package/resources/index.js.map +1 -1
  49. package/resources/index.mjs +2 -0
  50. package/resources/index.mjs.map +1 -1
  51. package/resources/versions.d.mts +40 -0
  52. package/resources/versions.d.mts.map +1 -1
  53. package/resources/versions.d.ts +40 -0
  54. package/resources/versions.d.ts.map +1 -1
  55. package/resources/videos.d.mts +251 -0
  56. package/resources/videos.d.mts.map +1 -0
  57. package/resources/videos.d.ts +251 -0
  58. package/resources/videos.d.ts.map +1 -0
  59. package/resources/videos.js +81 -0
  60. package/resources/videos.js.map +1 -0
  61. package/resources/videos.mjs +77 -0
  62. package/resources/videos.mjs.map +1 -0
  63. package/resources/web-scanners.d.mts +43 -0
  64. package/resources/web-scanners.d.mts.map +1 -1
  65. package/resources/web-scanners.d.ts +43 -0
  66. package/resources/web-scanners.d.ts.map +1 -1
  67. package/src/client.ts +69 -1
  68. package/src/core/pagination.ts +3 -3
  69. package/src/internal/detect-platform.ts +2 -10
  70. package/src/internal/to-file.ts +1 -4
  71. package/src/resources/conversion-journey-summaries.ts +384 -0
  72. package/src/resources/destinations.ts +45 -12
  73. package/src/resources/funnels.ts +34 -16
  74. package/src/resources/index.ts +31 -0
  75. package/src/resources/versions.ts +50 -0
  76. package/src/resources/videos.ts +418 -0
  77. package/src/resources/web-scanners.ts +62 -0
  78. package/src/version.ts +1 -1
  79. package/version.d.mts +1 -1
  80. package/version.d.ts +1 -1
  81. package/version.js +1 -1
  82. package/version.mjs +1 -1
@@ -168,6 +168,8 @@ export namespace WebScannerListResponse {
168
168
 
169
169
  name?: string | null;
170
170
 
171
+ nextScheduledScanAt?: string | null;
172
+
171
173
  updatedAt?: string | null;
172
174
 
173
175
  urlLimit?: number | null;
@@ -181,6 +183,8 @@ export interface WebScannerCreateResponse {
181
183
 
182
184
  rootDomain: string;
183
185
 
186
+ scanSchedule: 'daily' | 'manual' | 'monthly' | 'weekly';
187
+
184
188
  scanStatus: 'idle' | 'scanning';
185
189
 
186
190
  status: 'Disabled' | 'Enabled';
@@ -205,6 +209,8 @@ export interface WebScannerCreateResponse {
205
209
 
206
210
  name?: string | null;
207
211
 
212
+ nextScheduledScanAt?: string | null;
213
+
208
214
  updatedAt?: string | null;
209
215
 
210
216
  urlLimit?: number | null;
@@ -217,6 +223,8 @@ export interface WebScannerRetrieveResponse {
217
223
 
218
224
  rootDomain: string;
219
225
 
226
+ scanSchedule: 'daily' | 'manual' | 'monthly' | 'weekly';
227
+
220
228
  scanStatus: 'idle' | 'scanning';
221
229
 
222
230
  status: 'Disabled' | 'Enabled';
@@ -241,6 +249,8 @@ export interface WebScannerRetrieveResponse {
241
249
 
242
250
  name?: string | null;
243
251
 
252
+ nextScheduledScanAt?: string | null;
253
+
244
254
  updatedAt?: string | null;
245
255
 
246
256
  urlLimit?: number | null;
@@ -253,6 +263,8 @@ export interface WebScannerUpdateResponse {
253
263
 
254
264
  rootDomain: string;
255
265
 
266
+ scanSchedule: 'daily' | 'manual' | 'monthly' | 'weekly';
267
+
256
268
  scanStatus: 'idle' | 'scanning';
257
269
 
258
270
  status: 'Disabled' | 'Enabled';
@@ -277,6 +289,8 @@ export interface WebScannerUpdateResponse {
277
289
 
278
290
  name?: string | null;
279
291
 
292
+ nextScheduledScanAt?: string | null;
293
+
280
294
  updatedAt?: string | null;
281
295
 
282
296
  urlLimit?: number | null;
@@ -301,6 +315,8 @@ export interface WebScannerTriggerResponse {
301
315
 
302
316
  rootDomain: string;
303
317
 
318
+ scanSchedule: 'daily' | 'manual' | 'monthly' | 'weekly';
319
+
304
320
  scanStatus: 'idle' | 'scanning';
305
321
 
306
322
  status: 'Disabled' | 'Enabled';
@@ -325,6 +341,8 @@ export interface WebScannerTriggerResponse {
325
341
 
326
342
  name?: string | null;
327
343
 
344
+ nextScheduledScanAt?: string | null;
345
+
328
346
  updatedAt?: string | null;
329
347
 
330
348
  urlLimit?: number | null;
@@ -461,6 +479,20 @@ export interface WebScannerSummaryResponse {
461
479
 
462
480
  localStorageCount: number;
463
481
 
482
+ /**
483
+ * Distinct privacy policies captured for first-party hostnames in the selected
484
+ * scan run, including the bounded visible policy text.
485
+ */
486
+ privacyPolicies: Array<WebScannerSummaryResponse.PrivacyPolicy>;
487
+
488
+ privacyPolicyCount: number;
489
+
490
+ /**
491
+ * Every successfully crawled first-party hostname and its captured privacy policy
492
+ * URL. A null privacyPolicyUrl means no policy was captured for that hostname.
493
+ */
494
+ privacyPolicyHosts: Array<WebScannerSummaryResponse.PrivacyPolicyHost>;
495
+
464
496
  rootDomain: string;
465
497
 
466
498
  scannerId: string;
@@ -521,6 +553,20 @@ export namespace WebScannerSummaryResponse {
521
553
  totalHostCount: number;
522
554
  }
523
555
 
556
+ export interface PrivacyPolicy {
557
+ hostnames: Array<string>;
558
+
559
+ text: string;
560
+
561
+ url: string;
562
+ }
563
+
564
+ export interface PrivacyPolicyHost {
565
+ hostname: string;
566
+
567
+ privacyPolicyUrl?: string | null;
568
+ }
569
+
524
570
  export interface TopUncoveredHost {
525
571
  coveredByCmp: boolean;
526
572
 
@@ -672,6 +718,14 @@ export interface WebScannerCreateParams {
672
718
 
673
719
  name?: string | null;
674
720
 
721
+ /**
722
+ * How often the scanner crawls this monitor on its own: `daily`, `weekly`,
723
+ * `monthly`, or `manual` to disable scheduled crawls and only run on demand.
724
+ * Defaults to `weekly`. Cadences advance on UTC calendar days from the last
725
+ * completed scan.
726
+ */
727
+ scanSchedule?: 'daily' | 'manual' | 'monthly' | 'weekly';
728
+
675
729
  status?: 'Disabled' | 'Enabled';
676
730
 
677
731
  /**
@@ -693,6 +747,14 @@ export interface WebScannerUpdateParams {
693
747
  */
694
748
  rootDomain?: string | null;
695
749
 
750
+ /**
751
+ * How often the scanner crawls this monitor on its own: `daily`, `weekly`,
752
+ * `monthly`, or `manual` to disable scheduled crawls and only run on demand.
753
+ * Defaults to `weekly`. Cadences advance on UTC calendar days from the last
754
+ * completed scan. Omit to leave the current cadence unchanged.
755
+ */
756
+ scanSchedule?: 'daily' | 'manual' | 'monthly' | 'weekly';
757
+
696
758
  status?: 'Disabled' | 'Enabled';
697
759
 
698
760
  urlLimit?: number | null;
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '1.42.1'; // x-release-please-version
1
+ export const VERSION = '1.43.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "1.42.1";
1
+ export declare const VERSION = "1.43.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "1.42.1";
1
+ export declare const VERSION = "1.43.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '1.42.1'; // x-release-please-version
4
+ exports.VERSION = '1.43.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '1.42.1'; // x-release-please-version
1
+ export const VERSION = '1.43.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map