@oursprivacy/platform-sdk 1.52.0 → 1.53.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 +2 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -2
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/allowed-events.d.mts +9 -7
- package/resources/allowed-events.d.mts.map +1 -1
- package/resources/allowed-events.d.ts +9 -7
- package/resources/allowed-events.d.ts.map +1 -1
- package/resources/allowed-events.js +9 -7
- package/resources/allowed-events.js.map +1 -1
- package/resources/allowed-events.mjs +9 -7
- package/resources/allowed-events.mjs.map +1 -1
- package/resources/analytics.d.mts +4 -2
- package/resources/analytics.d.mts.map +1 -1
- package/resources/analytics.d.ts +4 -2
- package/resources/analytics.d.ts.map +1 -1
- package/resources/analytics.js +4 -2
- package/resources/analytics.js.map +1 -1
- package/resources/analytics.mjs +4 -2
- package/resources/analytics.mjs.map +1 -1
- package/resources/attribution.d.mts +8 -5
- package/resources/attribution.d.mts.map +1 -1
- package/resources/attribution.d.ts +8 -5
- package/resources/attribution.d.ts.map +1 -1
- package/resources/attribution.js +8 -5
- package/resources/attribution.js.map +1 -1
- package/resources/attribution.mjs +8 -5
- package/resources/attribution.mjs.map +1 -1
- package/resources/audience-conversion-reports.d.mts +11 -9
- package/resources/audience-conversion-reports.d.mts.map +1 -1
- package/resources/audience-conversion-reports.d.ts +11 -9
- package/resources/audience-conversion-reports.d.ts.map +1 -1
- package/resources/audience-conversion-reports.js +11 -9
- package/resources/audience-conversion-reports.js.map +1 -1
- package/resources/audience-conversion-reports.mjs +11 -9
- package/resources/audience-conversion-reports.mjs.map +1 -1
- package/resources/consent-analytics.d.mts +2 -1
- package/resources/consent-analytics.d.mts.map +1 -1
- package/resources/consent-analytics.d.ts +2 -1
- package/resources/consent-analytics.d.ts.map +1 -1
- package/resources/consent-analytics.js +2 -1
- package/resources/consent-analytics.js.map +1 -1
- package/resources/consent-analytics.mjs +2 -1
- package/resources/consent-analytics.mjs.map +1 -1
- package/resources/consent-settings.d.mts +220 -120
- package/resources/consent-settings.d.mts.map +1 -1
- package/resources/consent-settings.d.ts +220 -120
- package/resources/consent-settings.d.ts.map +1 -1
- package/resources/consent-settings.js +72 -34
- package/resources/consent-settings.js.map +1 -1
- package/resources/consent-settings.mjs +72 -34
- package/resources/consent-settings.mjs.map +1 -1
- package/resources/conversion-journey-summaries.d.mts +10 -5
- package/resources/conversion-journey-summaries.d.mts.map +1 -1
- package/resources/conversion-journey-summaries.d.ts +10 -5
- package/resources/conversion-journey-summaries.d.ts.map +1 -1
- package/resources/conversion-journey-summaries.js +10 -5
- package/resources/conversion-journey-summaries.js.map +1 -1
- package/resources/conversion-journey-summaries.mjs +10 -5
- package/resources/conversion-journey-summaries.mjs.map +1 -1
- package/resources/data-governance.d.mts +8 -6
- package/resources/data-governance.d.mts.map +1 -1
- package/resources/data-governance.d.ts +8 -6
- package/resources/data-governance.d.ts.map +1 -1
- package/resources/data-governance.js +8 -6
- package/resources/data-governance.js.map +1 -1
- package/resources/data-governance.mjs +8 -6
- package/resources/data-governance.mjs.map +1 -1
- package/resources/default-mappings.d.mts +6 -5
- package/resources/default-mappings.d.mts.map +1 -1
- package/resources/default-mappings.d.ts +6 -5
- package/resources/default-mappings.d.ts.map +1 -1
- package/resources/default-mappings.js +6 -5
- package/resources/default-mappings.js.map +1 -1
- package/resources/default-mappings.mjs +6 -5
- package/resources/default-mappings.mjs.map +1 -1
- package/resources/destinations.d.mts +17 -12
- package/resources/destinations.d.mts.map +1 -1
- package/resources/destinations.d.ts +17 -12
- package/resources/destinations.d.ts.map +1 -1
- package/resources/destinations.js +12 -7
- package/resources/destinations.js.map +1 -1
- package/resources/destinations.mjs +12 -7
- package/resources/destinations.mjs.map +1 -1
- package/resources/experiment-settings.d.mts +9 -6
- package/resources/experiment-settings.d.mts.map +1 -1
- package/resources/experiment-settings.d.ts +9 -6
- package/resources/experiment-settings.d.ts.map +1 -1
- package/resources/experiment-settings.js +9 -6
- package/resources/experiment-settings.js.map +1 -1
- package/resources/experiment-settings.mjs +9 -6
- package/resources/experiment-settings.mjs.map +1 -1
- package/resources/experiment-variants.d.mts +9 -5
- package/resources/experiment-variants.d.mts.map +1 -1
- package/resources/experiment-variants.d.ts +9 -5
- package/resources/experiment-variants.d.ts.map +1 -1
- package/resources/experiment-variants.js +9 -5
- package/resources/experiment-variants.js.map +1 -1
- package/resources/experiment-variants.mjs +9 -5
- package/resources/experiment-variants.mjs.map +1 -1
- package/resources/experiments.d.mts +30 -19
- package/resources/experiments.d.mts.map +1 -1
- package/resources/experiments.d.ts +30 -19
- package/resources/experiments.d.ts.map +1 -1
- package/resources/experiments.js +30 -19
- package/resources/experiments.js.map +1 -1
- package/resources/experiments.mjs +30 -19
- package/resources/experiments.mjs.map +1 -1
- package/resources/funnels.d.mts +11 -10
- package/resources/funnels.d.mts.map +1 -1
- package/resources/funnels.d.ts +11 -10
- package/resources/funnels.d.ts.map +1 -1
- package/resources/funnels.js +11 -10
- package/resources/funnels.js.map +1 -1
- package/resources/funnels.mjs +11 -10
- package/resources/funnels.mjs.map +1 -1
- package/resources/heatmap-pages.d.mts +3 -2
- package/resources/heatmap-pages.d.mts.map +1 -1
- package/resources/heatmap-pages.d.ts +3 -2
- package/resources/heatmap-pages.d.ts.map +1 -1
- package/resources/heatmap-pages.js +3 -2
- package/resources/heatmap-pages.js.map +1 -1
- package/resources/heatmap-pages.mjs +3 -2
- package/resources/heatmap-pages.mjs.map +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/journey-flows.d.mts +17 -12
- package/resources/journey-flows.d.mts.map +1 -1
- package/resources/journey-flows.d.ts +17 -12
- package/resources/journey-flows.d.ts.map +1 -1
- package/resources/journey-flows.js +17 -12
- package/resources/journey-flows.js.map +1 -1
- package/resources/journey-flows.mjs +17 -12
- package/resources/journey-flows.mjs.map +1 -1
- package/resources/locations.d.mts +6 -5
- package/resources/locations.d.mts.map +1 -1
- package/resources/locations.d.ts +6 -5
- package/resources/locations.d.ts.map +1 -1
- package/resources/locations.js +6 -5
- package/resources/locations.js.map +1 -1
- package/resources/locations.mjs +6 -5
- package/resources/locations.mjs.map +1 -1
- package/resources/mappings.d.mts +18 -12
- package/resources/mappings.d.mts.map +1 -1
- package/resources/mappings.d.ts +18 -12
- package/resources/mappings.d.ts.map +1 -1
- package/resources/mappings.js +18 -12
- package/resources/mappings.js.map +1 -1
- package/resources/mappings.mjs +18 -12
- package/resources/mappings.mjs.map +1 -1
- package/resources/personalization-properties.d.mts +10 -7
- package/resources/personalization-properties.d.mts.map +1 -1
- package/resources/personalization-properties.d.ts +10 -7
- package/resources/personalization-properties.d.ts.map +1 -1
- package/resources/personalization-properties.js +10 -7
- package/resources/personalization-properties.js.map +1 -1
- package/resources/personalization-properties.mjs +10 -7
- package/resources/personalization-properties.mjs.map +1 -1
- package/resources/replay-settings.d.mts +9 -6
- package/resources/replay-settings.d.mts.map +1 -1
- package/resources/replay-settings.d.ts +9 -6
- package/resources/replay-settings.d.ts.map +1 -1
- package/resources/replay-settings.js +9 -6
- package/resources/replay-settings.js.map +1 -1
- package/resources/replay-settings.mjs +9 -6
- package/resources/replay-settings.mjs.map +1 -1
- package/resources/session-replays.d.mts +4 -2
- package/resources/session-replays.d.mts.map +1 -1
- package/resources/session-replays.d.ts +4 -2
- package/resources/session-replays.d.ts.map +1 -1
- package/resources/session-replays.js +4 -2
- package/resources/session-replays.js.map +1 -1
- package/resources/session-replays.mjs +4 -2
- package/resources/session-replays.mjs.map +1 -1
- package/resources/short-links.d.mts +11 -7
- package/resources/short-links.d.mts.map +1 -1
- package/resources/short-links.d.ts +11 -7
- package/resources/short-links.d.ts.map +1 -1
- package/resources/short-links.js +11 -7
- package/resources/short-links.js.map +1 -1
- package/resources/short-links.mjs +11 -7
- package/resources/short-links.mjs.map +1 -1
- package/resources/sources.d.mts +12 -6
- package/resources/sources.d.mts.map +1 -1
- package/resources/sources.d.ts +12 -6
- package/resources/sources.d.ts.map +1 -1
- package/resources/sources.js +12 -6
- package/resources/sources.js.map +1 -1
- package/resources/sources.mjs +12 -6
- package/resources/sources.mjs.map +1 -1
- package/resources/tag-manager-asset-folders.d.mts +2 -1
- package/resources/tag-manager-asset-folders.d.mts.map +1 -1
- package/resources/tag-manager-asset-folders.d.ts +2 -1
- package/resources/tag-manager-asset-folders.d.ts.map +1 -1
- package/resources/tag-manager-asset-folders.js +2 -1
- package/resources/tag-manager-asset-folders.js.map +1 -1
- package/resources/tag-manager-asset-folders.mjs +2 -1
- package/resources/tag-manager-asset-folders.mjs.map +1 -1
- package/resources/tag-manager-folders.d.mts +9 -7
- package/resources/tag-manager-folders.d.mts.map +1 -1
- package/resources/tag-manager-folders.d.ts +9 -7
- package/resources/tag-manager-folders.d.ts.map +1 -1
- package/resources/tag-manager-folders.js +9 -7
- package/resources/tag-manager-folders.js.map +1 -1
- package/resources/tag-manager-folders.mjs +9 -7
- package/resources/tag-manager-folders.mjs.map +1 -1
- package/resources/tag-manager-tags.d.mts +11 -7
- package/resources/tag-manager-tags.d.mts.map +1 -1
- package/resources/tag-manager-tags.d.ts +11 -7
- package/resources/tag-manager-tags.d.ts.map +1 -1
- package/resources/tag-manager-tags.js +10 -6
- package/resources/tag-manager-tags.js.map +1 -1
- package/resources/tag-manager-tags.mjs +10 -6
- package/resources/tag-manager-tags.mjs.map +1 -1
- package/resources/tag-manager-triggers.d.mts +12 -7
- package/resources/tag-manager-triggers.d.mts.map +1 -1
- package/resources/tag-manager-triggers.d.ts +12 -7
- package/resources/tag-manager-triggers.d.ts.map +1 -1
- package/resources/tag-manager-triggers.js +11 -6
- package/resources/tag-manager-triggers.js.map +1 -1
- package/resources/tag-manager-triggers.mjs +11 -6
- package/resources/tag-manager-triggers.mjs.map +1 -1
- package/resources/tag-manager-variables.d.mts +27 -23
- package/resources/tag-manager-variables.d.mts.map +1 -1
- package/resources/tag-manager-variables.d.ts +27 -23
- package/resources/tag-manager-variables.d.ts.map +1 -1
- package/resources/tag-manager-variables.js +10 -6
- package/resources/tag-manager-variables.js.map +1 -1
- package/resources/tag-manager-variables.mjs +10 -6
- package/resources/tag-manager-variables.mjs.map +1 -1
- package/resources/tag-managers.d.mts +10 -5
- package/resources/tag-managers.d.mts.map +1 -1
- package/resources/tag-managers.d.ts +10 -5
- package/resources/tag-managers.d.ts.map +1 -1
- package/resources/tag-managers.js +10 -5
- package/resources/tag-managers.js.map +1 -1
- package/resources/tag-managers.mjs +10 -5
- package/resources/tag-managers.mjs.map +1 -1
- package/resources/test-events.d.mts +6 -4
- package/resources/test-events.d.mts.map +1 -1
- package/resources/test-events.d.ts +6 -4
- package/resources/test-events.d.ts.map +1 -1
- package/resources/test-events.js +6 -4
- package/resources/test-events.js.map +1 -1
- package/resources/test-events.mjs +6 -4
- package/resources/test-events.mjs.map +1 -1
- package/resources/translation-widgets.d.mts +7 -6
- package/resources/translation-widgets.d.mts.map +1 -1
- package/resources/translation-widgets.d.ts +7 -6
- package/resources/translation-widgets.d.ts.map +1 -1
- package/resources/translation-widgets.js +7 -6
- package/resources/translation-widgets.js.map +1 -1
- package/resources/translation-widgets.mjs +7 -6
- package/resources/translation-widgets.mjs.map +1 -1
- package/resources/versions.d.mts +21 -11
- package/resources/versions.d.mts.map +1 -1
- package/resources/versions.d.ts +21 -11
- package/resources/versions.d.ts.map +1 -1
- package/resources/versions.js +16 -11
- package/resources/versions.js.map +1 -1
- package/resources/versions.mjs +16 -11
- package/resources/versions.mjs.map +1 -1
- package/resources/video-channels.d.mts +15 -9
- package/resources/video-channels.d.mts.map +1 -1
- package/resources/video-channels.d.ts +15 -9
- package/resources/video-channels.d.ts.map +1 -1
- package/resources/video-channels.js +15 -9
- package/resources/video-channels.js.map +1 -1
- package/resources/video-channels.mjs +15 -9
- package/resources/video-channels.mjs.map +1 -1
- package/resources/videos.d.mts +21 -14
- package/resources/videos.d.mts.map +1 -1
- package/resources/videos.d.ts +21 -14
- package/resources/videos.d.ts.map +1 -1
- package/resources/videos.js +21 -14
- package/resources/videos.js.map +1 -1
- package/resources/videos.mjs +21 -14
- package/resources/videos.mjs.map +1 -1
- package/resources/web-analytics.d.mts +14 -9
- package/resources/web-analytics.d.mts.map +1 -1
- package/resources/web-analytics.d.ts +14 -9
- package/resources/web-analytics.d.ts.map +1 -1
- package/resources/web-analytics.js +14 -9
- package/resources/web-analytics.js.map +1 -1
- package/resources/web-analytics.mjs +14 -9
- package/resources/web-analytics.mjs.map +1 -1
- package/resources/web-scanner-rules.d.mts +10 -6
- package/resources/web-scanner-rules.d.mts.map +1 -1
- package/resources/web-scanner-rules.d.ts +10 -6
- package/resources/web-scanner-rules.d.ts.map +1 -1
- package/resources/web-scanner-rules.js +10 -6
- package/resources/web-scanner-rules.js.map +1 -1
- package/resources/web-scanner-rules.mjs +10 -6
- package/resources/web-scanner-rules.mjs.map +1 -1
- package/resources/web-scanners.d.mts +26 -19
- package/resources/web-scanners.d.mts.map +1 -1
- package/resources/web-scanners.d.ts +26 -19
- package/resources/web-scanners.d.ts.map +1 -1
- package/resources/web-scanners.js +25 -18
- package/resources/web-scanners.js.map +1 -1
- package/resources/web-scanners.mjs +25 -18
- package/resources/web-scanners.mjs.map +1 -1
- package/src/client.ts +8 -0
- package/src/resources/allowed-events.ts +9 -7
- package/src/resources/analytics.ts +4 -2
- package/src/resources/attribution.ts +8 -5
- package/src/resources/audience-conversion-reports.ts +11 -9
- package/src/resources/consent-analytics.ts +2 -1
- package/src/resources/consent-settings.ts +264 -120
- package/src/resources/conversion-journey-summaries.ts +10 -5
- package/src/resources/data-governance.ts +8 -6
- package/src/resources/default-mappings.ts +6 -5
- package/src/resources/destinations.ts +17 -7
- package/src/resources/experiment-settings.ts +9 -6
- package/src/resources/experiment-variants.ts +9 -5
- package/src/resources/experiments.ts +30 -19
- package/src/resources/funnels.ts +11 -10
- package/src/resources/heatmap-pages.ts +3 -2
- package/src/resources/index.ts +4 -0
- package/src/resources/journey-flows.ts +17 -12
- package/src/resources/locations.ts +6 -5
- package/src/resources/mappings.ts +18 -12
- package/src/resources/personalization-properties.ts +10 -7
- package/src/resources/replay-settings.ts +9 -6
- package/src/resources/session-replays.ts +4 -2
- package/src/resources/short-links.ts +11 -7
- package/src/resources/sources.ts +12 -6
- package/src/resources/tag-manager-asset-folders.ts +2 -1
- package/src/resources/tag-manager-folders.ts +9 -7
- package/src/resources/tag-manager-tags.ts +11 -7
- package/src/resources/tag-manager-triggers.ts +12 -7
- package/src/resources/tag-manager-variables.ts +23 -19
- package/src/resources/tag-managers.ts +10 -5
- package/src/resources/test-events.ts +6 -4
- package/src/resources/translation-widgets.ts +7 -6
- package/src/resources/versions.ts +22 -11
- package/src/resources/video-channels.ts +15 -9
- package/src/resources/videos.ts +21 -14
- package/src/resources/web-analytics.ts +14 -9
- package/src/resources/web-scanner-rules.ts +10 -6
- package/src/resources/web-scanners.ts +26 -19
- 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
|
@@ -11,7 +11,8 @@ export class ConversionJourneySummaries extends APIResource {
|
|
|
11
11
|
* List saved Conversion Journey Summary configurations, most recently updated
|
|
12
12
|
* first. Supports cursor pagination. Each result contains the conversion event,
|
|
13
13
|
* analysis window, attribution window, filters, and bot/source settings needed to
|
|
14
|
-
* reopen the saved analysis. Requires scope
|
|
14
|
+
* reopen the saved analysis. Requires API-key scope or current OAuth user
|
|
15
|
+
* permission: web-analytics:view
|
|
15
16
|
*
|
|
16
17
|
* @example
|
|
17
18
|
* ```ts
|
|
@@ -35,7 +36,8 @@ export class ConversionJourneySummaries extends APIResource {
|
|
|
35
36
|
/**
|
|
36
37
|
* Save a named Conversion Journey Summary configuration. Returns the full saved
|
|
37
38
|
* summary so callers can reopen the same analysis without a follow-up request.
|
|
38
|
-
* Each account can save up to 100 summaries. Requires scope
|
|
39
|
+
* Each account can save up to 100 summaries. Requires API-key scope or current
|
|
40
|
+
* OAuth user permission: web-analytics:write
|
|
39
41
|
*
|
|
40
42
|
* @example
|
|
41
43
|
* ```ts
|
|
@@ -58,7 +60,8 @@ export class ConversionJourneySummaries extends APIResource {
|
|
|
58
60
|
|
|
59
61
|
/**
|
|
60
62
|
* Fetch a saved Conversion Journey Summary by its id. Returns 404 when it does not
|
|
61
|
-
* exist. Requires scope
|
|
63
|
+
* exist. Requires API-key scope or current OAuth user permission:
|
|
64
|
+
* web-analytics:view
|
|
62
65
|
*
|
|
63
66
|
* @example
|
|
64
67
|
* ```ts
|
|
@@ -74,7 +77,8 @@ export class ConversionJourneySummaries extends APIResource {
|
|
|
74
77
|
* Update one or more fields on a saved Conversion Journey Summary. Omitted fields
|
|
75
78
|
* remain unchanged. When provided, `filters` replaces the complete saved filter
|
|
76
79
|
* list. Send `null` for `webSourceId` or `excludeBots` to clear that optional
|
|
77
|
-
* setting. Requires scope
|
|
80
|
+
* setting. Requires API-key scope or current OAuth user permission:
|
|
81
|
+
* web-analytics:write
|
|
78
82
|
*
|
|
79
83
|
* @example
|
|
80
84
|
* ```ts
|
|
@@ -92,7 +96,8 @@ export class ConversionJourneySummaries extends APIResource {
|
|
|
92
96
|
|
|
93
97
|
/**
|
|
94
98
|
* Delete a saved Conversion Journey Summary. The underlying analytics data is
|
|
95
|
-
* unaffected. Requires scope
|
|
99
|
+
* unaffected. Requires API-key scope or current OAuth user permission:
|
|
100
|
+
* web-analytics:write
|
|
96
101
|
*
|
|
97
102
|
* @example
|
|
98
103
|
* ```ts
|
|
@@ -14,7 +14,8 @@ export class DataGovernance extends APIResource {
|
|
|
14
14
|
* meaningful here. Data governance is the second stage of the dispatch flow
|
|
15
15
|
* (Source → Allowed Events → Data Governance → Mappings → Destination) — it
|
|
16
16
|
* evaluates each event against the configured category logic and stops dispatch to
|
|
17
|
-
* the destinations on any matching category. Requires scope
|
|
17
|
+
* the destinations on any matching category. Requires API-key scope or current
|
|
18
|
+
* OAuth user permission: globalDispatch:list
|
|
18
19
|
*/
|
|
19
20
|
list(
|
|
20
21
|
query: DataGovernanceListParams | null | undefined = {},
|
|
@@ -30,7 +31,7 @@ export class DataGovernance extends APIResource {
|
|
|
30
31
|
* Create the data-governance record for this account. Each account may have at
|
|
31
32
|
* most one — a second POST returns 409. Body is optional; defaults are
|
|
32
33
|
* `isEnabled: false` and no categories. Categories are added later via PATCH.
|
|
33
|
-
* Requires scope: globalDispatch:create
|
|
34
|
+
* Requires API-key scope or current OAuth user permission: globalDispatch:create
|
|
34
35
|
*/
|
|
35
36
|
create(
|
|
36
37
|
body: DataGovernanceCreateParams,
|
|
@@ -41,8 +42,8 @@ export class DataGovernance extends APIResource {
|
|
|
41
42
|
|
|
42
43
|
/**
|
|
43
44
|
* Fetch the data-governance record by id, including its categories (logic,
|
|
44
|
-
* destinations, priority). Returns 404 when no record matches. Requires
|
|
45
|
-
* globalDispatch:find
|
|
45
|
+
* destinations, priority). Returns 404 when no record matches. Requires API-key
|
|
46
|
+
* scope or current OAuth user permission: globalDispatch:find
|
|
46
47
|
*/
|
|
47
48
|
retrieve(id: string, options?: RequestOptions): APIPromise<DataGovernanceRetrieveResponse | null> {
|
|
48
49
|
return this._client.get(path`/rest/v1/data-governance/${id}`, options);
|
|
@@ -62,7 +63,7 @@ export class DataGovernance extends APIResource {
|
|
|
62
63
|
* sequential with no gaps. Stale `destinationIds` (deleted destinations or
|
|
63
64
|
* destinations on another account) are silently filtered out — the response echoes
|
|
64
65
|
* the filtered list, so a follow-up GET is not required to see what was saved.
|
|
65
|
-
* Requires scope: globalDispatch:update
|
|
66
|
+
* Requires API-key scope or current OAuth user permission: globalDispatch:update
|
|
66
67
|
*/
|
|
67
68
|
update(
|
|
68
69
|
id: string,
|
|
@@ -75,7 +76,8 @@ export class DataGovernance extends APIResource {
|
|
|
75
76
|
/**
|
|
76
77
|
* Delete the data-governance record. After deletion, inbound events flow through
|
|
77
78
|
* to destinations without category-level gating. Create a new record with POST to
|
|
78
|
-
* reinstate governance. Requires scope
|
|
79
|
+
* reinstate governance. Requires API-key scope or current OAuth user permission:
|
|
80
|
+
* globalDispatch:delete
|
|
79
81
|
*/
|
|
80
82
|
delete(id: string, options?: RequestOptions): APIPromise<DataGovernanceDeleteResponse> {
|
|
81
83
|
return this._client.delete(path`/rest/v1/data-governance/${id}`, options);
|
|
@@ -10,8 +10,8 @@ export class DefaultMappings extends APIResource {
|
|
|
10
10
|
* List every stored default mapping for the account, one per destination that has
|
|
11
11
|
* ever written a default. Destinations that have not yet written a default mapping
|
|
12
12
|
* do not appear here. Use `GET /rest/v1/default-mappings/{destinationId}` to fetch
|
|
13
|
-
* the hydrated would-be row for a specific destination. Requires scope
|
|
14
|
-
* mapping:list
|
|
13
|
+
* the hydrated would-be row for a specific destination. Requires API-key scope or
|
|
14
|
+
* current OAuth user permission: mapping:list
|
|
15
15
|
*/
|
|
16
16
|
list(options?: RequestOptions): APIPromise<DefaultMappingListResponse> {
|
|
17
17
|
return this._client.get('/rest/v1/default-mappings', options);
|
|
@@ -21,7 +21,8 @@ export class DefaultMappings extends APIResource {
|
|
|
21
21
|
* Fetch the destination's default mapping by destination id. Returns a hydrated
|
|
22
22
|
* row with empty `mappings[]` when no default mapping has been written yet (so
|
|
23
23
|
* callers do not need to handle a 404-vs-200 branch). Each destination has at most
|
|
24
|
-
* one default mapping. Requires scope
|
|
24
|
+
* one default mapping. Requires API-key scope or current OAuth user permission:
|
|
25
|
+
* mapping:find
|
|
25
26
|
*/
|
|
26
27
|
retrieve(id: string, options?: RequestOptions): APIPromise<DefaultMappingRetrieveResponse> {
|
|
27
28
|
return this._client.get(path`/rest/v1/default-mappings/${id}`, options);
|
|
@@ -30,8 +31,8 @@ export class DefaultMappings extends APIResource {
|
|
|
30
31
|
/**
|
|
31
32
|
* Upsert the destination default mapping. Always replaces `mappings[]` wholesale
|
|
32
33
|
* (default mappings have no merge-partial semantic). Default mappings cannot have
|
|
33
|
-
* custom `logic`; the field is not accepted on this endpoint. Requires
|
|
34
|
-
* mapping:update
|
|
34
|
+
* custom `logic`; the field is not accepted on this endpoint. Requires API-key
|
|
35
|
+
* scope or current OAuth user permission: mapping:update
|
|
35
36
|
*/
|
|
36
37
|
replace(
|
|
37
38
|
id: string,
|
|
@@ -8,7 +8,8 @@ import { path } from '../internal/utils/path';
|
|
|
8
8
|
|
|
9
9
|
export class Destinations extends APIResource {
|
|
10
10
|
/**
|
|
11
|
-
* List all destinations. Requires scope
|
|
11
|
+
* List all destinations. Requires API-key scope or current OAuth user permission:
|
|
12
|
+
* destination:list
|
|
12
13
|
*/
|
|
13
14
|
list(
|
|
14
15
|
query: DestinationListParams | null | undefined = {},
|
|
@@ -21,14 +22,16 @@ export class Destinations extends APIResource {
|
|
|
21
22
|
}
|
|
22
23
|
|
|
23
24
|
/**
|
|
24
|
-
* Create a new destination. Requires scope
|
|
25
|
+
* Create a new destination. Requires API-key scope or current OAuth user
|
|
26
|
+
* permission: destination:create
|
|
25
27
|
*/
|
|
26
28
|
create(body: DestinationCreateParams, options?: RequestOptions): APIPromise<DestinationCreateResponse> {
|
|
27
29
|
return this._client.post('/rest/v1/destinations', { body, ...options });
|
|
28
30
|
}
|
|
29
31
|
|
|
30
32
|
/**
|
|
31
|
-
* Find a single destination by ID. Requires scope
|
|
33
|
+
* Find a single destination by ID. Requires API-key scope or current OAuth user
|
|
34
|
+
* permission: destination:find
|
|
32
35
|
*/
|
|
33
36
|
retrieve(id: string, options?: RequestOptions): APIPromise<DestinationRetrieveResponse> {
|
|
34
37
|
return this._client.get(path`/rest/v1/destinations/${id}`, options);
|
|
@@ -38,7 +41,7 @@ export class Destinations extends APIResource {
|
|
|
38
41
|
* Partially update a destination. Only the fields you send are changed; omitted
|
|
39
42
|
* fields are unchanged. The `settings` object is patch-only: omitted keys keep
|
|
40
43
|
* their current value, and send `null` to clear a specific setting. Requires
|
|
41
|
-
* scope: destination:update
|
|
44
|
+
* API-key scope or current OAuth user permission: destination:update
|
|
42
45
|
*/
|
|
43
46
|
update(
|
|
44
47
|
id: string,
|
|
@@ -49,7 +52,8 @@ export class Destinations extends APIResource {
|
|
|
49
52
|
}
|
|
50
53
|
|
|
51
54
|
/**
|
|
52
|
-
* Delete a destination. Requires scope
|
|
55
|
+
* Delete a destination. Requires API-key scope or current OAuth user permission:
|
|
56
|
+
* destination:delete
|
|
53
57
|
*/
|
|
54
58
|
delete(id: string, options?: RequestOptions): APIPromise<DestinationDeleteResponse> {
|
|
55
59
|
return this._client.delete(path`/rest/v1/destinations/${id}`, options);
|
|
@@ -61,7 +65,7 @@ export class Destinations extends APIResource {
|
|
|
61
65
|
* settings descriptor used to configure a destination of that type.
|
|
62
66
|
* Account-agnostic — the response is the same for every API key. Filter
|
|
63
67
|
* client-side to find a specific type (e.g. `Klaviyo`, `Facebook`). Requires
|
|
64
|
-
* scope: destination:list
|
|
68
|
+
* API-key scope or current OAuth user permission: destination:list
|
|
65
69
|
*/
|
|
66
70
|
types(options?: RequestOptions): APIPromise<DestinationTypesResponse> {
|
|
67
71
|
return this._client.get('/rest/v1/destinations/types', options);
|
|
@@ -70,7 +74,8 @@ export class Destinations extends APIResource {
|
|
|
70
74
|
/**
|
|
71
75
|
* Snapshot of dispatch health for this destination over the trailing 24 hours:
|
|
72
76
|
* counts of succeeded, failed, and intentionally stopped/blocked dispatches, plus
|
|
73
|
-
* a derived `status`. Requires scope
|
|
77
|
+
* a derived `status`. Requires API-key scope or current OAuth user permission:
|
|
78
|
+
* destination:find
|
|
74
79
|
*/
|
|
75
80
|
health(id: string, options?: RequestOptions): APIPromise<DestinationHealthResponse> {
|
|
76
81
|
return this._client.get(path`/rest/v1/destinations/${id}/health`, options);
|
|
@@ -147,6 +152,7 @@ export interface DestinationListResponse {
|
|
|
147
152
|
| 'MNTN'
|
|
148
153
|
| 'MNTNAudience'
|
|
149
154
|
| 'Mailchimp'
|
|
155
|
+
| 'MailchimpAudience'
|
|
150
156
|
| 'MicrosoftCAPI'
|
|
151
157
|
| 'Mixpanel'
|
|
152
158
|
| 'NextdoorAds'
|
|
@@ -264,6 +270,7 @@ export interface DestinationCreateResponse {
|
|
|
264
270
|
| 'MNTN'
|
|
265
271
|
| 'MNTNAudience'
|
|
266
272
|
| 'Mailchimp'
|
|
273
|
+
| 'MailchimpAudience'
|
|
267
274
|
| 'MicrosoftCAPI'
|
|
268
275
|
| 'Mixpanel'
|
|
269
276
|
| 'NextdoorAds'
|
|
@@ -381,6 +388,7 @@ export interface DestinationRetrieveResponse {
|
|
|
381
388
|
| 'MNTN'
|
|
382
389
|
| 'MNTNAudience'
|
|
383
390
|
| 'Mailchimp'
|
|
391
|
+
| 'MailchimpAudience'
|
|
384
392
|
| 'MicrosoftCAPI'
|
|
385
393
|
| 'Mixpanel'
|
|
386
394
|
| 'NextdoorAds'
|
|
@@ -498,6 +506,7 @@ export interface DestinationUpdateResponse {
|
|
|
498
506
|
| 'MNTN'
|
|
499
507
|
| 'MNTNAudience'
|
|
500
508
|
| 'Mailchimp'
|
|
509
|
+
| 'MailchimpAudience'
|
|
501
510
|
| 'MicrosoftCAPI'
|
|
502
511
|
| 'Mixpanel'
|
|
503
512
|
| 'NextdoorAds'
|
|
@@ -851,6 +860,7 @@ export interface DestinationListParams extends CursorParams {
|
|
|
851
860
|
| 'MNTN'
|
|
852
861
|
| 'MNTNAudience'
|
|
853
862
|
| 'Mailchimp'
|
|
863
|
+
| 'MailchimpAudience'
|
|
854
864
|
| 'MicrosoftCAPI'
|
|
855
865
|
| 'Mixpanel'
|
|
856
866
|
| 'NextdoorAds'
|
|
@@ -8,8 +8,8 @@ import { path } from '../internal/utils/path';
|
|
|
8
8
|
export class ExperimentSettings extends APIResource {
|
|
9
9
|
/**
|
|
10
10
|
* List experiment settings records for the account. Use the returned `id` as
|
|
11
|
-
* `experimentSettingsId` when creating an experiment. Requires scope
|
|
12
|
-
* experimentSettings:list
|
|
11
|
+
* `experimentSettingsId` when creating an experiment. Requires API-key scope or
|
|
12
|
+
* current OAuth user permission: experimentSettings:list
|
|
13
13
|
*
|
|
14
14
|
* @example
|
|
15
15
|
* ```ts
|
|
@@ -23,7 +23,8 @@ export class ExperimentSettings extends APIResource {
|
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
* Create the account-level experimentation bootstrap record. Most accounts should
|
|
26
|
-
* only ever have one. Requires scope
|
|
26
|
+
* only ever have one. Requires API-key scope or current OAuth user permission:
|
|
27
|
+
* experimentSettings:create
|
|
27
28
|
*
|
|
28
29
|
* @example
|
|
29
30
|
* ```ts
|
|
@@ -40,7 +41,8 @@ export class ExperimentSettings extends APIResource {
|
|
|
40
41
|
|
|
41
42
|
/**
|
|
42
43
|
* Find a single experiment settings record by ID. Returns 404 when no record
|
|
43
|
-
* matches the supplied id. Requires scope
|
|
44
|
+
* matches the supplied id. Requires API-key scope or current OAuth user
|
|
45
|
+
* permission: experimentSettings:find
|
|
44
46
|
*
|
|
45
47
|
* @example
|
|
46
48
|
* ```ts
|
|
@@ -54,7 +56,8 @@ export class ExperimentSettings extends APIResource {
|
|
|
54
56
|
|
|
55
57
|
/**
|
|
56
58
|
* Partially update an experiment settings. Only the fields you send are changed.
|
|
57
|
-
* Requires scope
|
|
59
|
+
* Requires API-key scope or current OAuth user permission:
|
|
60
|
+
* experimentSettings:update
|
|
58
61
|
*
|
|
59
62
|
* @example
|
|
60
63
|
* ```ts
|
|
@@ -73,7 +76,7 @@ export class ExperimentSettings extends APIResource {
|
|
|
73
76
|
/**
|
|
74
77
|
* Delete the experimentation bootstrap record. This also deletes child
|
|
75
78
|
* experiments, variants, and personalization properties owned by it. Requires
|
|
76
|
-
* scope: experimentSettings:delete
|
|
79
|
+
* API-key scope or current OAuth user permission: experimentSettings:delete
|
|
77
80
|
*
|
|
78
81
|
* @example
|
|
79
82
|
* ```ts
|
|
@@ -11,7 +11,8 @@ export class ExperimentVariants extends APIResource {
|
|
|
11
11
|
* List variants for a specific parent experiment. Requires the `experimentId`
|
|
12
12
|
* query parameter — variants are always scoped to a single experiment. Supports
|
|
13
13
|
* cursor pagination via `limit` and `cursor`; SDK runtimes that need the full set
|
|
14
|
-
* in one request can pass `?limit=100`. Requires scope
|
|
14
|
+
* in one request can pass `?limit=100`. Requires API-key scope or current OAuth
|
|
15
|
+
* user permission: experiment:find
|
|
15
16
|
*
|
|
16
17
|
* @example
|
|
17
18
|
* ```ts
|
|
@@ -34,7 +35,8 @@ export class ExperimentVariants extends APIResource {
|
|
|
34
35
|
}
|
|
35
36
|
|
|
36
37
|
/**
|
|
37
|
-
* Create a new experiment variant. Requires scope
|
|
38
|
+
* Create a new experiment variant. Requires API-key scope or current OAuth user
|
|
39
|
+
* permission: experiment:update
|
|
38
40
|
*
|
|
39
41
|
* @example
|
|
40
42
|
* ```ts
|
|
@@ -54,7 +56,8 @@ export class ExperimentVariants extends APIResource {
|
|
|
54
56
|
}
|
|
55
57
|
|
|
56
58
|
/**
|
|
57
|
-
* Find a single experiment variant by ID. Requires scope
|
|
59
|
+
* Find a single experiment variant by ID. Requires API-key scope or current OAuth
|
|
60
|
+
* user permission: experiment:find
|
|
58
61
|
*
|
|
59
62
|
* @example
|
|
60
63
|
* ```ts
|
|
@@ -68,7 +71,7 @@ export class ExperimentVariants extends APIResource {
|
|
|
68
71
|
|
|
69
72
|
/**
|
|
70
73
|
* Partially update an experiment variant. Only the fields you send are changed.
|
|
71
|
-
* Requires scope: experiment:update
|
|
74
|
+
* Requires API-key scope or current OAuth user permission: experiment:update
|
|
72
75
|
*
|
|
73
76
|
* @example
|
|
74
77
|
* ```ts
|
|
@@ -85,7 +88,8 @@ export class ExperimentVariants extends APIResource {
|
|
|
85
88
|
}
|
|
86
89
|
|
|
87
90
|
/**
|
|
88
|
-
* Delete an experiment variant. Requires scope
|
|
91
|
+
* Delete an experiment variant. Requires API-key scope or current OAuth user
|
|
92
|
+
* permission: experiment:update
|
|
89
93
|
*
|
|
90
94
|
* @example
|
|
91
95
|
* ```ts
|
|
@@ -13,7 +13,8 @@ export class Experiments extends APIResource {
|
|
|
13
13
|
* event matchers, so a single paginated call returns a complete client-side
|
|
14
14
|
* experiment config. Supports cursor pagination and filtering by `status`, `type`,
|
|
15
15
|
* and free-text `search` matched against experiment id, name, and description.
|
|
16
|
-
* Combine filters with AND semantics. Requires scope
|
|
16
|
+
* Combine filters with AND semantics. Requires API-key scope or current OAuth user
|
|
17
|
+
* permission: experiment:list
|
|
17
18
|
*
|
|
18
19
|
* @example
|
|
19
20
|
* ```ts
|
|
@@ -34,7 +35,8 @@ export class Experiments extends APIResource {
|
|
|
34
35
|
}
|
|
35
36
|
|
|
36
37
|
/**
|
|
37
|
-
* Create a new experiment. Requires scope
|
|
38
|
+
* Create a new experiment. Requires API-key scope or current OAuth user
|
|
39
|
+
* permission: experiment:create
|
|
38
40
|
*
|
|
39
41
|
* @example
|
|
40
42
|
* ```ts
|
|
@@ -52,7 +54,7 @@ export class Experiments extends APIResource {
|
|
|
52
54
|
/**
|
|
53
55
|
* Retrieve one experiment with its variants, lifecycle state, and complete primary
|
|
54
56
|
* and secondary metric definitions, including any filtered event matchers.
|
|
55
|
-
* Requires scope: experiment:find
|
|
57
|
+
* Requires API-key scope or current OAuth user permission: experiment:find
|
|
56
58
|
*
|
|
57
59
|
* @example
|
|
58
60
|
* ```ts
|
|
@@ -72,8 +74,8 @@ export class Experiments extends APIResource {
|
|
|
72
74
|
* Edits are allowed on draft, running, and paused experiments and are recorded in
|
|
73
75
|
* the change log. Only completed experiments return 409 with
|
|
74
76
|
* `A completed experiment can no longer be edited`. Use the lifecycle endpoints
|
|
75
|
-
* (`/start`, `/pause`, `/resume`, `/stop`) to change status. Requires
|
|
76
|
-
* experiment:update
|
|
77
|
+
* (`/start`, `/pause`, `/resume`, `/stop`) to change status. Requires API-key
|
|
78
|
+
* scope or current OAuth user permission: experiment:update
|
|
77
79
|
*
|
|
78
80
|
* @example
|
|
79
81
|
* ```ts
|
|
@@ -89,7 +91,8 @@ export class Experiments extends APIResource {
|
|
|
89
91
|
}
|
|
90
92
|
|
|
91
93
|
/**
|
|
92
|
-
* Delete an experiment. Requires scope
|
|
94
|
+
* Delete an experiment. Requires API-key scope or current OAuth user permission:
|
|
95
|
+
* experiment:delete
|
|
93
96
|
*
|
|
94
97
|
* @example
|
|
95
98
|
* ```ts
|
|
@@ -103,7 +106,8 @@ export class Experiments extends APIResource {
|
|
|
103
106
|
/**
|
|
104
107
|
* Create a draft copy of an experiment. The copy keeps its configuration and
|
|
105
108
|
* variants, receives a new key, and does not retain lifecycle, rollout, or result
|
|
106
|
-
* state. Requires scope
|
|
109
|
+
* state. Requires API-key scope or current OAuth user permission:
|
|
110
|
+
* experiment:create
|
|
107
111
|
*
|
|
108
112
|
* @example
|
|
109
113
|
* ```ts
|
|
@@ -121,7 +125,8 @@ export class Experiments extends APIResource {
|
|
|
121
125
|
* `POST /rest/v1/versions`. Pass `{ "publishAfterStart": false }` only if a
|
|
122
126
|
* separate publish is desired (e.g. bundling with non-experiment edits via a
|
|
123
127
|
* manual `POST /rest/v1/versions` afterwards). The request body is optional — send
|
|
124
|
-
* `{}` to use defaults. Requires scope
|
|
128
|
+
* `{}` to use defaults. Requires API-key scope or current OAuth user permission:
|
|
129
|
+
* experiment:start
|
|
125
130
|
*
|
|
126
131
|
* @example
|
|
127
132
|
* ```ts
|
|
@@ -140,7 +145,8 @@ export class Experiments extends APIResource {
|
|
|
140
145
|
* Stop an experiment. The request body is optional — send `{}` to stop without
|
|
141
146
|
* recording a winner. Optionally pass `winnerVariantId` to record the winner
|
|
142
147
|
* (reporting only) and/or `rolloutVariantId` to keep that variant serving to all
|
|
143
|
-
* traffic. Requires scope
|
|
148
|
+
* traffic. Requires API-key scope or current OAuth user permission:
|
|
149
|
+
* experiment:stop
|
|
144
150
|
*
|
|
145
151
|
* @example
|
|
146
152
|
* ```ts
|
|
@@ -160,7 +166,7 @@ export class Experiments extends APIResource {
|
|
|
160
166
|
* experiment — the explicit, reversible serving decision that makes a winning
|
|
161
167
|
* experience the ongoing default. Publishes. Reverse with `/end-rollout`. Returns
|
|
162
168
|
* 409 if the experiment is not completed or the variant is the control. Requires
|
|
163
|
-
* scope: experiment:stop
|
|
169
|
+
* API-key scope or current OAuth user permission: experiment:stop
|
|
164
170
|
*
|
|
165
171
|
* @example
|
|
166
172
|
* ```ts
|
|
@@ -181,7 +187,7 @@ export class Experiments extends APIResource {
|
|
|
181
187
|
* End an active rollout: stop serving the rolled-out variant so every matching
|
|
182
188
|
* visitor reverts to the original experience. The declared winner is left intact.
|
|
183
189
|
* Publishes. Returns 409 if the experiment is not currently rolled out. Requires
|
|
184
|
-
* scope: experiment:stop
|
|
190
|
+
* API-key scope or current OAuth user permission: experiment:stop
|
|
185
191
|
*
|
|
186
192
|
* @example
|
|
187
193
|
* ```ts
|
|
@@ -196,7 +202,8 @@ export class Experiments extends APIResource {
|
|
|
196
202
|
* Declare, change, or clear the winning variant on a completed experiment.
|
|
197
203
|
* Reporting metadata only — it does not change what visitors see and does not
|
|
198
204
|
* republish. Omit `winnerVariantId` to clear. To make the winner live, use
|
|
199
|
-
* `/rollout`. Requires scope
|
|
205
|
+
* `/rollout`. Requires API-key scope or current OAuth user permission:
|
|
206
|
+
* experiment:stop
|
|
200
207
|
*
|
|
201
208
|
* @example
|
|
202
209
|
* ```ts
|
|
@@ -214,7 +221,8 @@ export class Experiments extends APIResource {
|
|
|
214
221
|
/**
|
|
215
222
|
* Pause a running experiment. Stops new variant assignments while preserving
|
|
216
223
|
* existing ones; the experiment can later be resumed. The request body is
|
|
217
|
-
* optional. Requires scope
|
|
224
|
+
* optional. Requires API-key scope or current OAuth user permission:
|
|
225
|
+
* experiment:stop
|
|
218
226
|
*
|
|
219
227
|
* @example
|
|
220
228
|
* ```ts
|
|
@@ -231,7 +239,8 @@ export class Experiments extends APIResource {
|
|
|
231
239
|
|
|
232
240
|
/**
|
|
233
241
|
* Resume a previously-paused experiment so new visitors can be assigned again. The
|
|
234
|
-
* request body is optional. Requires scope
|
|
242
|
+
* request body is optional. Requires API-key scope or current OAuth user
|
|
243
|
+
* permission: experiment:start
|
|
235
244
|
*
|
|
236
245
|
* @example
|
|
237
246
|
* ```ts
|
|
@@ -250,7 +259,7 @@ export class Experiments extends APIResource {
|
|
|
250
259
|
* Aggregate per-variant impressions, conversions, conversion rate, and Bayesian
|
|
251
260
|
* probability-to-be-best across the experiment runtime window. Select a saved goal
|
|
252
261
|
* with `goalId`; `eventName` remains available as a legacy selector. Requires
|
|
253
|
-
* scope: experiment:find
|
|
262
|
+
* API-key scope or current OAuth user permission: experiment:find
|
|
254
263
|
*
|
|
255
264
|
* @example
|
|
256
265
|
* ```ts
|
|
@@ -273,7 +282,8 @@ export class Experiments extends APIResource {
|
|
|
273
282
|
* Visitors are the inferential unit; impressions remain a delivery diagnostic.
|
|
274
283
|
* Select a saved goal with `goalId`; `eventName` remains available as a legacy
|
|
275
284
|
* selector. Secondary event overrides are labeled exploratory, and unsupported
|
|
276
|
-
* legacy plans suppress official evidence. Requires scope
|
|
285
|
+
* legacy plans suppress official evidence. Requires API-key scope or current OAuth
|
|
286
|
+
* user permission: experiment:find
|
|
277
287
|
*
|
|
278
288
|
* @example
|
|
279
289
|
* ```ts
|
|
@@ -297,7 +307,8 @@ export class Experiments extends APIResource {
|
|
|
297
307
|
* omitted, so the no-arg call returns every day from start to today (or to
|
|
298
308
|
* `stoppedAt` for completed experiments). The response orders days oldest-first
|
|
299
309
|
* and omits days with no impressions, so an empty `days` array means there was no
|
|
300
|
-
* measured traffic in the window. Requires scope
|
|
310
|
+
* measured traffic in the window. Requires API-key scope or current OAuth user
|
|
311
|
+
* permission: experiment:find
|
|
301
312
|
*
|
|
302
313
|
* @example
|
|
303
314
|
* ```ts
|
|
@@ -319,8 +330,8 @@ export class Experiments extends APIResource {
|
|
|
319
330
|
* fired for this experiment. Each row is one session with the variant the visitor
|
|
320
331
|
* was assigned for that impression. Sessions are ordered newest first by session
|
|
321
332
|
* start. Filter to one variant with `variant_id`. Cursor pagination via `limit`
|
|
322
|
-
* (1–100, default 25) and `cursor`; malformed cursors return 400. Requires
|
|
323
|
-
* experiment:find
|
|
333
|
+
* (1–100, default 25) and `cursor`; malformed cursors return 400. Requires API-key
|
|
334
|
+
* scope or current OAuth user permission: experiment:find
|
|
324
335
|
*
|
|
325
336
|
* @example
|
|
326
337
|
* ```ts
|
package/src/resources/funnels.ts
CHANGED
|
@@ -13,7 +13,7 @@ export class Funnels extends APIResource {
|
|
|
13
13
|
* funnels must not be treated as deleted. A complete list has
|
|
14
14
|
* `unavailableCount: 0` and no warnings. Funnel results are computed on demand, so
|
|
15
15
|
* `status` is always `READY` and `reportDateRange` is always `null`. Requires
|
|
16
|
-
* scope: web-analytics:view
|
|
16
|
+
* API-key scope or current OAuth user permission: web-analytics:view
|
|
17
17
|
*/
|
|
18
18
|
list(options?: RequestOptions): APIPromise<FunnelListResponse> {
|
|
19
19
|
return this._client.get('/rest/v1/funnels', options);
|
|
@@ -21,7 +21,8 @@ export class Funnels extends APIResource {
|
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* Create a funnel from a versioned definition. Returns the complete saved
|
|
24
|
-
* configuration. Requires scope
|
|
24
|
+
* configuration. Requires API-key scope or current OAuth user permission:
|
|
25
|
+
* web-analytics:write
|
|
25
26
|
*/
|
|
26
27
|
create(body: FunnelCreateParams, options?: RequestOptions): APIPromise<FunnelCreateResponse> {
|
|
27
28
|
return this._client.post('/rest/v1/funnels', { body, ...options });
|
|
@@ -29,8 +30,8 @@ export class Funnels extends APIResource {
|
|
|
29
30
|
|
|
30
31
|
/**
|
|
31
32
|
* Fetch a single funnel configuration by its id. Returns `404` when the funnel
|
|
32
|
-
* does not exist or belongs to a different account. Requires scope
|
|
33
|
-
* web-analytics:view
|
|
33
|
+
* does not exist or belongs to a different account. Requires API-key scope or
|
|
34
|
+
* current OAuth user permission: web-analytics:view
|
|
34
35
|
*/
|
|
35
36
|
retrieve(id: string, options?: RequestOptions): APIPromise<FunnelRetrieveResponse> {
|
|
36
37
|
return this._client.get(path`/rest/v1/funnels/${id}`, options);
|
|
@@ -38,8 +39,8 @@ export class Funnels extends APIResource {
|
|
|
38
39
|
|
|
39
40
|
/**
|
|
40
41
|
* Update one or more funnel fields. Omitted fields remain unchanged. The canonical
|
|
41
|
-
* definition can be replaced by supplying `queryDefinition`. Requires
|
|
42
|
-
* web-analytics:write
|
|
42
|
+
* definition can be replaced by supplying `queryDefinition`. Requires API-key
|
|
43
|
+
* scope or current OAuth user permission: web-analytics:write
|
|
43
44
|
*/
|
|
44
45
|
update(id: string, body: FunnelUpdateParams, options?: RequestOptions): APIPromise<FunnelUpdateResponse> {
|
|
45
46
|
return this._client.patch(path`/rest/v1/funnels/${id}`, { body, ...options });
|
|
@@ -47,7 +48,7 @@ export class Funnels extends APIResource {
|
|
|
47
48
|
|
|
48
49
|
/**
|
|
49
50
|
* Delete a Funnel configuration. Existing analytics data is unaffected. Requires
|
|
50
|
-
* scope: web-analytics:write
|
|
51
|
+
* API-key scope or current OAuth user permission: web-analytics:write
|
|
51
52
|
*/
|
|
52
53
|
delete(id: string, options?: RequestOptions): APIPromise<FunnelDeleteResponse> {
|
|
53
54
|
return this._client.delete(path`/rest/v1/funnels/${id}`, options);
|
|
@@ -56,7 +57,7 @@ export class Funnels extends APIResource {
|
|
|
56
57
|
/**
|
|
57
58
|
* Duplicate a funnel configuration in the same account. The copy keeps the
|
|
58
59
|
* canonical definition, receives a new ID, and is named `Copy of …`. Requires
|
|
59
|
-
* scope: web-analytics:write
|
|
60
|
+
* API-key scope or current OAuth user permission: web-analytics:write
|
|
60
61
|
*/
|
|
61
62
|
duplicate(id: string, options?: RequestOptions): APIPromise<FunnelDuplicateResponse> {
|
|
62
63
|
return this._client.post(path`/rest/v1/funnels/${id}/duplicate`, options);
|
|
@@ -70,8 +71,8 @@ export class Funnels extends APIResource {
|
|
|
70
71
|
* data at request time; ad hoc filter, saved-scope, and web-source overrides are
|
|
71
72
|
* not accepted. Observation completeness is null when the source coverage
|
|
72
73
|
* watermark is unavailable. `to` must be on or after `from`, and the window may
|
|
73
|
-
* span at most 91 days including both endpoints. Requires scope
|
|
74
|
-
* web-analytics:view
|
|
74
|
+
* span at most 91 days including both endpoints. Requires API-key scope or current
|
|
75
|
+
* OAuth user permission: web-analytics:view
|
|
75
76
|
*/
|
|
76
77
|
results(
|
|
77
78
|
id: string,
|
|
@@ -15,7 +15,7 @@ export class HeatmapPages extends APIResource {
|
|
|
15
15
|
* depth capped at roughly 10,000 entries; if you need pages beyond that, narrow
|
|
16
16
|
* `from`/`to` or add filters rather than paginating further. `from`/`to` are UTC
|
|
17
17
|
* calendar days in `YYYY-MM-DD`; the window must be 60 days or fewer. Requires
|
|
18
|
-
* scope: web-analytics:view
|
|
18
|
+
* API-key scope or current OAuth user permission: web-analytics:view
|
|
19
19
|
*/
|
|
20
20
|
list(
|
|
21
21
|
query: HeatmapPageListParams,
|
|
@@ -39,7 +39,8 @@ export class HeatmapPages extends APIResource {
|
|
|
39
39
|
* `breakpoint` (weighted to cover multiple viewports) so callers can compare
|
|
40
40
|
* devices. `clickGrid` always supplies fine click positions for rendering.
|
|
41
41
|
* `clickBins` derives compatible 64×64 counts from the same grid; its totals must
|
|
42
|
-
* not be added to them. Requires scope
|
|
42
|
+
* not be added to them. Requires API-key scope or current OAuth user permission:
|
|
43
|
+
* web-analytics:view
|
|
43
44
|
*/
|
|
44
45
|
summary(query: HeatmapPageSummaryParams, options?: RequestOptions): APIPromise<HeatmapPageSummaryResponse> {
|
|
45
46
|
return this._client.get('/rest/v1/heatmap-pages/summary', { query, ...options });
|
package/src/resources/index.ts
CHANGED
|
@@ -55,11 +55,15 @@ export {
|
|
|
55
55
|
type ConsentSettingUpdateResponse,
|
|
56
56
|
type ConsentSettingDeleteResponse,
|
|
57
57
|
type ConsentSettingAnalyticsResponse,
|
|
58
|
+
type ConsentSettingAnalyticsMonthlyResponse,
|
|
59
|
+
type ConsentSettingAnalyticsCapabilitiesResponse,
|
|
58
60
|
type ConsentSettingPageAnalysisResponse,
|
|
59
61
|
type ConsentSettingAnalyticsByRegionResponse,
|
|
60
62
|
type ConsentSettingReplaceParams,
|
|
61
63
|
type ConsentSettingUpdateParams,
|
|
62
64
|
type ConsentSettingAnalyticsParams,
|
|
65
|
+
type ConsentSettingAnalyticsMonthlyParams,
|
|
66
|
+
type ConsentSettingAnalyticsCapabilitiesParams,
|
|
63
67
|
type ConsentSettingPageAnalysisParams,
|
|
64
68
|
type ConsentSettingAnalyticsByRegionParams,
|
|
65
69
|
} from './consent-settings';
|