@oursprivacy/platform-sdk 1.49.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.
- package/CHANGELOG.md +14 -0
- package/client.d.mts +15 -6
- package/client.d.mts.map +1 -1
- package/client.d.ts +15 -6
- package/client.d.ts.map +1 -1
- package/client.js +9 -0
- package/client.js.map +1 -1
- package/client.mjs +9 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/analytics.d.mts +62 -0
- package/resources/analytics.d.mts.map +1 -0
- package/resources/analytics.d.ts +62 -0
- package/resources/analytics.d.ts.map +1 -0
- package/resources/analytics.js +25 -0
- package/resources/analytics.js.map +1 -0
- package/resources/analytics.mjs +21 -0
- package/resources/analytics.mjs.map +1 -0
- package/resources/consent-settings.d.mts +9 -0
- package/resources/consent-settings.d.mts.map +1 -1
- package/resources/consent-settings.d.ts +9 -0
- package/resources/consent-settings.d.ts.map +1 -1
- package/resources/destinations.d.mts +7 -7
- package/resources/destinations.d.mts.map +1 -1
- package/resources/destinations.d.ts +7 -7
- package/resources/destinations.d.ts.map +1 -1
- package/resources/experiments.d.mts +661 -35
- package/resources/experiments.d.mts.map +1 -1
- package/resources/experiments.d.ts +661 -35
- package/resources/experiments.d.ts.map +1 -1
- package/resources/experiments.js +27 -19
- package/resources/experiments.js.map +1 -1
- package/resources/experiments.mjs +27 -19
- package/resources/experiments.mjs.map +1 -1
- package/resources/funnels.d.mts +88 -980
- package/resources/funnels.d.mts.map +1 -1
- package/resources/funnels.d.ts +88 -980
- package/resources/funnels.d.ts.map +1 -1
- package/resources/funnels.js +24 -19
- package/resources/funnels.js.map +1 -1
- package/resources/funnels.mjs +24 -19
- package/resources/funnels.mjs.map +1 -1
- package/resources/index.d.mts +6 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +6 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +7 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -0
- package/resources/index.mjs.map +1 -1
- package/resources/journey-flows.d.mts +4155 -0
- package/resources/journey-flows.d.mts.map +1 -0
- package/resources/journey-flows.d.ts +4155 -0
- package/resources/journey-flows.d.ts.map +1 -0
- package/resources/journey-flows.js +90 -0
- package/resources/journey-flows.js.map +1 -0
- package/resources/journey-flows.mjs +86 -0
- package/resources/journey-flows.mjs.map +1 -0
- package/resources/short-links.d.mts +40 -0
- package/resources/short-links.d.mts.map +1 -1
- package/resources/short-links.d.ts +40 -0
- package/resources/short-links.d.ts.map +1 -1
- package/resources/sources.d.mts +20 -0
- package/resources/sources.d.mts.map +1 -1
- package/resources/sources.d.ts +20 -0
- package/resources/sources.d.ts.map +1 -1
- package/resources/test-events.d.mts +203 -0
- package/resources/test-events.d.mts.map +1 -0
- package/resources/test-events.d.ts +203 -0
- package/resources/test-events.d.ts.map +1 -0
- package/resources/test-events.js +87 -0
- package/resources/test-events.js.map +1 -0
- package/resources/test-events.mjs +83 -0
- package/resources/test-events.mjs.map +1 -0
- package/resources/video-channels.d.mts +13 -0
- package/resources/video-channels.d.mts.map +1 -1
- package/resources/video-channels.d.ts +13 -0
- package/resources/video-channels.d.ts.map +1 -1
- package/resources/videos.d.mts +160 -2
- package/resources/videos.d.mts.map +1 -1
- package/resources/videos.d.ts +160 -2
- package/resources/videos.d.ts.map +1 -1
- package/resources/videos.js +32 -2
- package/resources/videos.js.map +1 -1
- package/resources/videos.mjs +32 -2
- package/resources/videos.mjs.map +1 -1
- package/resources/web-analytics.d.mts +9 -9
- package/resources/web-analytics.d.mts.map +1 -1
- package/resources/web-analytics.d.ts +9 -9
- package/resources/web-analytics.d.ts.map +1 -1
- package/resources/web-analytics.js +2 -2
- package/resources/web-analytics.js.map +1 -1
- package/resources/web-analytics.mjs +2 -2
- package/resources/web-analytics.mjs.map +1 -1
- package/resources/web-scanners.d.mts +156 -17
- package/resources/web-scanners.d.mts.map +1 -1
- package/resources/web-scanners.d.ts +156 -17
- package/resources/web-scanners.d.ts.map +1 -1
- package/resources/web-scanners.js +59 -14
- package/resources/web-scanners.js.map +1 -1
- package/resources/web-scanners.mjs +59 -14
- package/resources/web-scanners.mjs.map +1 -1
- package/src/client.ts +103 -4
- package/src/resources/analytics.ts +98 -0
- package/src/resources/consent-settings.ts +16 -0
- package/src/resources/destinations.ts +7 -0
- package/src/resources/experiments.ts +808 -35
- package/src/resources/funnels.ts +114 -1616
- package/src/resources/index.ts +47 -2
- package/src/resources/journey-flows.ts +8244 -0
- package/src/resources/short-links.ts +47 -0
- package/src/resources/sources.ts +24 -0
- package/src/resources/test-events.ts +286 -0
- package/src/resources/video-channels.ts +22 -0
- package/src/resources/videos.ts +279 -2
- package/src/resources/web-analytics.ts +13 -13
- package/src/resources/web-scanners.ts +247 -16
- 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
|
@@ -16,12 +16,16 @@ export class WebScanners extends APIResource {
|
|
|
16
16
|
return this._client.get('/rest/v1/web-scanners', options);
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
19
|
-
* Create a new web scanner for a root domain.
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
19
|
+
* Create a new web scanner for a root domain. Call GET /rest/v1/web-scanners first
|
|
20
|
+
* to check for an existing scanner: each successful request creates a new scanner,
|
|
21
|
+
* even when the root domain is already used. If the response is ambiguous, check
|
|
22
|
+
* the list before retrying to avoid creating a duplicate. A first scan is enqueued
|
|
23
|
+
* automatically after creation on a best-effort basis; the returned entity may not
|
|
24
|
+
* yet reflect asynchronous scan-state changes. `rootDomain` is required; missing,
|
|
25
|
+
* empty, or malformed values are rejected as HTTP 400. Everything else falls back
|
|
26
|
+
* to defaults (`status: Enabled`, `urlLimit: 100`, `scanSchedule: weekly`, no
|
|
27
|
+
* excluded patterns, no extra seed URLs). Invalid configuration or account limits
|
|
28
|
+
* return HTTP 409. Requires scope: `webScanner:create`. Requires scope:
|
|
25
29
|
* webScanner:create
|
|
26
30
|
*
|
|
27
31
|
* @example
|
|
@@ -171,14 +175,15 @@ export class WebScanners extends APIResource {
|
|
|
171
175
|
* List the third-party trackers (requests) found on a scan run, with their risk,
|
|
172
176
|
* category, the pages they were seen on, redacted deterministic PII/PHI data-flow
|
|
173
177
|
* metadata, and whether each host is already covered by a CMP consent service.
|
|
174
|
-
* Data-flow findings include only recipient metadata, categories,
|
|
175
|
-
*
|
|
176
|
-
*
|
|
177
|
-
*
|
|
178
|
-
*
|
|
179
|
-
*
|
|
180
|
-
*
|
|
181
|
-
*
|
|
178
|
+
* Data-flow findings include only recipient metadata, categories, source
|
|
179
|
+
* locations, safe query/body field names when available, and counts; matched
|
|
180
|
+
* query, body, and pathname values are never returned. Defaults to the latest run;
|
|
181
|
+
* pass `date` (an ISO-8601 timestamp; only the calendar day is used to select the
|
|
182
|
+
* run) to read an earlier run. Documented exception to the cursor-pagination
|
|
183
|
+
* standard: paginates with `limit` and `offset` because each run is an immutable
|
|
184
|
+
* snapshot. A host that is neither covered (`coveredByCmp: false`) nor matched by
|
|
185
|
+
* a suppression rule still needs a triage decision — resolve it by adding the host
|
|
186
|
+
* to a CMP consent service or by creating a suppression rule with
|
|
182
187
|
* `POST /rest/v1/web-scanner-rules`. Use `GET /rest/v1/web-scanners/{id}/summary`
|
|
183
188
|
* for the rolled-up counts. Requires scope: webScanner:find
|
|
184
189
|
*
|
|
@@ -230,5 +235,45 @@ export class WebScanners extends APIResource {
|
|
|
230
235
|
summary(id, query = {}, options) {
|
|
231
236
|
return this._client.get(path `/rest/v1/web-scanners/${id}/summary`, { query, ...options });
|
|
232
237
|
}
|
|
238
|
+
/**
|
|
239
|
+
* List every normalized host in the selected scan run that is neither covered by a
|
|
240
|
+
* current CMP consent service nor matched by an active suppression rule. Results
|
|
241
|
+
* are sorted by risk and hostname. Continue with pagination.nextCursor while
|
|
242
|
+
* preserving runRevision and coverageRevision; changed evidence returns HTTP 400
|
|
243
|
+
* and requires restarting from the first page. Historical runs are evaluated
|
|
244
|
+
* against current coverage configuration. Requires scope: webScanner:find
|
|
245
|
+
*
|
|
246
|
+
* @example
|
|
247
|
+
* ```ts
|
|
248
|
+
* const response = await client.webScanners.decisionQueue(
|
|
249
|
+
* 'id',
|
|
250
|
+
* );
|
|
251
|
+
* ```
|
|
252
|
+
*/
|
|
253
|
+
decisionQueue(id, query = {}, options) {
|
|
254
|
+
return this._client.get(path `/rest/v1/web-scanners/${id}/decision-queue`, { query, ...options });
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
* Resolve one hostname from a revision-bound Web Scanner decision queue by
|
|
258
|
+
* creating an exact-host suppression rule. The request is bound to the reviewed
|
|
259
|
+
* run, and retrying the same idempotency key returns the recorded outcome without
|
|
260
|
+
* repeating the write. Requires scope: webScanner:update
|
|
261
|
+
*
|
|
262
|
+
* @example
|
|
263
|
+
* ```ts
|
|
264
|
+
* const response =
|
|
265
|
+
* await client.webScanners.resolveCoverageGap('id', {
|
|
266
|
+
* coverageRevision: 'x',
|
|
267
|
+
* hostname: 'x',
|
|
268
|
+
* idempotencyKey: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
269
|
+
* runDate: '2019-12-27T18:11:19.117Z',
|
|
270
|
+
* runRevision: 'x',
|
|
271
|
+
* suppression: { reason: 'ignore' },
|
|
272
|
+
* });
|
|
273
|
+
* ```
|
|
274
|
+
*/
|
|
275
|
+
resolveCoverageGap(id, body, options) {
|
|
276
|
+
return this._client.post(path `/rest/v1/web-scanners/${id}/resolve-coverage-gap`, { body, ...options });
|
|
277
|
+
}
|
|
233
278
|
}
|
|
234
279
|
//# 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;A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ents,
|
|
31
31
|
} from './resources/allowed-events';
|
|
32
|
+
import {
|
|
33
|
+
Analytics,
|
|
34
|
+
AnalyticsPropertySuggestionsParams,
|
|
35
|
+
AnalyticsPropertySuggestionsResponse,
|
|
36
|
+
AnalyticsQueryCatalogResponse,
|
|
37
|
+
} from './resources/analytics';
|
|
32
38
|
import {
|
|
33
39
|
Attribution,
|
|
34
40
|
AttributionAudienceConversionParams,
|
|
@@ -198,6 +204,26 @@ import {
|
|
|
198
204
|
HeatmapPageSummaryResponse,
|
|
199
205
|
HeatmapPages,
|
|
200
206
|
} from './resources/heatmap-pages';
|
|
207
|
+
import {
|
|
208
|
+
JourneyFlowCapabilitiesResponse,
|
|
209
|
+
JourneyFlowCreateParams,
|
|
210
|
+
JourneyFlowCreateResponse,
|
|
211
|
+
JourneyFlowDeleteParams,
|
|
212
|
+
JourneyFlowDeleteResponse,
|
|
213
|
+
JourneyFlowExportParams,
|
|
214
|
+
JourneyFlowExportResponse,
|
|
215
|
+
JourneyFlowListParams,
|
|
216
|
+
JourneyFlowListResponse,
|
|
217
|
+
JourneyFlowListResponsesCursor,
|
|
218
|
+
JourneyFlowPreviewParams,
|
|
219
|
+
JourneyFlowPreviewResponse,
|
|
220
|
+
JourneyFlowResultsParams,
|
|
221
|
+
JourneyFlowResultsResponse,
|
|
222
|
+
JourneyFlowRetrieveResponse,
|
|
223
|
+
JourneyFlowUpdateParams,
|
|
224
|
+
JourneyFlowUpdateResponse,
|
|
225
|
+
JourneyFlows,
|
|
226
|
+
} from './resources/journey-flows';
|
|
201
227
|
import {
|
|
202
228
|
LocationCreateParams,
|
|
203
229
|
LocationCreateResponse,
|
|
@@ -352,6 +378,16 @@ import {
|
|
|
352
378
|
TagManagerUpdateResponse,
|
|
353
379
|
TagManagers,
|
|
354
380
|
} from './resources/tag-managers';
|
|
381
|
+
import {
|
|
382
|
+
TestEventCreateParams,
|
|
383
|
+
TestEventCreateResponse,
|
|
384
|
+
TestEventDispatchesResponse,
|
|
385
|
+
TestEventListParams,
|
|
386
|
+
TestEventListResponse,
|
|
387
|
+
TestEventListResponsesCursor,
|
|
388
|
+
TestEventRetrieveResponse,
|
|
389
|
+
TestEvents,
|
|
390
|
+
} from './resources/test-events';
|
|
355
391
|
import {
|
|
356
392
|
TranslationWidgetAnalyticsParams,
|
|
357
393
|
TranslationWidgetAnalyticsResponse,
|
|
@@ -405,13 +441,18 @@ import {
|
|
|
405
441
|
VideoAnalyticsResponse,
|
|
406
442
|
VideoAnalyticsTimeseriesParams,
|
|
407
443
|
VideoAnalyticsTimeseriesResponse,
|
|
444
|
+
VideoCancelCaptionTranslationParams,
|
|
445
|
+
VideoCancelCaptionTranslationResponse,
|
|
408
446
|
VideoCreateParams,
|
|
409
447
|
VideoCreateResponse,
|
|
410
448
|
VideoDeleteResponse,
|
|
411
449
|
VideoListParams,
|
|
412
450
|
VideoListResponse,
|
|
413
451
|
VideoListResponsesCursor,
|
|
452
|
+
VideoRequestCaptionTranslationParams,
|
|
453
|
+
VideoRequestCaptionTranslationResponse,
|
|
414
454
|
VideoRetrieveResponse,
|
|
455
|
+
VideoTranscriptParams,
|
|
415
456
|
VideoTranscriptResponse,
|
|
416
457
|
VideoUpdateParams,
|
|
417
458
|
VideoUpdateResponse,
|
|
@@ -427,14 +468,14 @@ import {
|
|
|
427
468
|
WebAnalyticsCurrentVisitorsResponse,
|
|
428
469
|
WebAnalyticsDevicesParams,
|
|
429
470
|
WebAnalyticsDevicesResponse,
|
|
430
|
-
WebAnalyticsJourneyParams,
|
|
431
|
-
WebAnalyticsJourneyResponse,
|
|
432
471
|
WebAnalyticsLocationsParams,
|
|
433
472
|
WebAnalyticsLocationsResponse,
|
|
434
473
|
WebAnalyticsOverviewParams,
|
|
435
474
|
WebAnalyticsOverviewResponse,
|
|
436
475
|
WebAnalyticsPagesParams,
|
|
437
476
|
WebAnalyticsPagesResponse,
|
|
477
|
+
WebAnalyticsPathExplorerParams,
|
|
478
|
+
WebAnalyticsPathExplorerResponse,
|
|
438
479
|
WebAnalyticsSourcesParams,
|
|
439
480
|
WebAnalyticsSourcesResponse,
|
|
440
481
|
} from './resources/web-analytics';
|
|
@@ -456,10 +497,14 @@ import {
|
|
|
456
497
|
WebScannerCookiesResponse,
|
|
457
498
|
WebScannerCreateParams,
|
|
458
499
|
WebScannerCreateResponse,
|
|
500
|
+
WebScannerDecisionQueueParams,
|
|
501
|
+
WebScannerDecisionQueueResponse,
|
|
459
502
|
WebScannerDeleteResponse,
|
|
460
503
|
WebScannerFindingsParams,
|
|
461
504
|
WebScannerFindingsResponse,
|
|
462
505
|
WebScannerListResponse,
|
|
506
|
+
WebScannerResolveCoverageGapParams,
|
|
507
|
+
WebScannerResolveCoverageGapResponse,
|
|
463
508
|
WebScannerRetrieveResponse,
|
|
464
509
|
WebScannerSummaryParams,
|
|
465
510
|
WebScannerSummaryResponse,
|
|
@@ -1252,6 +1297,9 @@ export class OursPrivacyPlatform {
|
|
|
1252
1297
|
webScannerRules: API.WebScannerRules = new API.WebScannerRules(this);
|
|
1253
1298
|
webScanners: API.WebScanners = new API.WebScanners(this);
|
|
1254
1299
|
personalizationProperties: API.PersonalizationProperties = new API.PersonalizationProperties(this);
|
|
1300
|
+
analytics: API.Analytics = new API.Analytics(this);
|
|
1301
|
+
journeyFlows: API.JourneyFlows = new API.JourneyFlows(this);
|
|
1302
|
+
testEvents: API.TestEvents = new API.TestEvents(this);
|
|
1255
1303
|
}
|
|
1256
1304
|
|
|
1257
1305
|
OursPrivacyPlatform.AllowedEvents = AllowedEvents;
|
|
@@ -1288,6 +1336,9 @@ OursPrivacyPlatform.WebAnalytics = WebAnalytics;
|
|
|
1288
1336
|
OursPrivacyPlatform.WebScannerRules = WebScannerRules;
|
|
1289
1337
|
OursPrivacyPlatform.WebScanners = WebScanners;
|
|
1290
1338
|
OursPrivacyPlatform.PersonalizationProperties = PersonalizationProperties;
|
|
1339
|
+
OursPrivacyPlatform.Analytics = Analytics;
|
|
1340
|
+
OursPrivacyPlatform.JourneyFlows = JourneyFlows;
|
|
1341
|
+
OursPrivacyPlatform.TestEvents = TestEvents;
|
|
1291
1342
|
|
|
1292
1343
|
export declare namespace OursPrivacyPlatform {
|
|
1293
1344
|
export type RequestOptions = Opts.RequestOptions;
|
|
@@ -1683,6 +1734,8 @@ export declare namespace OursPrivacyPlatform {
|
|
|
1683
1734
|
type VideoUploadResponse as VideoUploadResponse,
|
|
1684
1735
|
type VideoTranscriptResponse as VideoTranscriptResponse,
|
|
1685
1736
|
type VideoUpdateTranscriptResponse as VideoUpdateTranscriptResponse,
|
|
1737
|
+
type VideoRequestCaptionTranslationResponse as VideoRequestCaptionTranslationResponse,
|
|
1738
|
+
type VideoCancelCaptionTranslationResponse as VideoCancelCaptionTranslationResponse,
|
|
1686
1739
|
type VideoAnalyticsResponse as VideoAnalyticsResponse,
|
|
1687
1740
|
type VideoAnalyticsTimeseriesResponse as VideoAnalyticsTimeseriesResponse,
|
|
1688
1741
|
type VideoListResponsesCursor as VideoListResponsesCursor,
|
|
@@ -1690,7 +1743,10 @@ export declare namespace OursPrivacyPlatform {
|
|
|
1690
1743
|
type VideoCreateParams as VideoCreateParams,
|
|
1691
1744
|
type VideoUpdateParams as VideoUpdateParams,
|
|
1692
1745
|
type VideoUploadParams as VideoUploadParams,
|
|
1746
|
+
type VideoTranscriptParams as VideoTranscriptParams,
|
|
1693
1747
|
type VideoUpdateTranscriptParams as VideoUpdateTranscriptParams,
|
|
1748
|
+
type VideoRequestCaptionTranslationParams as VideoRequestCaptionTranslationParams,
|
|
1749
|
+
type VideoCancelCaptionTranslationParams as VideoCancelCaptionTranslationParams,
|
|
1694
1750
|
type VideoAnalyticsParams as VideoAnalyticsParams,
|
|
1695
1751
|
type VideoAnalyticsTimeseriesParams as VideoAnalyticsTimeseriesParams,
|
|
1696
1752
|
};
|
|
@@ -1723,14 +1779,14 @@ export declare namespace OursPrivacyPlatform {
|
|
|
1723
1779
|
type WebAnalyticsLocationsResponse as WebAnalyticsLocationsResponse,
|
|
1724
1780
|
type WebAnalyticsDevicesResponse as WebAnalyticsDevicesResponse,
|
|
1725
1781
|
type WebAnalyticsCurrentVisitorsResponse as WebAnalyticsCurrentVisitorsResponse,
|
|
1726
|
-
type
|
|
1782
|
+
type WebAnalyticsPathExplorerResponse as WebAnalyticsPathExplorerResponse,
|
|
1727
1783
|
type WebAnalyticsOverviewParams as WebAnalyticsOverviewParams,
|
|
1728
1784
|
type WebAnalyticsSourcesParams as WebAnalyticsSourcesParams,
|
|
1729
1785
|
type WebAnalyticsPagesParams as WebAnalyticsPagesParams,
|
|
1730
1786
|
type WebAnalyticsLocationsParams as WebAnalyticsLocationsParams,
|
|
1731
1787
|
type WebAnalyticsDevicesParams as WebAnalyticsDevicesParams,
|
|
1732
1788
|
type WebAnalyticsCurrentVisitorsParams as WebAnalyticsCurrentVisitorsParams,
|
|
1733
|
-
type
|
|
1789
|
+
type WebAnalyticsPathExplorerParams as WebAnalyticsPathExplorerParams,
|
|
1734
1790
|
};
|
|
1735
1791
|
|
|
1736
1792
|
export {
|
|
@@ -1760,6 +1816,8 @@ export declare namespace OursPrivacyPlatform {
|
|
|
1760
1816
|
type WebScannerFindingsResponse as WebScannerFindingsResponse,
|
|
1761
1817
|
type WebScannerCookiesResponse as WebScannerCookiesResponse,
|
|
1762
1818
|
type WebScannerSummaryResponse as WebScannerSummaryResponse,
|
|
1819
|
+
type WebScannerDecisionQueueResponse as WebScannerDecisionQueueResponse,
|
|
1820
|
+
type WebScannerResolveCoverageGapResponse as WebScannerResolveCoverageGapResponse,
|
|
1763
1821
|
type WebScannerCreateParams as WebScannerCreateParams,
|
|
1764
1822
|
type WebScannerUpdateParams as WebScannerUpdateParams,
|
|
1765
1823
|
type WebScannerAuthenticatedScanParams as WebScannerAuthenticatedScanParams,
|
|
@@ -1769,6 +1827,8 @@ export declare namespace OursPrivacyPlatform {
|
|
|
1769
1827
|
type WebScannerFindingsParams as WebScannerFindingsParams,
|
|
1770
1828
|
type WebScannerCookiesParams as WebScannerCookiesParams,
|
|
1771
1829
|
type WebScannerSummaryParams as WebScannerSummaryParams,
|
|
1830
|
+
type WebScannerDecisionQueueParams as WebScannerDecisionQueueParams,
|
|
1831
|
+
type WebScannerResolveCoverageGapParams as WebScannerResolveCoverageGapParams,
|
|
1772
1832
|
};
|
|
1773
1833
|
|
|
1774
1834
|
export {
|
|
@@ -1783,4 +1843,43 @@ export declare namespace OursPrivacyPlatform {
|
|
|
1783
1843
|
type PersonalizationPropertyCreateParams as PersonalizationPropertyCreateParams,
|
|
1784
1844
|
type PersonalizationPropertyUpdateParams as PersonalizationPropertyUpdateParams,
|
|
1785
1845
|
};
|
|
1846
|
+
|
|
1847
|
+
export {
|
|
1848
|
+
Analytics as Analytics,
|
|
1849
|
+
type AnalyticsQueryCatalogResponse as AnalyticsQueryCatalogResponse,
|
|
1850
|
+
type AnalyticsPropertySuggestionsResponse as AnalyticsPropertySuggestionsResponse,
|
|
1851
|
+
type AnalyticsPropertySuggestionsParams as AnalyticsPropertySuggestionsParams,
|
|
1852
|
+
};
|
|
1853
|
+
|
|
1854
|
+
export {
|
|
1855
|
+
JourneyFlows as JourneyFlows,
|
|
1856
|
+
type JourneyFlowListResponse as JourneyFlowListResponse,
|
|
1857
|
+
type JourneyFlowCreateResponse as JourneyFlowCreateResponse,
|
|
1858
|
+
type JourneyFlowRetrieveResponse as JourneyFlowRetrieveResponse,
|
|
1859
|
+
type JourneyFlowUpdateResponse as JourneyFlowUpdateResponse,
|
|
1860
|
+
type JourneyFlowDeleteResponse as JourneyFlowDeleteResponse,
|
|
1861
|
+
type JourneyFlowCapabilitiesResponse as JourneyFlowCapabilitiesResponse,
|
|
1862
|
+
type JourneyFlowResultsResponse as JourneyFlowResultsResponse,
|
|
1863
|
+
type JourneyFlowExportResponse as JourneyFlowExportResponse,
|
|
1864
|
+
type JourneyFlowPreviewResponse as JourneyFlowPreviewResponse,
|
|
1865
|
+
type JourneyFlowListResponsesCursor as JourneyFlowListResponsesCursor,
|
|
1866
|
+
type JourneyFlowListParams as JourneyFlowListParams,
|
|
1867
|
+
type JourneyFlowCreateParams as JourneyFlowCreateParams,
|
|
1868
|
+
type JourneyFlowUpdateParams as JourneyFlowUpdateParams,
|
|
1869
|
+
type JourneyFlowDeleteParams as JourneyFlowDeleteParams,
|
|
1870
|
+
type JourneyFlowResultsParams as JourneyFlowResultsParams,
|
|
1871
|
+
type JourneyFlowExportParams as JourneyFlowExportParams,
|
|
1872
|
+
type JourneyFlowPreviewParams as JourneyFlowPreviewParams,
|
|
1873
|
+
};
|
|
1874
|
+
|
|
1875
|
+
export {
|
|
1876
|
+
TestEvents as TestEvents,
|
|
1877
|
+
type TestEventListResponse as TestEventListResponse,
|
|
1878
|
+
type TestEventCreateResponse as TestEventCreateResponse,
|
|
1879
|
+
type TestEventRetrieveResponse as TestEventRetrieveResponse,
|
|
1880
|
+
type TestEventDispatchesResponse as TestEventDispatchesResponse,
|
|
1881
|
+
type TestEventListResponsesCursor as TestEventListResponsesCursor,
|
|
1882
|
+
type TestEventListParams as TestEventListParams,
|
|
1883
|
+
type TestEventCreateParams as TestEventCreateParams,
|
|
1884
|
+
};
|
|
1786
1885
|
}
|
|
@@ -0,0 +1,98 @@
|
|
|
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 { RequestOptions } from '../internal/request-options';
|
|
6
|
+
|
|
7
|
+
export class Analytics extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Discover the filter properties, operators, and providers available to analytics
|
|
10
|
+
* query definitions. Requires scope: variables:find-default
|
|
11
|
+
*/
|
|
12
|
+
queryCatalog(options?: RequestOptions): APIPromise<AnalyticsQueryCatalogResponse> {
|
|
13
|
+
return this._client.get('/rest/v1/analytics/query-catalog', options);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Discover property paths recently observed in event data. Results are suggestions
|
|
18
|
+
* from a fixed recent 30-day sample and may be incomplete; callers can still use
|
|
19
|
+
* manually entered paths. Use `eventName` and `sourceId` to narrow the
|
|
20
|
+
* suggestions. Requires scope: variables:find-custom, web-analytics:view
|
|
21
|
+
*/
|
|
22
|
+
propertySuggestions(
|
|
23
|
+
query: AnalyticsPropertySuggestionsParams | null | undefined = {},
|
|
24
|
+
options?: RequestOptions,
|
|
25
|
+
): APIPromise<AnalyticsPropertySuggestionsResponse> {
|
|
26
|
+
return this._client.get('/rest/v1/analytics/property-suggestions', { query, ...options });
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export interface AnalyticsQueryCatalogResponse {
|
|
31
|
+
entries: Array<AnalyticsQueryCatalogResponse.Entry>;
|
|
32
|
+
|
|
33
|
+
limitations: Array<string>;
|
|
34
|
+
|
|
35
|
+
version: 1;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export namespace AnalyticsQueryCatalogResponse {
|
|
39
|
+
export interface Entry {
|
|
40
|
+
id: string;
|
|
41
|
+
|
|
42
|
+
label: string;
|
|
43
|
+
|
|
44
|
+
missingBehavior: string;
|
|
45
|
+
|
|
46
|
+
operators: Array<string>;
|
|
47
|
+
|
|
48
|
+
provider: string;
|
|
49
|
+
|
|
50
|
+
scope: string;
|
|
51
|
+
|
|
52
|
+
type: string;
|
|
53
|
+
|
|
54
|
+
allowedTypes?: Array<string> | null;
|
|
55
|
+
|
|
56
|
+
requiresPath?: boolean | null;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export interface AnalyticsPropertySuggestionsResponse {
|
|
61
|
+
entities: Array<AnalyticsPropertySuggestionsResponse.Entity>;
|
|
62
|
+
|
|
63
|
+
from: string;
|
|
64
|
+
|
|
65
|
+
sampled: boolean;
|
|
66
|
+
|
|
67
|
+
to: string;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export namespace AnalyticsPropertySuggestionsResponse {
|
|
71
|
+
export interface Entity {
|
|
72
|
+
path: Array<string>;
|
|
73
|
+
|
|
74
|
+
property: 'event.properties' | 'event.visitor_properties';
|
|
75
|
+
|
|
76
|
+
type: 'string' | 'number' | 'boolean';
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export interface AnalyticsPropertySuggestionsParams {
|
|
81
|
+
/**
|
|
82
|
+
* Optional exact event name to scope the suggestions.
|
|
83
|
+
*/
|
|
84
|
+
eventName?: string;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Optional exact source identifier to scope the suggestions.
|
|
88
|
+
*/
|
|
89
|
+
sourceId?: string;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export declare namespace Analytics {
|
|
93
|
+
export {
|
|
94
|
+
type AnalyticsQueryCatalogResponse as AnalyticsQueryCatalogResponse,
|
|
95
|
+
type AnalyticsPropertySuggestionsResponse as AnalyticsPropertySuggestionsResponse,
|
|
96
|
+
type AnalyticsPropertySuggestionsParams as AnalyticsPropertySuggestionsParams,
|
|
97
|
+
};
|
|
98
|
+
}
|
|
@@ -2772,6 +2772,8 @@ export interface ConsentSettingAnalyticsResponse {
|
|
|
2772
2772
|
* time series without gap-handling logic.
|
|
2773
2773
|
*/
|
|
2774
2774
|
items: Array<ConsentSettingAnalyticsResponse.Item>;
|
|
2775
|
+
|
|
2776
|
+
totals: ConsentSettingAnalyticsResponse.Totals;
|
|
2775
2777
|
}
|
|
2776
2778
|
|
|
2777
2779
|
export namespace ConsentSettingAnalyticsResponse {
|
|
@@ -2810,6 +2812,20 @@ export namespace ConsentSettingAnalyticsResponse {
|
|
|
2810
2812
|
|
|
2811
2813
|
previousOptOutRate?: number | null;
|
|
2812
2814
|
}
|
|
2815
|
+
|
|
2816
|
+
export interface Totals {
|
|
2817
|
+
bannerViews: number;
|
|
2818
|
+
|
|
2819
|
+
closeIconClicks: number;
|
|
2820
|
+
|
|
2821
|
+
explicitOptIns: number;
|
|
2822
|
+
|
|
2823
|
+
explicitOptOuts: number;
|
|
2824
|
+
|
|
2825
|
+
optInRate: number;
|
|
2826
|
+
|
|
2827
|
+
optOutRate: number;
|
|
2828
|
+
}
|
|
2813
2829
|
}
|
|
2814
2830
|
|
|
2815
2831
|
export interface ConsentSettingPageAnalysisResponse {
|
|
@@ -161,6 +161,7 @@ export interface DestinationListResponse {
|
|
|
161
161
|
| 'QuantcastCAPI'
|
|
162
162
|
| 'QuoraAds'
|
|
163
163
|
| 'Reddit'
|
|
164
|
+
| 'RedditCapiV3'
|
|
164
165
|
| 'Rokt'
|
|
165
166
|
| 'RokuCAPI'
|
|
166
167
|
| 'SnapchatAdsCapi'
|
|
@@ -277,6 +278,7 @@ export interface DestinationCreateResponse {
|
|
|
277
278
|
| 'QuantcastCAPI'
|
|
278
279
|
| 'QuoraAds'
|
|
279
280
|
| 'Reddit'
|
|
281
|
+
| 'RedditCapiV3'
|
|
280
282
|
| 'Rokt'
|
|
281
283
|
| 'RokuCAPI'
|
|
282
284
|
| 'SnapchatAdsCapi'
|
|
@@ -393,6 +395,7 @@ export interface DestinationRetrieveResponse {
|
|
|
393
395
|
| 'QuantcastCAPI'
|
|
394
396
|
| 'QuoraAds'
|
|
395
397
|
| 'Reddit'
|
|
398
|
+
| 'RedditCapiV3'
|
|
396
399
|
| 'Rokt'
|
|
397
400
|
| 'RokuCAPI'
|
|
398
401
|
| 'SnapchatAdsCapi'
|
|
@@ -509,6 +512,7 @@ export interface DestinationUpdateResponse {
|
|
|
509
512
|
| 'QuantcastCAPI'
|
|
510
513
|
| 'QuoraAds'
|
|
511
514
|
| 'Reddit'
|
|
515
|
+
| 'RedditCapiV3'
|
|
512
516
|
| 'Rokt'
|
|
513
517
|
| 'RokuCAPI'
|
|
514
518
|
| 'SnapchatAdsCapi'
|
|
@@ -581,6 +585,7 @@ export namespace DestinationTypesResponse {
|
|
|
581
585
|
| 'Amplitude'
|
|
582
586
|
| 'TikTok'
|
|
583
587
|
| 'Reddit'
|
|
588
|
+
| 'RedditCapiV3'
|
|
584
589
|
| 'Podscribe'
|
|
585
590
|
| 'Pinterest'
|
|
586
591
|
| 'Mailchimp'
|
|
@@ -860,6 +865,7 @@ export interface DestinationListParams extends CursorParams {
|
|
|
860
865
|
| 'QuantcastCAPI'
|
|
861
866
|
| 'QuoraAds'
|
|
862
867
|
| 'Reddit'
|
|
868
|
+
| 'RedditCapiV3'
|
|
863
869
|
| 'Rokt'
|
|
864
870
|
| 'RokuCAPI'
|
|
865
871
|
| 'SnapchatAdsCapi'
|
|
@@ -921,6 +927,7 @@ export interface DestinationCreateParams {
|
|
|
921
927
|
| 'Amplitude'
|
|
922
928
|
| 'TikTok'
|
|
923
929
|
| 'Reddit'
|
|
930
|
+
| 'RedditCapiV3'
|
|
924
931
|
| 'Podscribe'
|
|
925
932
|
| 'Pinterest'
|
|
926
933
|
| 'Mailchimp'
|