@oursprivacy/platform-sdk 1.50.0 → 1.51.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 (104) 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 +1 -1
  11. package/resources/analytics.d.mts +2 -2
  12. package/resources/analytics.d.ts +2 -2
  13. package/resources/analytics.js +2 -2
  14. package/resources/analytics.mjs +2 -2
  15. package/resources/destinations.d.mts +7 -7
  16. package/resources/destinations.d.mts.map +1 -1
  17. package/resources/destinations.d.ts +7 -7
  18. package/resources/destinations.d.ts.map +1 -1
  19. package/resources/experiments.d.mts +661 -35
  20. package/resources/experiments.d.mts.map +1 -1
  21. package/resources/experiments.d.ts +661 -35
  22. package/resources/experiments.d.ts.map +1 -1
  23. package/resources/experiments.js +27 -19
  24. package/resources/experiments.js.map +1 -1
  25. package/resources/experiments.mjs +27 -19
  26. package/resources/experiments.mjs.map +1 -1
  27. package/resources/index.d.mts +4 -2
  28. package/resources/index.d.mts.map +1 -1
  29. package/resources/index.d.ts +4 -2
  30. package/resources/index.d.ts.map +1 -1
  31. package/resources/index.js +5 -1
  32. package/resources/index.js.map +1 -1
  33. package/resources/index.mjs +2 -0
  34. package/resources/index.mjs.map +1 -1
  35. package/resources/journey-flows.d.mts +4155 -0
  36. package/resources/journey-flows.d.mts.map +1 -0
  37. package/resources/journey-flows.d.ts +4155 -0
  38. package/resources/journey-flows.d.ts.map +1 -0
  39. package/resources/journey-flows.js +90 -0
  40. package/resources/journey-flows.js.map +1 -0
  41. package/resources/journey-flows.mjs +86 -0
  42. package/resources/journey-flows.mjs.map +1 -0
  43. package/resources/short-links.d.mts +40 -0
  44. package/resources/short-links.d.mts.map +1 -1
  45. package/resources/short-links.d.ts +40 -0
  46. package/resources/short-links.d.ts.map +1 -1
  47. package/resources/sources.d.mts +20 -0
  48. package/resources/sources.d.mts.map +1 -1
  49. package/resources/sources.d.ts +20 -0
  50. package/resources/sources.d.ts.map +1 -1
  51. package/resources/test-events.d.mts +203 -0
  52. package/resources/test-events.d.mts.map +1 -0
  53. package/resources/test-events.d.ts +203 -0
  54. package/resources/test-events.d.ts.map +1 -0
  55. package/resources/test-events.js +87 -0
  56. package/resources/test-events.js.map +1 -0
  57. package/resources/test-events.mjs +83 -0
  58. package/resources/test-events.mjs.map +1 -0
  59. package/resources/video-channels.d.mts +13 -0
  60. package/resources/video-channels.d.mts.map +1 -1
  61. package/resources/video-channels.d.ts +13 -0
  62. package/resources/video-channels.d.ts.map +1 -1
  63. package/resources/videos.d.mts +160 -2
  64. package/resources/videos.d.mts.map +1 -1
  65. package/resources/videos.d.ts +160 -2
  66. package/resources/videos.d.ts.map +1 -1
  67. package/resources/videos.js +32 -2
  68. package/resources/videos.js.map +1 -1
  69. package/resources/videos.mjs +32 -2
  70. package/resources/videos.mjs.map +1 -1
  71. package/resources/web-analytics.d.mts +9 -9
  72. package/resources/web-analytics.d.mts.map +1 -1
  73. package/resources/web-analytics.d.ts +9 -9
  74. package/resources/web-analytics.d.ts.map +1 -1
  75. package/resources/web-analytics.js +2 -2
  76. package/resources/web-analytics.js.map +1 -1
  77. package/resources/web-analytics.mjs +2 -2
  78. package/resources/web-analytics.mjs.map +1 -1
  79. package/resources/web-scanners.d.mts +28 -17
  80. package/resources/web-scanners.d.mts.map +1 -1
  81. package/resources/web-scanners.d.ts +28 -17
  82. package/resources/web-scanners.d.ts.map +1 -1
  83. package/resources/web-scanners.js +19 -14
  84. package/resources/web-scanners.js.map +1 -1
  85. package/resources/web-scanners.mjs +19 -14
  86. package/resources/web-scanners.mjs.map +1 -1
  87. package/src/client.ts +80 -4
  88. package/src/resources/analytics.ts +2 -2
  89. package/src/resources/destinations.ts +7 -0
  90. package/src/resources/experiments.ts +808 -35
  91. package/src/resources/index.ts +37 -2
  92. package/src/resources/journey-flows.ts +8244 -0
  93. package/src/resources/short-links.ts +47 -0
  94. package/src/resources/sources.ts +24 -0
  95. package/src/resources/test-events.ts +286 -0
  96. package/src/resources/video-channels.ts +22 -0
  97. package/src/resources/videos.ts +279 -2
  98. package/src/resources/web-analytics.ts +13 -13
  99. package/src/resources/web-scanners.ts +28 -17
  100. package/src/version.ts +1 -1
  101. package/version.d.mts +1 -1
  102. package/version.d.ts +1 -1
  103. package/version.js +1 -1
  104. package/version.mjs +1 -1
