@oursprivacy/platform-sdk 1.56.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 +7 -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 +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/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 +3 -2
- package/resources/replay-settings.d.mts.map +1 -1
- package/resources/replay-settings.d.ts +3 -2
- package/resources/replay-settings.d.ts.map +1 -1
- package/resources/replay-settings.js +3 -2
- package/resources/replay-settings.js.map +1 -1
- package/resources/replay-settings.mjs +3 -2
- 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 +18 -13
- package/resources/test-events.d.mts.map +1 -1
- package/resources/test-events.d.ts +18 -13
- package/resources/test-events.d.ts.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 +9 -2
- 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 +3 -2
- 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 +18 -13
- 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
|
@@ -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
|
}
|