@oursprivacy/platform-sdk 1.42.2 → 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.
- package/CHANGELOG.md +8 -0
- package/client.d.mts +6 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +6 -0
- package/client.d.ts.map +1 -1
- package/client.js +6 -0
- package/client.js.map +1 -1
- package/client.mjs +6 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/conversion-journey-summaries.d.mts +169 -0
- package/resources/conversion-journey-summaries.d.mts.map +1 -0
- package/resources/conversion-journey-summaries.d.ts +169 -0
- package/resources/conversion-journey-summaries.d.ts.map +1 -0
- package/resources/conversion-journey-summaries.js +51 -0
- package/resources/conversion-journey-summaries.js.map +1 -0
- package/resources/conversion-journey-summaries.mjs +47 -0
- package/resources/conversion-journey-summaries.mjs.map +1 -0
- package/resources/destinations.d.mts +18 -17
- package/resources/destinations.d.mts.map +1 -1
- package/resources/destinations.d.ts +18 -17
- package/resources/destinations.d.ts.map +1 -1
- package/resources/funnels.d.mts +33 -16
- package/resources/funnels.d.mts.map +1 -1
- package/resources/funnels.d.ts +33 -16
- package/resources/funnels.d.ts.map +1 -1
- package/resources/funnels.js +8 -6
- package/resources/funnels.js.map +1 -1
- package/resources/funnels.mjs +8 -6
- package/resources/funnels.mjs.map +1 -1
- package/resources/index.d.mts +2 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -0
- package/resources/index.mjs.map +1 -1
- package/resources/versions.d.mts +40 -0
- package/resources/versions.d.mts.map +1 -1
- package/resources/versions.d.ts +40 -0
- package/resources/versions.d.ts.map +1 -1
- package/resources/videos.d.mts +251 -0
- package/resources/videos.d.mts.map +1 -0
- package/resources/videos.d.ts +251 -0
- package/resources/videos.d.ts.map +1 -0
- package/resources/videos.js +81 -0
- package/resources/videos.js.map +1 -0
- package/resources/videos.mjs +77 -0
- package/resources/videos.mjs.map +1 -0
- package/resources/web-scanners.d.mts +43 -0
- package/resources/web-scanners.d.mts.map +1 -1
- package/resources/web-scanners.d.ts +43 -0
- package/resources/web-scanners.d.ts.map +1 -1
- package/src/client.ts +68 -0
- package/src/resources/conversion-journey-summaries.ts +384 -0
- package/src/resources/destinations.ts +45 -12
- package/src/resources/funnels.ts +34 -16
- package/src/resources/index.ts +31 -0
- package/src/resources/versions.ts +50 -0
- package/src/resources/videos.ts +418 -0
- package/src/resources/web-scanners.ts +62 -0
- 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
|
@@ -0,0 +1,418 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import { APIPromise } from '../core/api-promise';
|
|
5
|
+
import { Cursor, type CursorParams, PagePromise } from '../core/pagination';
|
|
6
|
+
import { RequestOptions } from '../internal/request-options';
|
|
7
|
+
import { path } from '../internal/utils/path';
|
|
8
|
+
|
|
9
|
+
export class Videos extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* List videos for the account, newest first. Supports cursor pagination and an
|
|
12
|
+
* optional case-insensitive title filter. Requires scope: media:list
|
|
13
|
+
*/
|
|
14
|
+
list(
|
|
15
|
+
query: VideoListParams | null | undefined = {},
|
|
16
|
+
options?: RequestOptions,
|
|
17
|
+
): PagePromise<VideoListResponsesCursor, VideoListResponse> {
|
|
18
|
+
return this._client.getAPIList('/rest/v1/videos', Cursor<VideoListResponse>, { query, ...options });
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Create a video record and return a temporary upload target for the original MP4
|
|
23
|
+
* or WebM file. Upload the file directly using the returned URL and matching
|
|
24
|
+
* content type, then poll the video to observe processing progress. Requires
|
|
25
|
+
* scope: media:create
|
|
26
|
+
*/
|
|
27
|
+
create(body: VideoCreateParams, options?: RequestOptions): APIPromise<VideoCreateResponse> {
|
|
28
|
+
return this._client.post('/rest/v1/videos', { body, ...options });
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Fetch a video and its current playback asset availability. The processed video,
|
|
33
|
+
* poster, and transcript are prepared asynchronously after upload. Requires scope:
|
|
34
|
+
* media:find
|
|
35
|
+
*/
|
|
36
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<VideoRetrieveResponse> {
|
|
37
|
+
return this._client.get(path`/rest/v1/videos/${id}`, options);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Partially update video metadata. Only fields included in the body change; send
|
|
42
|
+
* `null` to clear a nullable field. Requires scope: media:update
|
|
43
|
+
*/
|
|
44
|
+
update(id: string, body: VideoUpdateParams, options?: RequestOptions): APIPromise<VideoUpdateResponse> {
|
|
45
|
+
return this._client.patch(path`/rest/v1/videos/${id}`, { body, ...options });
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Delete a video and its related assets. Requires scope: media:delete
|
|
50
|
+
*/
|
|
51
|
+
delete(id: string, options?: RequestOptions): APIPromise<VideoDeleteResponse> {
|
|
52
|
+
return this._client.delete(path`/rest/v1/videos/${id}`, options);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Return per-video starts, unique viewers, completion rate, and average watch time
|
|
57
|
+
* for a date window. This derived report uses `limit` and `offset` pagination;
|
|
58
|
+
* `total` is the number of rows returned through the current offset, not a total
|
|
59
|
+
* match count. Requires scope: report:video-analytics
|
|
60
|
+
*/
|
|
61
|
+
analytics(query: VideoAnalyticsParams, options?: RequestOptions): APIPromise<VideoAnalyticsResponse> {
|
|
62
|
+
return this._client.get('/rest/v1/videos/analytics', { query, ...options });
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Return daily or hourly starts, unique viewers, completions, and completion rate
|
|
67
|
+
* for one video. Daily windows support up to 90 days; hourly windows support up to
|
|
68
|
+
* 14 days. Requires scope: report:video-analytics
|
|
69
|
+
*/
|
|
70
|
+
analyticsTimeseries(
|
|
71
|
+
id: string,
|
|
72
|
+
query: VideoAnalyticsTimeseriesParams,
|
|
73
|
+
options?: RequestOptions,
|
|
74
|
+
): APIPromise<VideoAnalyticsTimeseriesResponse> {
|
|
75
|
+
return this._client.get(path`/rest/v1/videos/${id}/analytics`, { query, ...options });
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Read the current WebVTT transcript. Transcript text is available wherever the
|
|
80
|
+
* video is embedded, so do not include PHI or other confidential information.
|
|
81
|
+
* Requires scope: media:find
|
|
82
|
+
*/
|
|
83
|
+
transcript(id: string, options?: RequestOptions): APIPromise<VideoTranscriptResponse> {
|
|
84
|
+
return this._client.get(path`/rest/v1/videos/${id}/transcript`, options);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Replace the transcript with VTT or SRT text. SRT is normalized to WebVTT.
|
|
89
|
+
* Transcript text is available wherever the video is embedded, so do not include
|
|
90
|
+
* PHI or other confidential information. Requires scope: media:update
|
|
91
|
+
*/
|
|
92
|
+
updateTranscript(
|
|
93
|
+
id: string,
|
|
94
|
+
body: VideoUpdateTranscriptParams,
|
|
95
|
+
options?: RequestOptions,
|
|
96
|
+
): APIPromise<VideoUpdateTranscriptResponse> {
|
|
97
|
+
return this._client.put(path`/rest/v1/videos/${id}/transcript`, { body, ...options });
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export type VideoListResponsesCursor = Cursor<VideoListResponse>;
|
|
102
|
+
|
|
103
|
+
export interface VideoListResponse {
|
|
104
|
+
id: string;
|
|
105
|
+
|
|
106
|
+
accountId: string;
|
|
107
|
+
|
|
108
|
+
createdAt: string;
|
|
109
|
+
|
|
110
|
+
type: 'Video';
|
|
111
|
+
|
|
112
|
+
captionsUpdatedAt?: string | null;
|
|
113
|
+
|
|
114
|
+
captionsUpdatedByName?: string | null;
|
|
115
|
+
|
|
116
|
+
description?: string | null;
|
|
117
|
+
|
|
118
|
+
duration?: number | null;
|
|
119
|
+
|
|
120
|
+
hasVideoUpload?: boolean | null;
|
|
121
|
+
|
|
122
|
+
height?: number | null;
|
|
123
|
+
|
|
124
|
+
name?: string | null;
|
|
125
|
+
|
|
126
|
+
updatedAt?: string | null;
|
|
127
|
+
|
|
128
|
+
width?: number | null;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export interface VideoCreateResponse {
|
|
132
|
+
id: string;
|
|
133
|
+
|
|
134
|
+
accountId: string;
|
|
135
|
+
|
|
136
|
+
createdAt: string;
|
|
137
|
+
|
|
138
|
+
type: 'Video';
|
|
139
|
+
|
|
140
|
+
upload: VideoCreateResponse.Upload;
|
|
141
|
+
|
|
142
|
+
captionsUpdatedAt?: string | null;
|
|
143
|
+
|
|
144
|
+
captionsUpdatedByName?: string | null;
|
|
145
|
+
|
|
146
|
+
description?: string | null;
|
|
147
|
+
|
|
148
|
+
duration?: number | null;
|
|
149
|
+
|
|
150
|
+
hasVideoUpload?: boolean | null;
|
|
151
|
+
|
|
152
|
+
height?: number | null;
|
|
153
|
+
|
|
154
|
+
name?: string | null;
|
|
155
|
+
|
|
156
|
+
updatedAt?: string | null;
|
|
157
|
+
|
|
158
|
+
width?: number | null;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
export namespace VideoCreateResponse {
|
|
162
|
+
export interface Upload {
|
|
163
|
+
mimeType: 'MP4' | 'WEBM';
|
|
164
|
+
|
|
165
|
+
url: string;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
export interface VideoRetrieveResponse {
|
|
170
|
+
id: string;
|
|
171
|
+
|
|
172
|
+
accountId: string;
|
|
173
|
+
|
|
174
|
+
createdAt: string;
|
|
175
|
+
|
|
176
|
+
type: 'Video';
|
|
177
|
+
|
|
178
|
+
captionsUpdatedAt?: string | null;
|
|
179
|
+
|
|
180
|
+
captionsUpdatedByName?: string | null;
|
|
181
|
+
|
|
182
|
+
description?: string | null;
|
|
183
|
+
|
|
184
|
+
duration?: number | null;
|
|
185
|
+
|
|
186
|
+
hasVideoUpload?: boolean | null;
|
|
187
|
+
|
|
188
|
+
height?: number | null;
|
|
189
|
+
|
|
190
|
+
name?: string | null;
|
|
191
|
+
|
|
192
|
+
resolvedValues?: unknown | null;
|
|
193
|
+
|
|
194
|
+
updatedAt?: string | null;
|
|
195
|
+
|
|
196
|
+
width?: number | null;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
export interface VideoUpdateResponse {
|
|
200
|
+
id: string;
|
|
201
|
+
|
|
202
|
+
accountId: string;
|
|
203
|
+
|
|
204
|
+
createdAt: string;
|
|
205
|
+
|
|
206
|
+
type: 'Video';
|
|
207
|
+
|
|
208
|
+
captionsUpdatedAt?: string | null;
|
|
209
|
+
|
|
210
|
+
captionsUpdatedByName?: string | null;
|
|
211
|
+
|
|
212
|
+
description?: string | null;
|
|
213
|
+
|
|
214
|
+
duration?: number | null;
|
|
215
|
+
|
|
216
|
+
hasVideoUpload?: boolean | null;
|
|
217
|
+
|
|
218
|
+
height?: number | null;
|
|
219
|
+
|
|
220
|
+
name?: string | null;
|
|
221
|
+
|
|
222
|
+
updatedAt?: string | null;
|
|
223
|
+
|
|
224
|
+
width?: number | null;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
export interface VideoDeleteResponse {
|
|
228
|
+
id: string;
|
|
229
|
+
|
|
230
|
+
deleted: true;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
export interface VideoAnalyticsResponse {
|
|
234
|
+
hasMore: boolean;
|
|
235
|
+
|
|
236
|
+
items: Array<VideoAnalyticsResponse.Item>;
|
|
237
|
+
|
|
238
|
+
total: number;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
export namespace VideoAnalyticsResponse {
|
|
242
|
+
export interface Item {
|
|
243
|
+
avgVideoDurationSeconds: number;
|
|
244
|
+
|
|
245
|
+
avgWatchTimeSeconds: number;
|
|
246
|
+
|
|
247
|
+
completionRate: number;
|
|
248
|
+
|
|
249
|
+
uniqueViewers: number;
|
|
250
|
+
|
|
251
|
+
videoStarts: number;
|
|
252
|
+
|
|
253
|
+
videoTitle: string;
|
|
254
|
+
|
|
255
|
+
videoId?: string | null;
|
|
256
|
+
|
|
257
|
+
videoUrl?: string | null;
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
export interface VideoAnalyticsTimeseriesResponse {
|
|
262
|
+
items: Array<VideoAnalyticsTimeseriesResponse.Item>;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
export namespace VideoAnalyticsTimeseriesResponse {
|
|
266
|
+
export interface Item {
|
|
267
|
+
completionRate: number;
|
|
268
|
+
|
|
269
|
+
completions: number;
|
|
270
|
+
|
|
271
|
+
dateTime: string;
|
|
272
|
+
|
|
273
|
+
uniqueViewers: number;
|
|
274
|
+
|
|
275
|
+
videoStarts: number;
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
export interface VideoTranscriptResponse {
|
|
280
|
+
content?: string | null;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
export interface VideoUpdateTranscriptResponse {
|
|
284
|
+
id: string;
|
|
285
|
+
|
|
286
|
+
accountId: string;
|
|
287
|
+
|
|
288
|
+
createdAt: string;
|
|
289
|
+
|
|
290
|
+
type: 'Video';
|
|
291
|
+
|
|
292
|
+
captionsUpdatedAt?: string | null;
|
|
293
|
+
|
|
294
|
+
captionsUpdatedByName?: string | null;
|
|
295
|
+
|
|
296
|
+
description?: string | null;
|
|
297
|
+
|
|
298
|
+
duration?: number | null;
|
|
299
|
+
|
|
300
|
+
hasVideoUpload?: boolean | null;
|
|
301
|
+
|
|
302
|
+
height?: number | null;
|
|
303
|
+
|
|
304
|
+
name?: string | null;
|
|
305
|
+
|
|
306
|
+
updatedAt?: string | null;
|
|
307
|
+
|
|
308
|
+
width?: number | null;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
export interface VideoListParams extends CursorParams {
|
|
312
|
+
/**
|
|
313
|
+
* Case-insensitive substring match on the video title.
|
|
314
|
+
*/
|
|
315
|
+
nameContains?: string;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
export interface VideoCreateParams {
|
|
319
|
+
/**
|
|
320
|
+
* Content type for the original video upload: `MP4` or `WEBM`.
|
|
321
|
+
*/
|
|
322
|
+
mimeType: 'MP4' | 'WEBM';
|
|
323
|
+
|
|
324
|
+
description?: string | null;
|
|
325
|
+
|
|
326
|
+
/**
|
|
327
|
+
* Video title. Defaults to `New Video` when omitted.
|
|
328
|
+
*/
|
|
329
|
+
name?: string | null;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
export interface VideoUpdateParams {
|
|
333
|
+
description?: string | null;
|
|
334
|
+
|
|
335
|
+
duration?: number | null;
|
|
336
|
+
|
|
337
|
+
hasVideoUpload?: boolean | null;
|
|
338
|
+
|
|
339
|
+
height?: number | null;
|
|
340
|
+
|
|
341
|
+
name?: string | null;
|
|
342
|
+
|
|
343
|
+
width?: number | null;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
export interface VideoAnalyticsParams {
|
|
347
|
+
/**
|
|
348
|
+
* Inclusive UTC start day in `YYYY-MM-DD` format.
|
|
349
|
+
*/
|
|
350
|
+
from: string;
|
|
351
|
+
|
|
352
|
+
/**
|
|
353
|
+
* Inclusive UTC end day in `YYYY-MM-DD` format.
|
|
354
|
+
*/
|
|
355
|
+
to: string;
|
|
356
|
+
|
|
357
|
+
/**
|
|
358
|
+
* Maximum number of video rows to return. Defaults to 50.
|
|
359
|
+
*/
|
|
360
|
+
limit?: number;
|
|
361
|
+
|
|
362
|
+
/**
|
|
363
|
+
* Zero-based row offset. This report is an intentional offset-pagination
|
|
364
|
+
* exception.
|
|
365
|
+
*/
|
|
366
|
+
offset?: number | null;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
export interface VideoAnalyticsTimeseriesParams {
|
|
370
|
+
/**
|
|
371
|
+
* Inclusive UTC start day in `YYYY-MM-DD` format.
|
|
372
|
+
*/
|
|
373
|
+
from: string;
|
|
374
|
+
|
|
375
|
+
/**
|
|
376
|
+
* Inclusive UTC end day in `YYYY-MM-DD` format.
|
|
377
|
+
*/
|
|
378
|
+
to: string;
|
|
379
|
+
|
|
380
|
+
/**
|
|
381
|
+
* Bucket size. Defaults to `DAILY`; `HOURLY` supports windows of up to 14 days.
|
|
382
|
+
*/
|
|
383
|
+
granularity?: 'DAILY' | 'HOURLY';
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
export interface VideoUpdateTranscriptParams {
|
|
387
|
+
/**
|
|
388
|
+
* Transcript text, limited to 1 MB.
|
|
389
|
+
*/
|
|
390
|
+
content: string;
|
|
391
|
+
|
|
392
|
+
/**
|
|
393
|
+
* Transcript source format. SRT content is normalized to WebVTT before it is
|
|
394
|
+
* saved.
|
|
395
|
+
*/
|
|
396
|
+
format: 'SRT' | 'VTT';
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
export declare namespace Videos {
|
|
400
|
+
export {
|
|
401
|
+
type VideoListResponse as VideoListResponse,
|
|
402
|
+
type VideoCreateResponse as VideoCreateResponse,
|
|
403
|
+
type VideoRetrieveResponse as VideoRetrieveResponse,
|
|
404
|
+
type VideoUpdateResponse as VideoUpdateResponse,
|
|
405
|
+
type VideoDeleteResponse as VideoDeleteResponse,
|
|
406
|
+
type VideoAnalyticsResponse as VideoAnalyticsResponse,
|
|
407
|
+
type VideoAnalyticsTimeseriesResponse as VideoAnalyticsTimeseriesResponse,
|
|
408
|
+
type VideoTranscriptResponse as VideoTranscriptResponse,
|
|
409
|
+
type VideoUpdateTranscriptResponse as VideoUpdateTranscriptResponse,
|
|
410
|
+
type VideoListResponsesCursor as VideoListResponsesCursor,
|
|
411
|
+
type VideoListParams as VideoListParams,
|
|
412
|
+
type VideoCreateParams as VideoCreateParams,
|
|
413
|
+
type VideoUpdateParams as VideoUpdateParams,
|
|
414
|
+
type VideoAnalyticsParams as VideoAnalyticsParams,
|
|
415
|
+
type VideoAnalyticsTimeseriesParams as VideoAnalyticsTimeseriesParams,
|
|
416
|
+
type VideoUpdateTranscriptParams as VideoUpdateTranscriptParams,
|
|
417
|
+
};
|
|
418
|
+
}
|
|
@@ -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.
|
|
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.
|
|
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.
|
|
1
|
+
export declare const VERSION = "1.43.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '1.
|
|
1
|
+
export const VERSION = '1.43.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|