@@ -109,8 +109,12 @@ export class Videos extends APIResource {
109
109
  * const response = await client.videos.transcript('id');
110
110
  * ```
111
111
  */
112
- transcript(id: string, options?: RequestOptions): APIPromise<VideoTranscriptResponse> {
113
- return this._client.get(path`/rest/v1/videos/${id}/transcript`, options);
112
+ transcript(
113
+ id: string,
114
+ query: VideoTranscriptParams | null | undefined = {},
115
+ options?: RequestOptions,
116
+ ): APIPromise<VideoTranscriptResponse> {
117
+ return this._client.get(path`/rest/v1/videos/${id}/transcript`, { query, ...options });
114
118
  }
115
119
 
116
120
  /**
@@ -134,6 +138,46 @@ export class Videos extends APIResource {
134
138
  return this._client.put(path`/rest/v1/videos/${id}/transcript`, { body, ...options });
135
139
  }
136
140
 
141
+ /**
142
+ * Queue a target-language caption translation. Specify replace to explicitly
143
+ * overwrite a track. Requires scope: media:update
144
+ *
145
+ * @example
146
+ * ```ts
147
+ * const response =
148
+ * await client.videos.requestCaptionTranslation('id', {
149
+ * languageCode: 'languageCode',
150
+ * });
151
+ * ```
152
+ */
153
+ requestCaptionTranslation(
154
+ id: string,
155
+ body: VideoRequestCaptionTranslationParams,
156
+ options?: RequestOptions,
157
+ ): APIPromise<VideoRequestCaptionTranslationResponse> {
158
+ return this._client.post(path`/rest/v1/videos/${id}/translate`, { body, ...options });
159
+ }
160
+
161
+ /**
162
+ * Cancel a queued or in-progress language translation without modifying other
163
+ * tracks. Requires scope: media:update
164
+ *
165
+ * @example
166
+ * ```ts
167
+ * const response =
168
+ * await client.videos.cancelCaptionTranslation('id', {
169
+ * languageCode: 'languageCode',
170
+ * });
171
+ * ```
172
+ */
173
+ cancelCaptionTranslation(
174
+ id: string,
175
+ body: VideoCancelCaptionTranslationParams,
176
+ options?: RequestOptions,
177
+ ): APIPromise<VideoCancelCaptionTranslationResponse> {
178
+ return this._client.post(path`/rest/v1/videos/${id}/cancel-translation`, { body, ...options });
179
+ }
180
+
137
181
  /**
138
182
  * Return per-video starts, unique viewers, completion rate, and average watch time
139
183
  * for a date window. Optionally filter to one video with `videoId`; omit it to
@@ -182,6 +226,8 @@ export interface VideoListResponse {
182
226
 
183
227
  accountId: string;
184
228
 
229
+ captionTracks: Array<VideoListResponse.CaptionTrack>;
230
+
185
231
  createdAt: string;
186
232
 
187
233
  type: 'Video';
@@ -200,16 +246,38 @@ export interface VideoListResponse {
200
246
 
201
247
  name?: string | null;
202
248
 
249
+ sourceLanguageCode?: string | null;
250
+
203
251
  updatedAt?: string | null;
204
252
 
205
253
  width?: number | null;
206
254
  }
207
255
 
256
+ export namespace VideoListResponse {
257
+ export interface CaptionTrack {
258
+ isMachineTranslated: boolean;
259
+
260
+ label: string;
261
+
262
+ languageCode: string;
263
+
264
+ origin: string;
265
+
266
+ status: string;
267
+
268
+ url: string;
269
+
270
+ humanEditedAt?: string | null;
271
+ }
272
+ }
273
+
208
274
  export interface VideoCreateResponse {
209
275
  id: string;
210
276
 
211
277
  accountId: string;
212
278
 
279
+ captionTracks: Array<VideoCreateResponse.CaptionTrack>;
280
+
213
281
  createdAt: string;
214
282
 
215
283
  type: 'Video';
@@ -230,12 +298,30 @@ export interface VideoCreateResponse {
230
298
 
231
299
  name?: string | null;
232
300
 
301
+ sourceLanguageCode?: string | null;
302
+
233
303
  updatedAt?: string | null;
234
304
 
235
305
  width?: number | null;
236
306
  }
237
307
 
238
308
  export namespace VideoCreateResponse {
309
+ export interface CaptionTrack {
310
+ isMachineTranslated: boolean;
311
+
312
+ label: string;
313
+
314
+ languageCode: string;
315
+
316
+ origin: string;
317
+
318
+ status: string;
319
+
320
+ url: string;
321
+
322
+ humanEditedAt?: string | null;
323
+ }
324
+
239
325
  export interface Upload {
240
326
  mimeType: 'MP4' | 'WEBM';
241
327
 
@@ -248,6 +334,8 @@ export interface VideoRetrieveResponse {
248
334
 
249
335
  accountId: string;
250
336
 
337
+ captionTracks: Array<VideoRetrieveResponse.CaptionTrack>;
338
+
251
339
  createdAt: string;
252
340
 
253
341
  type: 'Video';
@@ -268,16 +356,38 @@ export interface VideoRetrieveResponse {
268
356
 
269
357
  resolvedValues?: unknown | null;
270
358
 
359
+ sourceLanguageCode?: string | null;
360
+
271
361
  updatedAt?: string | null;
272
362
 
273
363
  width?: number | null;
274
364
  }
275
365
 
366
+ export namespace VideoRetrieveResponse {
367
+ export interface CaptionTrack {
368
+ isMachineTranslated: boolean;
369
+
370
+ label: string;
371
+
372
+ languageCode: string;
373
+
374
+ origin: string;
375
+
376
+ status: string;
377
+
378
+ url: string;
379
+
380
+ humanEditedAt?: string | null;
381
+ }
382
+ }
383
+
276
384
  export interface VideoUpdateResponse {
277
385
  id: string;
278
386
 
279
387
  accountId: string;
280
388
 
389
+ captionTracks: Array<VideoUpdateResponse.CaptionTrack>;
390
+
281
391
  createdAt: string;
282
392
 
283
393
  type: 'Video';
@@ -296,11 +406,31 @@ export interface VideoUpdateResponse {
296
406
 
297
407
  name?: string | null;
298
408
 
409
+ sourceLanguageCode?: string | null;
410
+
299
411
  updatedAt?: string | null;
300
412
 
301
413
  width?: number | null;
302
414
  }
303
415
 
416
+ export namespace VideoUpdateResponse {
417
+ export interface CaptionTrack {
418
+ isMachineTranslated: boolean;
419
+
420
+ label: string;
421
+
422
+ languageCode: string;
423
+
424
+ origin: string;
425
+
426
+ status: string;
427
+
428
+ url: string;
429
+
430
+ humanEditedAt?: string | null;
431
+ }
432
+ }
433
+
304
434
  export interface VideoDeleteResponse {
305
435
  id: string;
306
436
 
@@ -322,6 +452,8 @@ export interface VideoUpdateTranscriptResponse {
322
452
 
323
453
  accountId: string;
324
454
 
455
+ captionTracks: Array<VideoUpdateTranscriptResponse.CaptionTrack>;
456
+
325
457
  createdAt: string;
326
458
 
327
459
  type: 'Video';
@@ -340,11 +472,131 @@ export interface VideoUpdateTranscriptResponse {
340
472
 
341
473
  name?: string | null;
342
474
 
475
+ sourceLanguageCode?: string | null;
476
+
343
477
  updatedAt?: string | null;
344
478
 
345
479
  width?: number | null;
346
480
  }
347
481
 
482
+ export namespace VideoUpdateTranscriptResponse {
483
+ export interface CaptionTrack {
484
+ isMachineTranslated: boolean;
485
+
486
+ label: string;
487
+
488
+ languageCode: string;
489
+
490
+ origin: string;
491
+
492
+ status: string;
493
+
494
+ url: string;
495
+
496
+ humanEditedAt?: string | null;
497
+ }
498
+ }
499
+
500
+ export interface VideoRequestCaptionTranslationResponse {
501
+ id: string;
502
+
503
+ accountId: string;
504
+
505
+ captionTracks: Array<VideoRequestCaptionTranslationResponse.CaptionTrack>;
506
+
507
+ createdAt: string;
508
+
509
+ type: 'Video';
510
+
511
+ captionsUpdatedAt?: string | null;
512
+
513
+ captionsUpdatedByName?: string | null;
514
+
515
+ description?: string | null;
516
+
517
+ duration?: number | null;
518
+
519
+ hasVideoUpload?: boolean | null;
520
+
521
+ height?: number | null;
522
+
523
+ name?: string | null;
524
+
525
+ sourceLanguageCode?: string | null;
526
+
527
+ updatedAt?: string | null;
528
+
529
+ width?: number | null;
530
+ }
531
+
532
+ export namespace VideoRequestCaptionTranslationResponse {
533
+ export interface CaptionTrack {
534
+ isMachineTranslated: boolean;
535
+
536
+ label: string;
537
+
538
+ languageCode: string;
539
+
540
+ origin: string;
541
+
542
+ status: string;
543
+
544
+ url: string;
545
+
546
+ humanEditedAt?: string | null;
547
+ }
548
+ }
549
+
550
+ export interface VideoCancelCaptionTranslationResponse {
551
+ id: string;
552
+
553
+ accountId: string;
554
+
555
+ captionTracks: Array<VideoCancelCaptionTranslationResponse.CaptionTrack>;
556
+
557
+ createdAt: string;
558
+
559
+ type: 'Video';
560
+
561
+ captionsUpdatedAt?: string | null;
562
+
563
+ captionsUpdatedByName?: string | null;
564
+
565
+ description?: string | null;
566
+
567
+ duration?: number | null;
568
+
569
+ hasVideoUpload?: boolean | null;
570
+
571
+ height?: number | null;
572
+
573
+ name?: string | null;
574
+
575
+ sourceLanguageCode?: string | null;
576
+
577
+ updatedAt?: string | null;
578
+
579
+ width?: number | null;
580
+ }
581
+
582
+ export namespace VideoCancelCaptionTranslationResponse {
583
+ export interface CaptionTrack {
584
+ isMachineTranslated: boolean;
585
+
586
+ label: string;
587
+
588
+ languageCode: string;
589
+
590
+ origin: string;
591
+
592
+ status: string;
593
+
594
+ url: string;
595
+
596
+ humanEditedAt?: string | null;
597
+ }
598
+ }
599
+
348
600
  export interface VideoAnalyticsResponse {
349
601
  hasMore: boolean;
350
602
 
@@ -410,6 +662,8 @@ export interface VideoCreateParams {
410
662
  * Video title. Defaults to `New Video` when omitted.
411
663
  */
412
664
  name?: string | null;
665
+
666
+ sourceLanguageCode?: string | null;
413
667
  }
414
668
 
415
669
  export interface VideoUpdateParams {
@@ -431,6 +685,12 @@ export interface VideoUploadParams {
431
685
  * Content type for the replacement original video: `MP4` or `WEBM`.
432
686
  */
433
687
  mimeType: 'MP4' | 'WEBM';
688
+
689
+ sourceLanguageCode?: string;
690
+ }
691
+
692
+ export interface VideoTranscriptParams {
693
+ languageCode?: string;
434
694
  }
435
695
 
436
696
  export interface VideoUpdateTranscriptParams {
@@ -444,6 +704,18 @@ export interface VideoUpdateTranscriptParams {
444
704
  * saved.
445
705
  */
446
706
  format: 'SRT' | 'VTT';
707
+
708
+ languageCode?: string | null;
709
+ }
710
+
711
+ export interface VideoRequestCaptionTranslationParams {
712
+ languageCode: string;
713
+
714
+ replace?: boolean | null;
715
+ }
716
+
717
+ export interface VideoCancelCaptionTranslationParams {
718
+ languageCode: string;
447
719
  }
448
720
 
449
721
  export interface VideoAnalyticsParams {
@@ -501,6 +773,8 @@ export declare namespace Videos {
501
773
  type VideoUploadResponse as VideoUploadResponse,
502
774
  type VideoTranscriptResponse as VideoTranscriptResponse,
503
775
  type VideoUpdateTranscriptResponse as VideoUpdateTranscriptResponse,
776
+ type VideoRequestCaptionTranslationResponse as VideoRequestCaptionTranslationResponse,
777
+ type VideoCancelCaptionTranslationResponse as VideoCancelCaptionTranslationResponse,
504
778
  type VideoAnalyticsResponse as VideoAnalyticsResponse,
505
779
  type VideoAnalyticsTimeseriesResponse as VideoAnalyticsTimeseriesResponse,
506
780
  type VideoListResponsesCursor as VideoListResponsesCursor,
@@ -508,7 +782,10 @@ export declare namespace Videos {
508
782
  type VideoCreateParams as VideoCreateParams,
509
783
  type VideoUpdateParams as VideoUpdateParams,
510
784
  type VideoUploadParams as VideoUploadParams,
785
+ type VideoTranscriptParams as VideoTranscriptParams,
511
786
  type VideoUpdateTranscriptParams as VideoUpdateTranscriptParams,
787
+ type VideoRequestCaptionTranslationParams as VideoRequestCaptionTranslationParams,
788
+ type VideoCancelCaptionTranslationParams as VideoCancelCaptionTranslationParams,
512
789
  type VideoAnalyticsParams as VideoAnalyticsParams,
513
790
  type VideoAnalyticsTimeseriesParams as VideoAnalyticsTimeseriesParams,
514
791
  };
@@ -75,11 +75,11 @@ export class WebAnalytics extends APIResource {
75
75
  * `filters` query parameters are JSON-encoded arrays. Requires scope:
76
76
  * web-analytics:view
77
77
  */
78
- journey(
79
- query: WebAnalyticsJourneyParams,
78
+ pathExplorer(
79
+ query: WebAnalyticsPathExplorerParams,
80
80
  options?: RequestOptions,
81
- ): APIPromise<WebAnalyticsJourneyResponse> {
82
- return this._client.get('/rest/v1/web-analytics/journey', { query, ...options });
81
+ ): APIPromise<WebAnalyticsPathExplorerResponse> {
82
+ return this._client.get('/rest/v1/web-analytics/path-explorer', { query, ...options });
83
83
  }
84
84
  }
85
85
 
@@ -215,15 +215,15 @@ export interface WebAnalyticsCurrentVisitorsResponse {
215
215
  count: number;
216
216
  }
217
217
 
218
- export interface WebAnalyticsJourneyResponse {
218
+ export interface WebAnalyticsPathExplorerResponse {
219
219
  anchorSessions: number;
220
220
 
221
221
  hasMore: boolean;
222
222
 
223
- steps: Array<WebAnalyticsJourneyResponse.Step>;
223
+ steps: Array<WebAnalyticsPathExplorerResponse.Step>;
224
224
  }
225
225
 
226
- export namespace WebAnalyticsJourneyResponse {
226
+ export namespace WebAnalyticsPathExplorerResponse {
227
227
  export interface Step {
228
228
  isOther: boolean;
229
229
 
@@ -428,15 +428,15 @@ export interface WebAnalyticsCurrentVisitorsParams {
428
428
  webSourceId?: string;
429
429
  }
430
430
 
431
- export interface WebAnalyticsJourneyParams {
431
+ export interface WebAnalyticsPathExplorerParams {
432
432
  /**
433
433
  * Inclusive lower bound of the analysis window as `YYYY-MM-DD`.
434
434
  */
435
435
  from: string;
436
436
 
437
437
  /**
438
- * JSON-encoded ordered path of opaque journey step keys. Use an empty array to
439
- * request first-column candidates.
438
+ * JSON-encoded ordered path of opaque path explorer step keys. Use an empty array
439
+ * to request first-column candidates.
440
440
  */
441
441
  path: string;
442
442
 
@@ -453,7 +453,7 @@ export interface WebAnalyticsJourneyParams {
453
453
  excludeBots?: boolean;
454
454
 
455
455
  /**
456
- * Optional JSON-encoded array of up to 20 journey filters. Supports web analytics
456
+ * Optional JSON-encoded array of up to 20 cohort filters. Supports web analytics
457
457
  * dimensions plus `event_name`, `ep_currency`, `ep_appointment_id`,
458
458
  * `ep_appointment_status`, `ep_service_line`, `ep_provider_id`, `ep_location_id`,
459
459
  * `ep_booking_channel`, `ep_revenue_type`, `ep_call_outcome`, and `ep_staff_id`.
@@ -482,13 +482,13 @@ export declare namespace WebAnalytics {
482
482
  type WebAnalyticsLocationsResponse as WebAnalyticsLocationsResponse,
483
483
  type WebAnalyticsDevicesResponse as WebAnalyticsDevicesResponse,
484
484
  type WebAnalyticsCurrentVisitorsResponse as WebAnalyticsCurrentVisitorsResponse,
485
- type WebAnalyticsJourneyResponse as WebAnalyticsJourneyResponse,
485
+ type WebAnalyticsPathExplorerResponse as WebAnalyticsPathExplorerResponse,
486
486
  type WebAnalyticsOverviewParams as WebAnalyticsOverviewParams,
487
487
  type WebAnalyticsSourcesParams as WebAnalyticsSourcesParams,
488
488
  type WebAnalyticsPagesParams as WebAnalyticsPagesParams,
489
489
  type WebAnalyticsLocationsParams as WebAnalyticsLocationsParams,
490
490
  type WebAnalyticsDevicesParams as WebAnalyticsDevicesParams,
491
491
  type WebAnalyticsCurrentVisitorsParams as WebAnalyticsCurrentVisitorsParams,
492
- type WebAnalyticsJourneyParams as WebAnalyticsJourneyParams,
492
+ type WebAnalyticsPathExplorerParams as WebAnalyticsPathExplorerParams,
493
493
  };
494
494
  }
@@ -21,12 +21,16 @@ export class WebScanners extends APIResource {
21
21
  }
22
22
 
23
23
  /**
24
- * Create a new web scanner for a root domain. A first scan is enqueued
25
- * automatically after creation on a best-effort basis. `rootDomain` is required;
26
- * missing, empty, or malformed values are rejected as HTTP 400. Everything else
27
- * falls back to defaults (`status: Enabled`, `urlLimit: 100`, no excluded
28
- * patterns, no extra seed URLs). The returned entity is the created scanner row
29
- * and may not yet reflect async scan-state changes. Requires scope:
24
+ * Create a new web scanner for a root domain. Call GET /rest/v1/web-scanners first
25
+ * to check for an existing scanner: each successful request creates a new scanner,
26
+ * even when the root domain is already used. If the response is ambiguous, check
27
+ * the list before retrying to avoid creating a duplicate. A first scan is enqueued
28
+ * automatically after creation on a best-effort basis; the returned entity may not
29
+ * yet reflect asynchronous scan-state changes. `rootDomain` is required; missing,
30
+ * empty, or malformed values are rejected as HTTP 400. Everything else falls back
31
+ * to defaults (`status: Enabled`, `urlLimit: 100`, `scanSchedule: weekly`, no
32
+ * excluded patterns, no extra seed URLs). Invalid configuration or account limits
33
+ * return HTTP 409. Requires scope: `webScanner:create`. Requires scope:
30
34
  * webScanner:create
31
35
  *
32
36
  * @example
@@ -205,14 +209,15 @@ export class WebScanners extends APIResource {
205
209
  * List the third-party trackers (requests) found on a scan run, with their risk,
206
210
  * category, the pages they were seen on, redacted deterministic PII/PHI data-flow
207
211
  * metadata, and whether each host is already covered by a CMP consent service.
208
- * Data-flow findings include only recipient metadata, categories, safe field
209
- * names, and counts; query and body values are never returned. Defaults to the
210
- * latest run; pass `date` (an ISO-8601 timestamp; only the calendar day is used to
211
- * select the run) to read an earlier run. Documented exception to the
212
- * cursor-pagination standard: paginates with `limit` and `offset` because each run
213
- * is an immutable snapshot. A host that is neither covered (`coveredByCmp: false`)
214
- * nor matched by a suppression rule still needs a triage decision — resolve it by
215
- * adding the host to a CMP consent service or by creating a suppression rule with
212
+ * Data-flow findings include only recipient metadata, categories, source
213
+ * locations, safe query/body field names when available, and counts; matched
214
+ * query, body, and pathname values are never returned. Defaults to the latest run;
215
+ * pass `date` (an ISO-8601 timestamp; only the calendar day is used to select the
216
+ * run) to read an earlier run. Documented exception to the cursor-pagination
217
+ * standard: paginates with `limit` and `offset` because each run is an immutable
218
+ * snapshot. A host that is neither covered (`coveredByCmp: false`) nor matched by
219
+ * a suppression rule still needs a triage decision — resolve it by adding the host
220
+ * to a CMP consent service or by creating a suppression rule with
216
221
  * `POST /rest/v1/web-scanner-rules`. Use `GET /rest/v1/web-scanners/{id}/summary`
217
222
  * for the rolled-up counts. Requires scope: webScanner:find
218
223
  *
@@ -894,7 +899,7 @@ export namespace WebScannerFindingsResponse {
894
899
  | 'phone'
895
900
  | 'ssn';
896
901
 
897
- source: 'query_parameter' | 'request_body';
902
+ source: 'query_parameter' | 'request_body' | 'url_path';
898
903
 
899
904
  encoding?: string | null;
900
905
 
@@ -1152,7 +1157,7 @@ export namespace WebScannerSummaryResponse {
1152
1157
  | 'phone'
1153
1158
  | 'ssn';
1154
1159
 
1155
- source: 'query_parameter' | 'request_body';
1160
+ source: 'query_parameter' | 'request_body' | 'url_path';
1156
1161
 
1157
1162
  encoding?: string | null;
1158
1163
 
@@ -1314,7 +1319,7 @@ export namespace WebScannerDecisionQueueResponse {
1314
1319
  | 'phone'
1315
1320
  | 'ssn';
1316
1321
 
1317
- source: 'query_parameter' | 'request_body';
1322
+ source: 'query_parameter' | 'request_body' | 'url_path';
1318
1323
 
1319
1324
  encoding?: string | null;
1320
1325
 
@@ -1365,6 +1370,9 @@ export interface WebScannerCreateParams {
1365
1370
  */
1366
1371
  includedUrls?: Array<string> | null;
1367
1372
 
1373
+ /**
1374
+ * Optional display name for this web scanner.
1375
+ */
1368
1376
  name?: string | null;
1369
1377
 
1370
1378
  /**
@@ -1375,6 +1383,9 @@ export interface WebScannerCreateParams {
1375
1383
  */
1376
1384
  scanSchedule?: 'daily' | 'manual' | 'monthly' | 'weekly';
1377
1385
 
1386
+ /**
1387
+ * Whether this web scanner is enabled. Defaults to `Enabled`.
1388
+ */
1378
1389
  status?: 'Disabled' | 'Enabled';
1379
1390
 
1380
1391
  /**
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '1.50.0'; // x-release-please-version
1
+ export const VERSION = '1.51.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "1.50.0";
1
+ export declare const VERSION = "1.51.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "1.50.0";
1
+ export declare const VERSION = "1.51.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.50.0'; // x-release-please-version
4
+ exports.VERSION = '1.51.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '1.50.0'; // x-release-please-version
1
+ export const VERSION = '1.51.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map