@oursprivacy/platform-sdk 1.55.0 → 1.57.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/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs.map +1 -1
- package/package.json +4 -2
- package/resources/consent-settings.d.mts +90 -1
- package/resources/consent-settings.d.mts.map +1 -1
- package/resources/consent-settings.d.ts +90 -1
- package/resources/consent-settings.d.ts.map +1 -1
- package/resources/consent-settings.js +13 -0
- package/resources/consent-settings.js.map +1 -1
- package/resources/consent-settings.mjs +13 -0
- package/resources/consent-settings.mjs.map +1 -1
- package/resources/custom-domains.d.mts +10 -4
- package/resources/custom-domains.d.mts.map +1 -1
- package/resources/custom-domains.d.ts +10 -4
- package/resources/custom-domains.d.ts.map +1 -1
- package/resources/custom-domains.js +3 -2
- package/resources/custom-domains.js.map +1 -1
- package/resources/custom-domains.mjs +3 -2
- package/resources/custom-domains.mjs.map +1 -1
- package/resources/dashboards.d.mts +4737 -0
- package/resources/dashboards.d.mts.map +1 -0
- package/resources/dashboards.d.ts +4737 -0
- package/resources/dashboards.d.ts.map +1 -0
- package/resources/dashboards.js +124 -0
- package/resources/dashboards.js.map +1 -0
- package/resources/dashboards.mjs +120 -0
- package/resources/dashboards.mjs.map +1 -0
- package/resources/data-governance.d.mts +19 -26
- package/resources/data-governance.d.mts.map +1 -1
- package/resources/data-governance.d.ts +19 -26
- package/resources/data-governance.d.ts.map +1 -1
- package/resources/data-governance.js +14 -13
- package/resources/data-governance.js.map +1 -1
- package/resources/data-governance.mjs +14 -13
- package/resources/data-governance.mjs.map +1 -1
- package/resources/destinations.d.mts +46 -11
- package/resources/destinations.d.mts.map +1 -1
- package/resources/destinations.d.ts +46 -11
- package/resources/destinations.d.ts.map +1 -1
- package/resources/experiment-settings.d.mts +84 -24
- package/resources/experiment-settings.d.mts.map +1 -1
- package/resources/experiment-settings.d.ts +84 -24
- package/resources/experiment-settings.d.ts.map +1 -1
- package/resources/experiment-settings.js +9 -4
- package/resources/experiment-settings.js.map +1 -1
- package/resources/experiment-settings.mjs +9 -4
- package/resources/experiment-settings.mjs.map +1 -1
- package/resources/funnels.d.mts +64 -7
- package/resources/funnels.d.mts.map +1 -1
- package/resources/funnels.d.ts +64 -7
- package/resources/funnels.d.ts.map +1 -1
- package/resources/funnels.js +2 -1
- package/resources/funnels.js.map +1 -1
- package/resources/funnels.mjs +2 -1
- 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/insights.d.mts +1152 -0
- package/resources/insights.d.mts.map +1 -0
- package/resources/insights.d.ts +1152 -0
- package/resources/insights.d.ts.map +1 -0
- package/resources/insights.js +81 -0
- package/resources/insights.js.map +1 -0
- package/resources/insights.mjs +77 -0
- package/resources/insights.mjs.map +1 -0
- package/resources/journey-flows.d.mts +214 -17
- package/resources/journey-flows.d.mts.map +1 -1
- package/resources/journey-flows.d.ts +214 -17
- package/resources/journey-flows.d.ts.map +1 -1
- package/resources/journey-flows.js +17 -13
- package/resources/journey-flows.js.map +1 -1
- package/resources/journey-flows.mjs +17 -13
- package/resources/journey-flows.mjs.map +1 -1
- package/resources/replay-settings.d.mts +72 -42
- package/resources/replay-settings.d.mts.map +1 -1
- package/resources/replay-settings.d.ts +72 -42
- package/resources/replay-settings.d.ts.map +1 -1
- package/resources/replay-settings.js +12 -7
- package/resources/replay-settings.js.map +1 -1
- package/resources/replay-settings.mjs +12 -7
- package/resources/replay-settings.mjs.map +1 -1
- package/resources/report-branding.d.mts +157 -0
- package/resources/report-branding.d.mts.map +1 -0
- package/resources/report-branding.d.ts +157 -0
- package/resources/report-branding.d.ts.map +1 -0
- package/resources/report-branding.js +39 -0
- package/resources/report-branding.js.map +1 -0
- package/resources/report-branding.mjs +35 -0
- package/resources/report-branding.mjs.map +1 -0
- package/resources/tag-manager-triggers.d.mts +46 -4
- package/resources/tag-manager-triggers.d.mts.map +1 -1
- package/resources/tag-manager-triggers.d.ts +46 -4
- package/resources/tag-manager-triggers.d.ts.map +1 -1
- package/resources/tag-manager-triggers.js +6 -4
- package/resources/tag-manager-triggers.js.map +1 -1
- package/resources/tag-manager-triggers.mjs +6 -4
- package/resources/tag-manager-triggers.mjs.map +1 -1
- package/resources/tag-manager-variables.d.mts +25 -13
- package/resources/tag-manager-variables.d.mts.map +1 -1
- package/resources/tag-manager-variables.d.ts +25 -13
- package/resources/tag-manager-variables.d.ts.map +1 -1
- package/resources/tag-manager-variables.js +9 -4
- package/resources/tag-manager-variables.js.map +1 -1
- package/resources/tag-manager-variables.mjs +9 -4
- package/resources/tag-manager-variables.mjs.map +1 -1
- package/resources/tag-managers.d.mts +17 -1
- package/resources/tag-managers.d.mts.map +1 -1
- package/resources/tag-managers.d.ts +17 -1
- package/resources/tag-managers.d.ts.map +1 -1
- package/resources/tag-managers.js +10 -0
- package/resources/tag-managers.js.map +1 -1
- package/resources/tag-managers.mjs +10 -0
- package/resources/tag-managers.mjs.map +1 -1
- package/resources/test-events.d.mts +28 -13
- package/resources/test-events.d.mts.map +1 -1
- package/resources/test-events.d.ts +28 -13
- package/resources/test-events.d.ts.map +1 -1
- package/resources/versions.d.mts +607 -139
- package/resources/versions.d.mts.map +1 -1
- package/resources/versions.d.ts +607 -139
- package/resources/versions.d.ts.map +1 -1
- package/resources/versions.js +2 -0
- package/resources/versions.js.map +1 -1
- package/resources/versions.mjs +2 -0
- package/resources/versions.mjs.map +1 -1
- package/resources/web-analytics.d.mts +91 -39
- package/resources/web-analytics.d.mts.map +1 -1
- package/resources/web-analytics.d.ts +91 -39
- package/resources/web-analytics.d.ts.map +1 -1
- package/resources/web-analytics.js +11 -0
- package/resources/web-analytics.js.map +1 -1
- package/resources/web-analytics.mjs +11 -0
- package/resources/web-analytics.mjs.map +1 -1
- package/resources/web-scanners.d.mts +3 -2
- package/resources/web-scanners.d.mts.map +1 -1
- package/resources/web-scanners.d.ts +3 -2
- package/resources/web-scanners.d.ts.map +1 -1
- package/resources/web-scanners.js +3 -2
- package/resources/web-scanners.js.map +1 -1
- package/resources/web-scanners.mjs +3 -2
- package/resources/web-scanners.mjs.map +1 -1
- package/src/client.ts +118 -3
- package/src/internal/utils/log.ts +1 -3
- package/src/resources/consent-settings.ts +117 -0
- package/src/resources/custom-domains.ts +14 -4
- package/src/resources/dashboards.ts +8757 -0
- package/src/resources/data-governance.ts +19 -26
- package/src/resources/destinations.ts +50 -6
- package/src/resources/experiment-settings.ts +84 -24
- package/src/resources/funnels.ts +64 -7
- package/src/resources/index.ts +54 -0
- package/src/resources/insights.ts +1976 -0
- package/src/resources/journey-flows.ts +214 -17
- package/src/resources/replay-settings.ts +77 -42
- package/src/resources/report-branding.ts +207 -0
- package/src/resources/tag-manager-triggers.ts +55 -4
- package/src/resources/tag-manager-variables.ts +25 -13
- package/src/resources/tag-managers.ts +21 -0
- package/src/resources/test-events.ts +30 -13
- package/src/resources/versions.ts +777 -139
- package/src/resources/web-analytics.ts +137 -38
- package/src/resources/web-scanners.ts +3 -2
- 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
package/src/client.ts
CHANGED
|
@@ -77,6 +77,8 @@ import {
|
|
|
77
77
|
ConsentSettingCreateResponse,
|
|
78
78
|
ConsentSettingDeleteResponse,
|
|
79
79
|
ConsentSettingListResponse,
|
|
80
|
+
ConsentSettingOverviewParams,
|
|
81
|
+
ConsentSettingOverviewResponse,
|
|
80
82
|
ConsentSettingPageAnalysisParams,
|
|
81
83
|
ConsentSettingPageAnalysisResponse,
|
|
82
84
|
ConsentSettingReplaceParams,
|
|
@@ -106,6 +108,29 @@ import {
|
|
|
106
108
|
CustomDomainStatusResponse,
|
|
107
109
|
CustomDomains,
|
|
108
110
|
} from './resources/custom-domains';
|
|
111
|
+
import {
|
|
112
|
+
DashboardCreateParams,
|
|
113
|
+
DashboardCreateResponse,
|
|
114
|
+
DashboardDeleteParams,
|
|
115
|
+
DashboardDeleteResponse,
|
|
116
|
+
DashboardDuplicateParams,
|
|
117
|
+
DashboardDuplicateResponse,
|
|
118
|
+
DashboardListParams,
|
|
119
|
+
DashboardListResponse,
|
|
120
|
+
DashboardListResponsesCursor,
|
|
121
|
+
DashboardPreviewParams,
|
|
122
|
+
DashboardPreviewResponse,
|
|
123
|
+
DashboardReplayPreviewParams,
|
|
124
|
+
DashboardReplayPreviewResponse,
|
|
125
|
+
DashboardReplayTileResultParams,
|
|
126
|
+
DashboardReplayTileResultResponse,
|
|
127
|
+
DashboardResultsParams,
|
|
128
|
+
DashboardResultsResponse,
|
|
129
|
+
DashboardRetrieveResponse,
|
|
130
|
+
DashboardUpdateParams,
|
|
131
|
+
DashboardUpdateResponse,
|
|
132
|
+
Dashboards,
|
|
133
|
+
} from './resources/dashboards';
|
|
109
134
|
import {
|
|
110
135
|
DataGovernance,
|
|
111
136
|
DataGovernanceCreateParams,
|
|
@@ -216,6 +241,24 @@ import {
|
|
|
216
241
|
HeatmapPageSummaryResponse,
|
|
217
242
|
HeatmapPages,
|
|
218
243
|
} from './resources/heatmap-pages';
|
|
244
|
+
import {
|
|
245
|
+
InsightCapabilitiesResponse,
|
|
246
|
+
InsightCreateParams,
|
|
247
|
+
InsightCreateResponse,
|
|
248
|
+
InsightDeleteParams,
|
|
249
|
+
InsightDeleteResponse,
|
|
250
|
+
InsightListParams,
|
|
251
|
+
InsightListResponse,
|
|
252
|
+
InsightListResponsesCursor,
|
|
253
|
+
InsightPreviewParams,
|
|
254
|
+
InsightPreviewResponse,
|
|
255
|
+
InsightResultsParams,
|
|
256
|
+
InsightResultsResponse,
|
|
257
|
+
InsightRetrieveResponse,
|
|
258
|
+
InsightUpdateParams,
|
|
259
|
+
InsightUpdateResponse,
|
|
260
|
+
Insights,
|
|
261
|
+
} from './resources/insights';
|
|
219
262
|
import {
|
|
220
263
|
JourneyFlowCapabilitiesResponse,
|
|
221
264
|
JourneyFlowCreateParams,
|
|
@@ -294,6 +337,14 @@ import {
|
|
|
294
337
|
ReplaySettingUpdateResponse,
|
|
295
338
|
ReplaySettings,
|
|
296
339
|
} from './resources/replay-settings';
|
|
340
|
+
import {
|
|
341
|
+
ReportBranding,
|
|
342
|
+
ReportBrandingDeleteResponse,
|
|
343
|
+
ReportBrandingReplaceParams,
|
|
344
|
+
ReportBrandingReplaceResponse,
|
|
345
|
+
ReportBrandingRetrieveParams,
|
|
346
|
+
ReportBrandingRetrieveResponse,
|
|
347
|
+
} from './resources/report-branding';
|
|
297
348
|
import {
|
|
298
349
|
SessionReplayListParams,
|
|
299
350
|
SessionReplayListResponse,
|
|
@@ -389,6 +440,7 @@ import {
|
|
|
389
440
|
TagManagerCreateParams,
|
|
390
441
|
TagManagerCreateResponse,
|
|
391
442
|
TagManagerDeleteResponse,
|
|
443
|
+
TagManagerInstallSnippetResponse,
|
|
392
444
|
TagManagerListResponse,
|
|
393
445
|
TagManagerPreviewParams,
|
|
394
446
|
TagManagerPreviewResponse,
|
|
@@ -489,6 +541,8 @@ import {
|
|
|
489
541
|
WebAnalyticsDevicesResponse,
|
|
490
542
|
WebAnalyticsLocationsParams,
|
|
491
543
|
WebAnalyticsLocationsResponse,
|
|
544
|
+
WebAnalyticsOverviewInsightParams,
|
|
545
|
+
WebAnalyticsOverviewInsightResponse,
|
|
492
546
|
WebAnalyticsOverviewParams,
|
|
493
547
|
WebAnalyticsOverviewResponse,
|
|
494
548
|
WebAnalyticsPagesParams,
|
|
@@ -934,9 +988,7 @@ export class OursPrivacyPlatform {
|
|
|
934
988
|
throw new Errors.APIConnectionError({ cause: response });
|
|
935
989
|
}
|
|
936
990
|
|
|
937
|
-
const responseInfo = `[${requestLogID}${retryLogStr}] ${req.method} ${url} ${
|
|
938
|
-
response.ok ? 'succeeded' : 'failed'
|
|
939
|
-
} with status ${response.status} in ${headersTime - startTime}ms`;
|
|
991
|
+
const responseInfo = `[${requestLogID}${retryLogStr}] ${req.method} ${url} ${response.ok ? 'succeeded' : 'failed'} with status ${response.status} in ${headersTime - startTime}ms`;
|
|
940
992
|
|
|
941
993
|
if (!response.ok) {
|
|
942
994
|
const shouldRetry = await this.shouldRetry(response);
|
|
@@ -1319,6 +1371,9 @@ export class OursPrivacyPlatform {
|
|
|
1319
1371
|
personalizationProperties: API.PersonalizationProperties = new API.PersonalizationProperties(this);
|
|
1320
1372
|
customDomains: API.CustomDomains = new API.CustomDomains(this);
|
|
1321
1373
|
analytics: API.Analytics = new API.Analytics(this);
|
|
1374
|
+
dashboards: API.Dashboards = new API.Dashboards(this);
|
|
1375
|
+
reportBranding: API.ReportBranding = new API.ReportBranding(this);
|
|
1376
|
+
insights: API.Insights = new API.Insights(this);
|
|
1322
1377
|
journeyFlows: API.JourneyFlows = new API.JourneyFlows(this);
|
|
1323
1378
|
testEvents: API.TestEvents = new API.TestEvents(this);
|
|
1324
1379
|
}
|
|
@@ -1360,6 +1415,9 @@ OursPrivacyPlatform.Me = Me;
|
|
|
1360
1415
|
OursPrivacyPlatform.PersonalizationProperties = PersonalizationProperties;
|
|
1361
1416
|
OursPrivacyPlatform.CustomDomains = CustomDomains;
|
|
1362
1417
|
OursPrivacyPlatform.Analytics = Analytics;
|
|
1418
|
+
OursPrivacyPlatform.Dashboards = Dashboards;
|
|
1419
|
+
OursPrivacyPlatform.ReportBranding = ReportBranding;
|
|
1420
|
+
OursPrivacyPlatform.Insights = Insights;
|
|
1363
1421
|
OursPrivacyPlatform.JourneyFlows = JourneyFlows;
|
|
1364
1422
|
OursPrivacyPlatform.TestEvents = TestEvents;
|
|
1365
1423
|
|
|
@@ -1422,6 +1480,7 @@ export declare namespace OursPrivacyPlatform {
|
|
|
1422
1480
|
type ConsentSettingUpdateResponse as ConsentSettingUpdateResponse,
|
|
1423
1481
|
type ConsentSettingDeleteResponse as ConsentSettingDeleteResponse,
|
|
1424
1482
|
type ConsentSettingAnalyticsResponse as ConsentSettingAnalyticsResponse,
|
|
1483
|
+
type ConsentSettingOverviewResponse as ConsentSettingOverviewResponse,
|
|
1425
1484
|
type ConsentSettingAnalyticsMonthlyResponse as ConsentSettingAnalyticsMonthlyResponse,
|
|
1426
1485
|
type ConsentSettingAnalyticsCapabilitiesResponse as ConsentSettingAnalyticsCapabilitiesResponse,
|
|
1427
1486
|
type ConsentSettingPageAnalysisResponse as ConsentSettingPageAnalysisResponse,
|
|
@@ -1429,6 +1488,7 @@ export declare namespace OursPrivacyPlatform {
|
|
|
1429
1488
|
type ConsentSettingReplaceParams as ConsentSettingReplaceParams,
|
|
1430
1489
|
type ConsentSettingUpdateParams as ConsentSettingUpdateParams,
|
|
1431
1490
|
type ConsentSettingAnalyticsParams as ConsentSettingAnalyticsParams,
|
|
1491
|
+
type ConsentSettingOverviewParams as ConsentSettingOverviewParams,
|
|
1432
1492
|
type ConsentSettingAnalyticsMonthlyParams as ConsentSettingAnalyticsMonthlyParams,
|
|
1433
1493
|
type ConsentSettingAnalyticsCapabilitiesParams as ConsentSettingAnalyticsCapabilitiesParams,
|
|
1434
1494
|
type ConsentSettingPageAnalysisParams as ConsentSettingPageAnalysisParams,
|
|
@@ -1654,6 +1714,7 @@ export declare namespace OursPrivacyPlatform {
|
|
|
1654
1714
|
|
|
1655
1715
|
export {
|
|
1656
1716
|
TagManagers as TagManagers,
|
|
1717
|
+
type TagManagerInstallSnippetResponse as TagManagerInstallSnippetResponse,
|
|
1657
1718
|
type TagManagerPreviewResponse as TagManagerPreviewResponse,
|
|
1658
1719
|
type TagManagerListResponse as TagManagerListResponse,
|
|
1659
1720
|
type TagManagerCreateResponse as TagManagerCreateResponse,
|
|
@@ -1806,6 +1867,7 @@ export declare namespace OursPrivacyPlatform {
|
|
|
1806
1867
|
|
|
1807
1868
|
export {
|
|
1808
1869
|
WebAnalytics as WebAnalytics,
|
|
1870
|
+
type WebAnalyticsOverviewInsightResponse as WebAnalyticsOverviewInsightResponse,
|
|
1809
1871
|
type WebAnalyticsOverviewResponse as WebAnalyticsOverviewResponse,
|
|
1810
1872
|
type WebAnalyticsSourcesResponse as WebAnalyticsSourcesResponse,
|
|
1811
1873
|
type WebAnalyticsPagesResponse as WebAnalyticsPagesResponse,
|
|
@@ -1813,6 +1875,7 @@ export declare namespace OursPrivacyPlatform {
|
|
|
1813
1875
|
type WebAnalyticsDevicesResponse as WebAnalyticsDevicesResponse,
|
|
1814
1876
|
type WebAnalyticsCurrentVisitorsResponse as WebAnalyticsCurrentVisitorsResponse,
|
|
1815
1877
|
type WebAnalyticsPathExplorerResponse as WebAnalyticsPathExplorerResponse,
|
|
1878
|
+
type WebAnalyticsOverviewInsightParams as WebAnalyticsOverviewInsightParams,
|
|
1816
1879
|
type WebAnalyticsOverviewParams as WebAnalyticsOverviewParams,
|
|
1817
1880
|
type WebAnalyticsSourcesParams as WebAnalyticsSourcesParams,
|
|
1818
1881
|
type WebAnalyticsPagesParams as WebAnalyticsPagesParams,
|
|
@@ -1895,6 +1958,58 @@ export declare namespace OursPrivacyPlatform {
|
|
|
1895
1958
|
type AnalyticsPropertySuggestionsParams as AnalyticsPropertySuggestionsParams,
|
|
1896
1959
|
};
|
|
1897
1960
|
|
|
1961
|
+
export {
|
|
1962
|
+
Dashboards as Dashboards,
|
|
1963
|
+
type DashboardListResponse as DashboardListResponse,
|
|
1964
|
+
type DashboardCreateResponse as DashboardCreateResponse,
|
|
1965
|
+
type DashboardRetrieveResponse as DashboardRetrieveResponse,
|
|
1966
|
+
type DashboardUpdateResponse as DashboardUpdateResponse,
|
|
1967
|
+
type DashboardDeleteResponse as DashboardDeleteResponse,
|
|
1968
|
+
type DashboardDuplicateResponse as DashboardDuplicateResponse,
|
|
1969
|
+
type DashboardPreviewResponse as DashboardPreviewResponse,
|
|
1970
|
+
type DashboardResultsResponse as DashboardResultsResponse,
|
|
1971
|
+
type DashboardReplayTileResultResponse as DashboardReplayTileResultResponse,
|
|
1972
|
+
type DashboardReplayPreviewResponse as DashboardReplayPreviewResponse,
|
|
1973
|
+
type DashboardListResponsesCursor as DashboardListResponsesCursor,
|
|
1974
|
+
type DashboardListParams as DashboardListParams,
|
|
1975
|
+
type DashboardCreateParams as DashboardCreateParams,
|
|
1976
|
+
type DashboardUpdateParams as DashboardUpdateParams,
|
|
1977
|
+
type DashboardDeleteParams as DashboardDeleteParams,
|
|
1978
|
+
type DashboardDuplicateParams as DashboardDuplicateParams,
|
|
1979
|
+
type DashboardPreviewParams as DashboardPreviewParams,
|
|
1980
|
+
type DashboardResultsParams as DashboardResultsParams,
|
|
1981
|
+
type DashboardReplayTileResultParams as DashboardReplayTileResultParams,
|
|
1982
|
+
type DashboardReplayPreviewParams as DashboardReplayPreviewParams,
|
|
1983
|
+
};
|
|
1984
|
+
|
|
1985
|
+
export {
|
|
1986
|
+
ReportBranding as ReportBranding,
|
|
1987
|
+
type ReportBrandingRetrieveResponse as ReportBrandingRetrieveResponse,
|
|
1988
|
+
type ReportBrandingReplaceResponse as ReportBrandingReplaceResponse,
|
|
1989
|
+
type ReportBrandingDeleteResponse as ReportBrandingDeleteResponse,
|
|
1990
|
+
type ReportBrandingRetrieveParams as ReportBrandingRetrieveParams,
|
|
1991
|
+
type ReportBrandingReplaceParams as ReportBrandingReplaceParams,
|
|
1992
|
+
};
|
|
1993
|
+
|
|
1994
|
+
export {
|
|
1995
|
+
Insights as Insights,
|
|
1996
|
+
type InsightListResponse as InsightListResponse,
|
|
1997
|
+
type InsightCreateResponse as InsightCreateResponse,
|
|
1998
|
+
type InsightRetrieveResponse as InsightRetrieveResponse,
|
|
1999
|
+
type InsightUpdateResponse as InsightUpdateResponse,
|
|
2000
|
+
type InsightDeleteResponse as InsightDeleteResponse,
|
|
2001
|
+
type InsightCapabilitiesResponse as InsightCapabilitiesResponse,
|
|
2002
|
+
type InsightResultsResponse as InsightResultsResponse,
|
|
2003
|
+
type InsightPreviewResponse as InsightPreviewResponse,
|
|
2004
|
+
type InsightListResponsesCursor as InsightListResponsesCursor,
|
|
2005
|
+
type InsightListParams as InsightListParams,
|
|
2006
|
+
type InsightCreateParams as InsightCreateParams,
|
|
2007
|
+
type InsightUpdateParams as InsightUpdateParams,
|
|
2008
|
+
type InsightDeleteParams as InsightDeleteParams,
|
|
2009
|
+
type InsightResultsParams as InsightResultsParams,
|
|
2010
|
+
type InsightPreviewParams as InsightPreviewParams,
|
|
2011
|
+
};
|
|
2012
|
+
|
|
1898
2013
|
export {
|
|
1899
2014
|
JourneyFlows as JourneyFlows,
|
|
1900
2015
|
type JourneyFlowListResponse as JourneyFlowListResponse,
|
|
@@ -33,9 +33,7 @@ export const parseLogLevel = (
|
|
|
33
33
|
return maybeLevel;
|
|
34
34
|
}
|
|
35
35
|
loggerFor(client).warn(
|
|
36
|
-
`${sourceName} was set to ${JSON.stringify(maybeLevel)}, expected one of ${JSON.stringify(
|
|
37
|
-
Object.keys(levelNumbers),
|
|
38
|
-
)}`,
|
|
36
|
+
`${sourceName} was set to ${JSON.stringify(maybeLevel)}, expected one of ${JSON.stringify(Object.keys(levelNumbers))}`,
|
|
39
37
|
);
|
|
40
38
|
return undefined;
|
|
41
39
|
};
|
|
@@ -102,6 +102,23 @@ export class ConsentSettings extends APIResource {
|
|
|
102
102
|
return this._client.get(path`/rest/v1/consent-settings/${id}/analytics`, { query, ...options });
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
+
/**
|
|
106
|
+
* Returns daily banner reach, explicit opt-ins and opt-outs, dismissal events, and
|
|
107
|
+
* consent rates across the account. Includes historical events without a
|
|
108
|
+
* consent-setting ID. Visitor totals are deduplicated across settings and dates;
|
|
109
|
+
* dismissals count events. Rates use the larger of banner reach or opt-ins plus
|
|
110
|
+
* opt-outs plus dismissals as their denominator, matching Consent Analytics.
|
|
111
|
+
* Requires Analytics access and report:consent-analytics. Limited to 60 included
|
|
112
|
+
* UTC calendar days. Requires API-key scope or current OAuth user permission:
|
|
113
|
+
* report:consent-analytics
|
|
114
|
+
*/
|
|
115
|
+
overview(
|
|
116
|
+
query: ConsentSettingOverviewParams,
|
|
117
|
+
options?: RequestOptions,
|
|
118
|
+
): APIPromise<ConsentSettingOverviewResponse> {
|
|
119
|
+
return this._client.get('/rest/v1/consent-settings/analytics-overview', { query, ...options });
|
|
120
|
+
}
|
|
121
|
+
|
|
105
122
|
/**
|
|
106
123
|
* Monthly consent trends over up to 365 included days. Returns unique visitor
|
|
107
124
|
* counts within each UTC calendar month, event counts for dismissals, rates, and
|
|
@@ -8072,6 +8089,92 @@ export namespace ConsentSettingAnalyticsResponse {
|
|
|
8072
8089
|
}
|
|
8073
8090
|
}
|
|
8074
8091
|
|
|
8092
|
+
export interface ConsentSettingOverviewResponse {
|
|
8093
|
+
items: Array<ConsentSettingOverviewResponse.Item>;
|
|
8094
|
+
|
|
8095
|
+
/**
|
|
8096
|
+
* Whole-window counts; do not sum daily unique visitors.
|
|
8097
|
+
*/
|
|
8098
|
+
totals: ConsentSettingOverviewResponse.Totals;
|
|
8099
|
+
}
|
|
8100
|
+
|
|
8101
|
+
export namespace ConsentSettingOverviewResponse {
|
|
8102
|
+
export interface Item {
|
|
8103
|
+
/**
|
|
8104
|
+
* Unique visitors shown the banner.
|
|
8105
|
+
*/
|
|
8106
|
+
bannerViews: number;
|
|
8107
|
+
|
|
8108
|
+
/**
|
|
8109
|
+
* Banner dismissal events.
|
|
8110
|
+
*/
|
|
8111
|
+
closeIconClicks: number;
|
|
8112
|
+
|
|
8113
|
+
dateTime: string;
|
|
8114
|
+
|
|
8115
|
+
/**
|
|
8116
|
+
* Unique visitors who accepted all.
|
|
8117
|
+
*/
|
|
8118
|
+
explicitOptIns: number;
|
|
8119
|
+
|
|
8120
|
+
/**
|
|
8121
|
+
* Unique visitors who accepted necessary categories only.
|
|
8122
|
+
*/
|
|
8123
|
+
explicitOptOuts: number;
|
|
8124
|
+
|
|
8125
|
+
/**
|
|
8126
|
+
* Opt-in percentage using the Consent Analytics denominator.
|
|
8127
|
+
*/
|
|
8128
|
+
optInRate: number;
|
|
8129
|
+
|
|
8130
|
+
/**
|
|
8131
|
+
* Opt-out percentage using the Consent Analytics denominator.
|
|
8132
|
+
*/
|
|
8133
|
+
optOutRate: number;
|
|
8134
|
+
|
|
8135
|
+
partialPeriod: boolean;
|
|
8136
|
+
|
|
8137
|
+
periodFrom: string;
|
|
8138
|
+
|
|
8139
|
+
periodTo: string;
|
|
8140
|
+
}
|
|
8141
|
+
|
|
8142
|
+
/**
|
|
8143
|
+
* Whole-window counts; do not sum daily unique visitors.
|
|
8144
|
+
*/
|
|
8145
|
+
export interface Totals {
|
|
8146
|
+
/**
|
|
8147
|
+
* Unique visitors shown the banner.
|
|
8148
|
+
*/
|
|
8149
|
+
bannerViews: number;
|
|
8150
|
+
|
|
8151
|
+
/**
|
|
8152
|
+
* Banner dismissal events.
|
|
8153
|
+
*/
|
|
8154
|
+
closeIconClicks: number;
|
|
8155
|
+
|
|
8156
|
+
/**
|
|
8157
|
+
* Unique visitors who accepted all.
|
|
8158
|
+
*/
|
|
8159
|
+
explicitOptIns: number;
|
|
8160
|
+
|
|
8161
|
+
/**
|
|
8162
|
+
* Unique visitors who accepted necessary categories only.
|
|
8163
|
+
*/
|
|
8164
|
+
explicitOptOuts: number;
|
|
8165
|
+
|
|
8166
|
+
/**
|
|
8167
|
+
* Opt-in percentage using the Consent Analytics denominator.
|
|
8168
|
+
*/
|
|
8169
|
+
optInRate: number;
|
|
8170
|
+
|
|
8171
|
+
/**
|
|
8172
|
+
* Opt-out percentage using the Consent Analytics denominator.
|
|
8173
|
+
*/
|
|
8174
|
+
optOutRate: number;
|
|
8175
|
+
}
|
|
8176
|
+
}
|
|
8177
|
+
|
|
8075
8178
|
export interface ConsentSettingAnalyticsMonthlyResponse {
|
|
8076
8179
|
items: Array<ConsentSettingAnalyticsMonthlyResponse.Item>;
|
|
8077
8180
|
}
|
|
@@ -10785,6 +10888,18 @@ export interface ConsentSettingAnalyticsParams {
|
|
|
10785
10888
|
granularity?: 'DAILY' | 'HOURLY' | 'MONTHLY' | 'WEEKLY';
|
|
10786
10889
|
}
|
|
10787
10890
|
|
|
10891
|
+
export interface ConsentSettingOverviewParams {
|
|
10892
|
+
/**
|
|
10893
|
+
* First included UTC calendar day (YYYY-MM-DD).
|
|
10894
|
+
*/
|
|
10895
|
+
from: string;
|
|
10896
|
+
|
|
10897
|
+
/**
|
|
10898
|
+
* Last included UTC calendar day, at most 60 days including from.
|
|
10899
|
+
*/
|
|
10900
|
+
to: string;
|
|
10901
|
+
}
|
|
10902
|
+
|
|
10788
10903
|
export interface ConsentSettingAnalyticsMonthlyParams {
|
|
10789
10904
|
/**
|
|
10790
10905
|
* Inclusive lower bound of the analytics window, as a UTC calendar day in
|
|
@@ -10895,6 +11010,7 @@ export declare namespace ConsentSettings {
|
|
|
10895
11010
|
type ConsentSettingUpdateResponse as ConsentSettingUpdateResponse,
|
|
10896
11011
|
type ConsentSettingDeleteResponse as ConsentSettingDeleteResponse,
|
|
10897
11012
|
type ConsentSettingAnalyticsResponse as ConsentSettingAnalyticsResponse,
|
|
11013
|
+
type ConsentSettingOverviewResponse as ConsentSettingOverviewResponse,
|
|
10898
11014
|
type ConsentSettingAnalyticsMonthlyResponse as ConsentSettingAnalyticsMonthlyResponse,
|
|
10899
11015
|
type ConsentSettingAnalyticsCapabilitiesResponse as ConsentSettingAnalyticsCapabilitiesResponse,
|
|
10900
11016
|
type ConsentSettingPageAnalysisResponse as ConsentSettingPageAnalysisResponse,
|
|
@@ -10902,6 +11018,7 @@ export declare namespace ConsentSettings {
|
|
|
10902
11018
|
type ConsentSettingReplaceParams as ConsentSettingReplaceParams,
|
|
10903
11019
|
type ConsentSettingUpdateParams as ConsentSettingUpdateParams,
|
|
10904
11020
|
type ConsentSettingAnalyticsParams as ConsentSettingAnalyticsParams,
|
|
11021
|
+
type ConsentSettingOverviewParams as ConsentSettingOverviewParams,
|
|
10905
11022
|
type ConsentSettingAnalyticsMonthlyParams as ConsentSettingAnalyticsMonthlyParams,
|
|
10906
11023
|
type ConsentSettingAnalyticsCapabilitiesParams as ConsentSettingAnalyticsCapabilitiesParams,
|
|
10907
11024
|
type ConsentSettingPageAnalysisParams as ConsentSettingPageAnalysisParams,
|
|
@@ -31,8 +31,9 @@ export class CustomDomains extends APIResource {
|
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
33
|
* Replaces the full custom-domain list for this account and returns `setupStatus`
|
|
34
|
-
* lifecycle guidance. The setup `id` is the path identifier.
|
|
35
|
-
*
|
|
34
|
+
* lifecycle guidance. The setup `id` is the path identifier. The account allowance
|
|
35
|
+
* is returned as `domainLimit` in the setup response (10 by default, up to 99 with
|
|
36
|
+
* an increased allowance). An empty `domains` list removes all custom domains.
|
|
36
37
|
* Duplicate domains are rejected. Domains under `oursprivacy.com` are rejected.
|
|
37
38
|
* Domain delivery and certificate settings are managed by Ours Privacy; DNS
|
|
38
39
|
* changes are customer-managed. Requires scope: `distributionTenant:update`.
|
|
@@ -86,6 +87,8 @@ export namespace CustomDomainStatusResponse {
|
|
|
86
87
|
|
|
87
88
|
createdAt: string | null;
|
|
88
89
|
|
|
90
|
+
domainLimit: number;
|
|
91
|
+
|
|
89
92
|
domains: Array<Setup.Domain>;
|
|
90
93
|
|
|
91
94
|
enabled: boolean;
|
|
@@ -178,6 +181,8 @@ export namespace CustomDomainCreateResponse {
|
|
|
178
181
|
|
|
179
182
|
createdAt: string | null;
|
|
180
183
|
|
|
184
|
+
domainLimit: number;
|
|
185
|
+
|
|
181
186
|
domains: Array<Setup.Domain>;
|
|
182
187
|
|
|
183
188
|
enabled: boolean;
|
|
@@ -270,6 +275,8 @@ export namespace CustomDomainReplaceResponse {
|
|
|
270
275
|
|
|
271
276
|
createdAt: string | null;
|
|
272
277
|
|
|
278
|
+
domainLimit: number;
|
|
279
|
+
|
|
273
280
|
domains: Array<Setup.Domain>;
|
|
274
281
|
|
|
275
282
|
enabled: boolean;
|
|
@@ -362,6 +369,8 @@ export namespace CustomDomainReconcileCertificateResponse {
|
|
|
362
369
|
|
|
363
370
|
createdAt: string | null;
|
|
364
371
|
|
|
372
|
+
domainLimit: number;
|
|
373
|
+
|
|
365
374
|
domains: Array<Setup.Domain>;
|
|
366
375
|
|
|
367
376
|
enabled: boolean;
|
|
@@ -433,8 +442,9 @@ export namespace CustomDomainReconcileCertificateResponse {
|
|
|
433
442
|
|
|
434
443
|
export interface CustomDomainReplaceParams {
|
|
435
444
|
/**
|
|
436
|
-
* Replacement list of up to
|
|
437
|
-
*
|
|
445
|
+
* Replacement list of up to 99 custom domains, subject to the account's
|
|
446
|
+
* domainLimit (10 by default). An empty list removes all custom domains. Domains
|
|
447
|
+
* under oursprivacy.com are rejected.
|
|
438
448
|
*/
|
|
439
449
|
domains: Array<string>;
|
|
440
450
|
}
|