@oursprivacy/platform-sdk 1.51.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 +14 -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 +351 -12
- package/resources/test-events.d.mts.map +1 -1
- package/resources/test-events.d.ts +351 -12
- package/resources/test-events.d.ts.map +1 -1
- package/resources/test-events.js +11 -8
- package/resources/test-events.js.map +1 -1
- package/resources/test-events.mjs +11 -8
- 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 +429 -12
- 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
|
@@ -9,8 +9,8 @@ import { path } from '../internal/utils/path';
|
|
|
9
9
|
export class JourneyFlows extends APIResource {
|
|
10
10
|
/**
|
|
11
11
|
* List saved Journey Flow configurations, most recently updated first. Supports
|
|
12
|
-
* cursor pagination and name/description search. Requires scope
|
|
13
|
-
* web-analytics:view
|
|
12
|
+
* cursor pagination and name/description search. Requires API-key scope or current
|
|
13
|
+
* OAuth user permission: web-analytics:view
|
|
14
14
|
*/
|
|
15
15
|
list(
|
|
16
16
|
query: JourneyFlowListParams | null | undefined = {},
|
|
@@ -25,7 +25,8 @@ export class JourneyFlows extends APIResource {
|
|
|
25
25
|
/**
|
|
26
26
|
* Save a validated Journey Flow configuration. Source ownership, UTC scope,
|
|
27
27
|
* bounded entry dates, and compiler-supported semantics are enforced by the
|
|
28
|
-
* GraphQL domain path. Requires scope
|
|
28
|
+
* GraphQL domain path. Requires API-key scope or current OAuth user permission:
|
|
29
|
+
* web-analytics:write
|
|
29
30
|
*/
|
|
30
31
|
create(body: JourneyFlowCreateParams, options?: RequestOptions): APIPromise<JourneyFlowCreateResponse> {
|
|
31
32
|
return this._client.post('/rest/v1/journey-flows', { body, ...options });
|
|
@@ -33,7 +34,8 @@ export class JourneyFlows extends APIResource {
|
|
|
33
34
|
|
|
34
35
|
/**
|
|
35
36
|
* Fetch a saved Journey Flow configuration by id. Returns 404 when it does not
|
|
36
|
-
* exist or is not readable by this account. Requires scope
|
|
37
|
+
* exist or is not readable by this account. Requires API-key scope or current
|
|
38
|
+
* OAuth user permission: web-analytics:view
|
|
37
39
|
*/
|
|
38
40
|
retrieve(id: string, options?: RequestOptions): APIPromise<JourneyFlowRetrieveResponse> {
|
|
39
41
|
return this._client.get(path`/rest/v1/journey-flows/${id}`, options);
|
|
@@ -42,7 +44,8 @@ export class JourneyFlows extends APIResource {
|
|
|
42
44
|
/**
|
|
43
45
|
* Partially update a Journey Flow using expectedRevision for optimistic
|
|
44
46
|
* concurrency. Omitted top-level fields remain unchanged; nested values replace
|
|
45
|
-
* the complete nested value. Requires scope
|
|
47
|
+
* the complete nested value. Requires API-key scope or current OAuth user
|
|
48
|
+
* permission: web-analytics:write
|
|
46
49
|
*/
|
|
47
50
|
update(
|
|
48
51
|
id: string,
|
|
@@ -54,7 +57,8 @@ export class JourneyFlows extends APIResource {
|
|
|
54
57
|
|
|
55
58
|
/**
|
|
56
59
|
* Delete a Journey Flow using expectedRevision for optimistic concurrency. The
|
|
57
|
-
* response includes the deleted revision. Requires scope
|
|
60
|
+
* response includes the deleted revision. Requires API-key scope or current OAuth
|
|
61
|
+
* user permission: web-analytics:write
|
|
58
62
|
*/
|
|
59
63
|
delete(
|
|
60
64
|
id: string,
|
|
@@ -70,8 +74,8 @@ export class JourneyFlows extends APIResource {
|
|
|
70
74
|
|
|
71
75
|
/**
|
|
72
76
|
* Return the currently supported Journey Flow counting modes, visualizations,
|
|
73
|
-
* matcher kinds, limits, and unsupported-feature flags. Requires scope
|
|
74
|
-
* web-analytics:view
|
|
77
|
+
* matcher kinds, limits, and unsupported-feature flags. Requires API-key scope or
|
|
78
|
+
* current OAuth user permission: web-analytics:view
|
|
75
79
|
*/
|
|
76
80
|
capabilities(options?: RequestOptions): APIPromise<JourneyFlowCapabilitiesResponse> {
|
|
77
81
|
return this._client.get('/rest/v1/journey-flows/capabilities', options);
|
|
@@ -79,8 +83,8 @@ export class JourneyFlows extends APIResource {
|
|
|
79
83
|
|
|
80
84
|
/**
|
|
81
85
|
* Compute a saved Journey Flow result on demand. Requires expectedRevision and
|
|
82
|
-
* permits an optional complete report context override. Requires scope
|
|
83
|
-
* web-analytics:view
|
|
86
|
+
* permits an optional complete report context override. Requires API-key scope or
|
|
87
|
+
* current OAuth user permission: web-analytics:view
|
|
84
88
|
*/
|
|
85
89
|
results(
|
|
86
90
|
id: string,
|
|
@@ -95,7 +99,7 @@ export class JourneyFlows extends APIResource {
|
|
|
95
99
|
* counts, timing, graph and bounded Top Paths. Requires expectedRevision; display
|
|
96
100
|
* limits and omitted path weight are included. The response contains the CSV
|
|
97
101
|
* content and filename. Visitor and session samples are not included. Requires
|
|
98
|
-
* scope: web-analytics:view
|
|
102
|
+
* API-key scope or current OAuth user permission: web-analytics:view
|
|
99
103
|
*/
|
|
100
104
|
export(
|
|
101
105
|
id: string,
|
|
@@ -108,7 +112,8 @@ export class JourneyFlows extends APIResource {
|
|
|
108
112
|
/**
|
|
109
113
|
* Compute a bounded preview from a serialized Journey Flow definition, report
|
|
110
114
|
* context, and view. Use GraphQL when the serialized input exceeds the HTTP URL
|
|
111
|
-
* budget. Requires scope
|
|
115
|
+
* budget. Requires API-key scope or current OAuth user permission:
|
|
116
|
+
* web-analytics:view
|
|
112
117
|
*/
|
|
113
118
|
preview(query: JourneyFlowPreviewParams, options?: RequestOptions): APIPromise<JourneyFlowPreviewResponse> {
|
|
114
119
|
return this._client.get('/rest/v1/journey-flows/preview', { query, ...options });
|
|
@@ -9,7 +9,7 @@ export class Locations extends APIResource {
|
|
|
9
9
|
/**
|
|
10
10
|
* List every location for this account. Not paginated — each account has a small
|
|
11
11
|
* map-count limit (single digits in practice) so the response always fits in a
|
|
12
|
-
* single page. Requires scope: maps:list
|
|
12
|
+
* single page. Requires API-key scope or current OAuth user permission: maps:list
|
|
13
13
|
*/
|
|
14
14
|
list(options?: RequestOptions): APIPromise<LocationListResponse> {
|
|
15
15
|
return this._client.get('/rest/v1/locations', options);
|
|
@@ -19,7 +19,7 @@ export class Locations extends APIResource {
|
|
|
19
19
|
* Create a new location (map embed). All address fields are optional and can be
|
|
20
20
|
* filled in later via PATCH. Returns the slim entity with the server-assigned `id`
|
|
21
21
|
* so callers can immediately request `GET /rest/v1/locations/{id}/embed-code`.
|
|
22
|
-
* Requires scope: maps:create
|
|
22
|
+
* Requires API-key scope or current OAuth user permission: maps:create
|
|
23
23
|
*/
|
|
24
24
|
create(body: LocationCreateParams, options?: RequestOptions): APIPromise<LocationCreateResponse> {
|
|
25
25
|
return this._client.post('/rest/v1/locations', { body, ...options });
|
|
@@ -29,7 +29,8 @@ export class Locations extends APIResource {
|
|
|
29
29
|
* Partially update a location. Only the fields you send are changed.
|
|
30
30
|
* `additionalAddresses` is replaced wholesale when sent — partial item updates are
|
|
31
31
|
* not merged. The map's computed center is recalculated on every PATCH from the
|
|
32
|
-
* latest coordinates. Requires scope
|
|
32
|
+
* latest coordinates. Requires API-key scope or current OAuth user permission:
|
|
33
|
+
* maps:update
|
|
33
34
|
*/
|
|
34
35
|
update(
|
|
35
36
|
id: string,
|
|
@@ -45,8 +46,8 @@ export class Locations extends APIResource {
|
|
|
45
46
|
* `<iframe>` pointed at the Ours Privacy maps CDN, plus an optional JSON-LD
|
|
46
47
|
* `<script>`). Customize the render with the optional query params (`color`,
|
|
47
48
|
* `theme`, `colorScheme`, `mapStyle`, `includeAddressBox`, `zoom`,
|
|
48
|
-
* `includeControls`, `includeSEOSchema`); all have sane defaults. Requires
|
|
49
|
-
* maps:find
|
|
49
|
+
* `includeControls`, `includeSEOSchema`); all have sane defaults. Requires API-key
|
|
50
|
+
* scope or current OAuth user permission: maps:find
|
|
50
51
|
*/
|
|
51
52
|
embedCode(
|
|
52
53
|
id: string,
|
|
@@ -10,8 +10,8 @@ export class Mappings extends APIResource {
|
|
|
10
10
|
/**
|
|
11
11
|
* List mappings for an entity (a source or destination). Requires the `entityId`
|
|
12
12
|
* query parameter. Supports cursor pagination via `limit` and `cursor`. Sorted by
|
|
13
|
-
* `priority` ascending, then by `id` for deterministic pagination. Requires
|
|
14
|
-
* mapping:list
|
|
13
|
+
* `priority` ascending, then by `id` for deterministic pagination. Requires
|
|
14
|
+
* API-key scope or current OAuth user permission: mapping:list
|
|
15
15
|
*/
|
|
16
16
|
list(
|
|
17
17
|
query: MappingListParams,
|
|
@@ -32,15 +32,16 @@ export class Mappings extends APIResource {
|
|
|
32
32
|
* `GET /rest/v1/mapping-templates?entityId=...` to discover the valid
|
|
33
33
|
* `templateId` and `mappings[].property` values.
|
|
34
34
|
*
|
|
35
|
-
* Sending both `allowedEventId` and `templateId` returns 400. Requires
|
|
36
|
-
* mapping:create
|
|
35
|
+
* Sending both `allowedEventId` and `templateId` returns 400. Requires API-key
|
|
36
|
+
* scope or current OAuth user permission: mapping:create
|
|
37
37
|
*/
|
|
38
38
|
create(body: MappingCreateParams, options?: RequestOptions): APIPromise<MappingCreateResponse> {
|
|
39
39
|
return this._client.post('/rest/v1/mappings', { body, ...options });
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
/**
|
|
43
|
-
* Find a single mapping by ID. Requires scope
|
|
43
|
+
* Find a single mapping by ID. Requires API-key scope or current OAuth user
|
|
44
|
+
* permission: mapping:find
|
|
44
45
|
*/
|
|
45
46
|
retrieve(id: string, options?: RequestOptions): APIPromise<MappingRetrieveResponse> {
|
|
46
47
|
return this._client.get(path`/rest/v1/mappings/${id}`, options);
|
|
@@ -50,14 +51,15 @@ export class Mappings extends APIResource {
|
|
|
50
51
|
* Partially update a mapping. Only the fields you send are changed. Send
|
|
51
52
|
* `isEnabled: false` to pause the mapping without changing other fields (mirrors
|
|
52
53
|
* `status` on destinations). `mappings[]` is replaced wholesale when sent.
|
|
53
|
-
* Requires scope: mapping:update
|
|
54
|
+
* Requires API-key scope or current OAuth user permission: mapping:update
|
|
54
55
|
*/
|
|
55
56
|
update(id: string, body: MappingUpdateParams, options?: RequestOptions): APIPromise<MappingUpdateResponse> {
|
|
56
57
|
return this._client.patch(path`/rest/v1/mappings/${id}`, { body, ...options });
|
|
57
58
|
}
|
|
58
59
|
|
|
59
60
|
/**
|
|
60
|
-
* Delete a mapping. Requires scope
|
|
61
|
+
* Delete a mapping. Requires API-key scope or current OAuth user permission:
|
|
62
|
+
* mapping:delete
|
|
61
63
|
*/
|
|
62
64
|
delete(id: string, options?: RequestOptions): APIPromise<MappingDeleteResponse> {
|
|
63
65
|
return this._client.delete(path`/rest/v1/mappings/${id}`, options);
|
|
@@ -67,7 +69,8 @@ export class Mappings extends APIResource {
|
|
|
67
69
|
* Reassign `priority` for a set of mappings. Pass `{ uuids: [...] }` with the
|
|
68
70
|
* mapping ids in their new order — index 0 becomes the highest-priority mapping.
|
|
69
71
|
* All ids must belong to the same parent entity (source or destination); mixing
|
|
70
|
-
* entities returns 400. Requires scope
|
|
72
|
+
* entities returns 400. Requires API-key scope or current OAuth user permission:
|
|
73
|
+
* mapping:update
|
|
71
74
|
*/
|
|
72
75
|
reorder(body: MappingReorderParams, options?: RequestOptions): APIPromise<MappingReorderResponse> {
|
|
73
76
|
return this._client.post('/rest/v1/mappings/reorder', { body, ...options });
|
|
@@ -80,7 +83,8 @@ export class Mappings extends APIResource {
|
|
|
80
83
|
* `mappings[]` to learn the valid `property`, `kind`, `modificationOptions`, and
|
|
81
84
|
* any enforced `options`. The `isDefault: true` entry is the destination's
|
|
82
85
|
* built-in default template, configured via
|
|
83
|
-
* `PUT /rest/v1/default-mappings/{destinationId}`. Requires scope
|
|
86
|
+
* `PUT /rest/v1/default-mappings/{destinationId}`. Requires API-key scope or
|
|
87
|
+
* current OAuth user permission: mapping:find
|
|
84
88
|
*/
|
|
85
89
|
templates(query: MappingTemplatesParams, options?: RequestOptions): APIPromise<MappingTemplatesResponse> {
|
|
86
90
|
return this._client.get('/rest/v1/mappings/templates', { query, ...options });
|
|
@@ -90,7 +94,7 @@ export class Mappings extends APIResource {
|
|
|
90
94
|
* Lists the platform-provided variables that any mapping `value` can reference
|
|
91
95
|
* (e.g. `event.email`, `event.request_context.ip`, `visitor.id`). Account-agnostic
|
|
92
96
|
* discovery — use these paths as the right-hand side of a mapping field. Requires
|
|
93
|
-
* scope: variables:find-default
|
|
97
|
+
* API-key scope or current OAuth user permission: variables:find-default
|
|
94
98
|
*/
|
|
95
99
|
defaultVariables(options?: RequestOptions): APIPromise<MappingDefaultVariablesResponse> {
|
|
96
100
|
return this._client.get('/rest/v1/mappings/default-variables', options);
|
|
@@ -101,7 +105,8 @@ export class Mappings extends APIResource {
|
|
|
101
105
|
* 14 days). These are dot-paths under `event.event_properties.*` that callers can
|
|
102
106
|
* target in mapping `value` fields. Newly seen properties may take a few minutes
|
|
103
107
|
* to appear; an empty list means no custom properties have been observed yet for
|
|
104
|
-
* this account. Requires scope
|
|
108
|
+
* this account. Requires API-key scope or current OAuth user permission:
|
|
109
|
+
* variables:find-custom
|
|
105
110
|
*/
|
|
106
111
|
customVariables(options?: RequestOptions): APIPromise<MappingCustomVariablesResponse> {
|
|
107
112
|
return this._client.get('/rest/v1/mappings/custom-variables', options);
|
|
@@ -111,7 +116,8 @@ export class Mappings extends APIResource {
|
|
|
111
116
|
* Lists every value accepted on a mapping field’s `modification` property, with a
|
|
112
117
|
* human-readable label and one-sentence description. Account-agnostic. Use this
|
|
113
118
|
* alongside `GET /rest/v1/mapping-templates` to render a labelled modification
|
|
114
|
-
* picker without hardcoding the enum. Requires scope
|
|
119
|
+
* picker without hardcoding the enum. Requires API-key scope or current OAuth user
|
|
120
|
+
* permission: variables:find-default
|
|
115
121
|
*/
|
|
116
122
|
modifications(options?: RequestOptions): APIPromise<MappingModificationsResponse> {
|
|
117
123
|
return this._client.get('/rest/v1/mappings/modifications', options);
|
|
@@ -12,8 +12,8 @@ export class PersonalizationProperties extends APIResource {
|
|
|
12
12
|
* `experimentSettingsId` query parameter — properties are always scoped to a
|
|
13
13
|
* single record; list the records with `GET /rest/v1/experiment-settings`.
|
|
14
14
|
* Supports cursor pagination via `limit` and `cursor`; the limit clamp is 1000 so
|
|
15
|
-
* a single request can return the full set. Requires scope
|
|
16
|
-
* experimentSettings:list
|
|
15
|
+
* a single request can return the full set. Requires API-key scope or current
|
|
16
|
+
* OAuth user permission: experimentSettings:list
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
19
|
* ```ts
|
|
@@ -43,7 +43,8 @@ export class PersonalizationProperties extends APIResource {
|
|
|
43
43
|
* Create a personalization property on an experiment settings record. The new rule
|
|
44
44
|
* is published automatically and starts accumulating from the next matching event
|
|
45
45
|
* — no separate publish call is needed. `propertyKey` must be unique within the
|
|
46
|
-
* parent record. Requires scope
|
|
46
|
+
* parent record. Requires API-key scope or current OAuth user permission:
|
|
47
|
+
* experimentSettings:update
|
|
47
48
|
*
|
|
48
49
|
* @example
|
|
49
50
|
* ```ts
|
|
@@ -66,7 +67,8 @@ export class PersonalizationProperties extends APIResource {
|
|
|
66
67
|
|
|
67
68
|
/**
|
|
68
69
|
* Find a single personalization property by ID. Returns 404 when no property
|
|
69
|
-
* matches the supplied id. Requires scope
|
|
70
|
+
* matches the supplied id. Requires API-key scope or current OAuth user
|
|
71
|
+
* permission: experimentSettings:find
|
|
70
72
|
*
|
|
71
73
|
* @example
|
|
72
74
|
* ```ts
|
|
@@ -83,8 +85,8 @@ export class PersonalizationProperties extends APIResource {
|
|
|
83
85
|
* changed, and the update is published automatically. Sending `triggerConditions`
|
|
84
86
|
* replaces the prior list — partial-array merging is not supported. Values already
|
|
85
87
|
* accumulated for visitors are kept; the new rule applies to events from here on.
|
|
86
|
-
* Returns 404 when no property matches the supplied id. Requires scope
|
|
87
|
-
* experimentSettings:update
|
|
88
|
+
* Returns 404 when no property matches the supplied id. Requires API-key scope or
|
|
89
|
+
* current OAuth user permission: experimentSettings:update
|
|
88
90
|
*
|
|
89
91
|
* @example
|
|
90
92
|
* ```ts
|
|
@@ -103,7 +105,8 @@ export class PersonalizationProperties extends APIResource {
|
|
|
103
105
|
/**
|
|
104
106
|
* Delete a personalization property. The rule stops accumulating immediately;
|
|
105
107
|
* values already recorded for visitors are no longer maintained. Returns 404 when
|
|
106
|
-
* no property matches the supplied id. Requires scope
|
|
108
|
+
* no property matches the supplied id. Requires API-key scope or current OAuth
|
|
109
|
+
* user permission: experimentSettings:update
|
|
107
110
|
*
|
|
108
111
|
* @example
|
|
109
112
|
* ```ts
|
|
@@ -10,8 +10,8 @@ export class ReplaySettings extends APIResource {
|
|
|
10
10
|
/**
|
|
11
11
|
* List the replay configurations on this account. Supports cursor pagination via
|
|
12
12
|
* `limit` and `cursor`. Replay settings control which domains may capture session
|
|
13
|
-
* replays and where the capture script is hosted. Requires scope
|
|
14
|
-
* replaySettings:list
|
|
13
|
+
* replays and where the capture script is hosted. Requires API-key scope or
|
|
14
|
+
* current OAuth user permission: replaySettings:list
|
|
15
15
|
*/
|
|
16
16
|
list(
|
|
17
17
|
query: ReplaySettingListParams | null | undefined = {},
|
|
@@ -26,7 +26,8 @@ export class ReplaySettings extends APIResource {
|
|
|
26
26
|
/**
|
|
27
27
|
* Create the replay configuration for this account. Each account is limited to one
|
|
28
28
|
* replay configuration — calls made when one already exists return HTTP 409 with
|
|
29
|
-
* the reason in the response `error` field. Requires scope
|
|
29
|
+
* the reason in the response `error` field. Requires API-key scope or current
|
|
30
|
+
* OAuth user permission: replaySettings:create
|
|
30
31
|
*/
|
|
31
32
|
create(body: ReplaySettingCreateParams, options?: RequestOptions): APIPromise<ReplaySettingCreateResponse> {
|
|
32
33
|
return this._client.post('/rest/v1/replay-settings', { body, ...options });
|
|
@@ -34,7 +35,8 @@ export class ReplaySettings extends APIResource {
|
|
|
34
35
|
|
|
35
36
|
/**
|
|
36
37
|
* Fetch a single replay configuration by ID, including its whitelisted domains and
|
|
37
|
-
* custom domain. Requires scope
|
|
38
|
+
* custom domain. Requires API-key scope or current OAuth user permission:
|
|
39
|
+
* replaySettings:find
|
|
38
40
|
*/
|
|
39
41
|
retrieve(id: string, options?: RequestOptions): APIPromise<ReplaySettingRetrieveResponse | null> {
|
|
40
42
|
return this._client.get(path`/rest/v1/replay-settings/${id}`, options);
|
|
@@ -44,7 +46,7 @@ export class ReplaySettings extends APIResource {
|
|
|
44
46
|
* Update one or more fields on an existing replay configuration. Only the fields
|
|
45
47
|
* you send are changed; omitted fields keep their current value. Note that
|
|
46
48
|
* `whitelistDomains` is replaced wholesale (not merged with the existing list).
|
|
47
|
-
* Requires scope: replaySettings:update
|
|
49
|
+
* Requires API-key scope or current OAuth user permission: replaySettings:update
|
|
48
50
|
*/
|
|
49
51
|
update(
|
|
50
52
|
id: string,
|
|
@@ -56,7 +58,8 @@ export class ReplaySettings extends APIResource {
|
|
|
56
58
|
|
|
57
59
|
/**
|
|
58
60
|
* Delete the replay configuration. Capture stops immediately for all whitelisted
|
|
59
|
-
* domains. Requires scope
|
|
61
|
+
* domains. Requires API-key scope or current OAuth user permission:
|
|
62
|
+
* replaySettings:delete
|
|
60
63
|
*/
|
|
61
64
|
delete(id: string, options?: RequestOptions): APIPromise<ReplaySettingDeleteResponse> {
|
|
62
65
|
return this._client.delete(path`/rest/v1/replay-settings/${id}`, options);
|
|
@@ -8,7 +8,8 @@ export class SessionReplays extends APIResource {
|
|
|
8
8
|
/**
|
|
9
9
|
* List recorded sessions for a date range. Filter by event, page, visitor, UTM
|
|
10
10
|
* fields, or an explicit JSON-encoded session ID list. Use `pagination.nextCursor`
|
|
11
|
-
* to retrieve the next page. Requires scope
|
|
11
|
+
* to retrieve the next page. Requires API-key scope or current OAuth user
|
|
12
|
+
* permission: web-analytics:view
|
|
12
13
|
*/
|
|
13
14
|
list(query: SessionReplayListParams, options?: RequestOptions): APIPromise<SessionReplayListResponse> {
|
|
14
15
|
return this._client.get('/rest/v1/session-replays', { query, ...options });
|
|
@@ -16,7 +17,8 @@ export class SessionReplays extends APIResource {
|
|
|
16
17
|
|
|
17
18
|
/**
|
|
18
19
|
* Return the total number of replay-bearing sessions and a daily timeseries for
|
|
19
|
-
* the requested date range. Requires scope
|
|
20
|
+
* the requested date range. Requires API-key scope or current OAuth user
|
|
21
|
+
* permission: web-analytics:view
|
|
20
22
|
*/
|
|
21
23
|
overview(
|
|
22
24
|
query: SessionReplayOverviewParams,
|
|
@@ -13,7 +13,7 @@ export class ShortLinks extends APIResource {
|
|
|
13
13
|
* excluded. Supports cursor pagination and optional `status`, `nameContains`, and
|
|
14
14
|
* `search` filters. Search matches names, destinations, and codes. Each entity
|
|
15
15
|
* bundles the destination URL, immutable code, path format, and QR/campaign
|
|
16
|
-
* design. Requires scope: source:list
|
|
16
|
+
* design. Requires API-key scope or current OAuth user permission: source:list
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
19
|
* ```ts
|
|
@@ -39,7 +39,8 @@ export class ShortLinks extends APIResource {
|
|
|
39
39
|
* compact code; `shortUrl` resolves as `/r/{pixel}` without tracking query
|
|
40
40
|
* parameters. All body fields are optional: send `{}` to create an unconfigured
|
|
41
41
|
* link and fill it in later with PATCH. A newly created short link only resolves
|
|
42
|
-
* at the edge once a version is published. Requires scope
|
|
42
|
+
* at the edge once a version is published. Requires API-key scope or current OAuth
|
|
43
|
+
* user permission: source:create
|
|
43
44
|
*
|
|
44
45
|
* @example
|
|
45
46
|
* ```ts
|
|
@@ -56,7 +57,8 @@ export class ShortLinks extends APIResource {
|
|
|
56
57
|
/**
|
|
57
58
|
* Fetch a single short link by id, including its destination, immutable code,
|
|
58
59
|
* composed `shortUrl`, and QR/campaign design. Returns 404 when no short link
|
|
59
|
-
* matches the id or it belongs to a different account. Requires scope
|
|
60
|
+
* matches the id or it belongs to a different account. Requires API-key scope or
|
|
61
|
+
* current OAuth user permission: source:view
|
|
60
62
|
*
|
|
61
63
|
* @example
|
|
62
64
|
* ```ts
|
|
@@ -71,7 +73,8 @@ export class ShortLinks extends APIResource {
|
|
|
71
73
|
* Partially update a short link. Only the fields you send are changed; omitted
|
|
72
74
|
* fields are unchanged. Send explicit `null` to clear `redirectUrl`. The `utm` and
|
|
73
75
|
* `qr` objects are replaced wholesale when sent. Returns the full short link
|
|
74
|
-
* entity after the update. Requires scope
|
|
76
|
+
* entity after the update. Requires API-key scope or current OAuth user
|
|
77
|
+
* permission: source:update
|
|
75
78
|
*
|
|
76
79
|
* @example
|
|
77
80
|
* ```ts
|
|
@@ -88,7 +91,8 @@ export class ShortLinks extends APIResource {
|
|
|
88
91
|
|
|
89
92
|
/**
|
|
90
93
|
* Delete a short link and its QR/campaign design. After deletion the short URL
|
|
91
|
-
* stops resolving on the next publish. Requires scope
|
|
94
|
+
* stops resolving on the next publish. Requires API-key scope or current OAuth
|
|
95
|
+
* user permission: source:delete
|
|
92
96
|
*
|
|
93
97
|
* @example
|
|
94
98
|
* ```ts
|
|
@@ -102,7 +106,7 @@ export class ShortLinks extends APIResource {
|
|
|
102
106
|
/**
|
|
103
107
|
* Duplicate a short link with its campaign tags and QR styling. The copy starts
|
|
104
108
|
* disabled with a new code. Requires permission to view the original and create a
|
|
105
|
-
* source. Requires scope: source:create
|
|
109
|
+
* source. Requires API-key scope or current OAuth user permission: source:create
|
|
106
110
|
*
|
|
107
111
|
* @example
|
|
108
112
|
* ```ts
|
|
@@ -120,7 +124,7 @@ export class ShortLinks extends APIResource {
|
|
|
120
124
|
* (`YYYY-MM-DD`); set `granularity=HOURLY` for hourly buckets and
|
|
121
125
|
* `excludeBots=false` to include bot traffic. Requires the `shortlink:reporting`
|
|
122
126
|
* scope, which is gated separately because analytics data is PHI-bearing. Requires
|
|
123
|
-
* scope: shortlink:reporting
|
|
127
|
+
* API-key scope or current OAuth user permission: shortlink:reporting
|
|
124
128
|
*
|
|
125
129
|
* @example
|
|
126
130
|
* ```ts
|
package/src/resources/sources.ts
CHANGED
|
@@ -10,7 +10,8 @@ export class Sources extends APIResource {
|
|
|
10
10
|
/**
|
|
11
11
|
* List all sources for this account. Supports cursor pagination and optional
|
|
12
12
|
* filters for `type`, `status`, and `nameContains`. Results are sorted by creation
|
|
13
|
-
* date descending. Requires scope
|
|
13
|
+
* date descending. Requires API-key scope or current OAuth user permission:
|
|
14
|
+
* source:list
|
|
14
15
|
*/
|
|
15
16
|
list(
|
|
16
17
|
query: SourceListParams | null | undefined = {},
|
|
@@ -22,14 +23,16 @@ export class Sources extends APIResource {
|
|
|
22
23
|
/**
|
|
23
24
|
* Create a new source. Returns the full source entity (same shape as GET
|
|
24
25
|
* /sources/{id}) so callers can read all server-assigned fields without a
|
|
25
|
-
* follow-up GET. Requires scope
|
|
26
|
+
* follow-up GET. Requires API-key scope or current OAuth user permission:
|
|
27
|
+
* source:create
|
|
26
28
|
*/
|
|
27
29
|
create(body: SourceCreateParams, options?: RequestOptions): APIPromise<SourceCreateResponse> {
|
|
28
30
|
return this._client.post('/rest/v1/sources', { body, ...options });
|
|
29
31
|
}
|
|
30
32
|
|
|
31
33
|
/**
|
|
32
|
-
* Find a single source by ID. Requires scope
|
|
34
|
+
* Find a single source by ID. Requires API-key scope or current OAuth user
|
|
35
|
+
* permission: source:view
|
|
33
36
|
*/
|
|
34
37
|
retrieve(id: string, options?: RequestOptions): APIPromise<SourceRetrieveResponse> {
|
|
35
38
|
return this._client.get(path`/rest/v1/sources/${id}`, options);
|
|
@@ -38,14 +41,16 @@ export class Sources extends APIResource {
|
|
|
38
41
|
/**
|
|
39
42
|
* Partially update a source. Only the fields you send are changed; omitted fields
|
|
40
43
|
* are unchanged. Send explicit `null` to clear a nullable field. Returns the full
|
|
41
|
-
* source entity after the update. Requires scope
|
|
44
|
+
* source entity after the update. Requires API-key scope or current OAuth user
|
|
45
|
+
* permission: source:update
|
|
42
46
|
*/
|
|
43
47
|
update(id: string, body: SourceUpdateParams, options?: RequestOptions): APIPromise<SourceUpdateResponse> {
|
|
44
48
|
return this._client.patch(path`/rest/v1/sources/${id}`, { body, ...options });
|
|
45
49
|
}
|
|
46
50
|
|
|
47
51
|
/**
|
|
48
|
-
* Delete a source. Requires scope
|
|
52
|
+
* Delete a source. Requires API-key scope or current OAuth user permission:
|
|
53
|
+
* source:delete
|
|
49
54
|
*/
|
|
50
55
|
delete(id: string, options?: RequestOptions): APIPromise<SourceDeleteResponse> {
|
|
51
56
|
return this._client.delete(path`/rest/v1/sources/${id}`, options);
|
|
@@ -58,7 +63,8 @@ export class Sources extends APIResource {
|
|
|
58
63
|
* and webhook sources return
|
|
59
64
|
* `{ sourceType: "webhook", token, testToken, ingestUrl, testIngestUrl, sampleCurl }`.
|
|
60
65
|
* Inspect the source's `type` field (`GET /rest/v1/sources/{id}`) to know which
|
|
61
|
-
* variant to expect. Requires scope
|
|
66
|
+
* variant to expect. Requires API-key scope or current OAuth user permission:
|
|
67
|
+
* source:view
|
|
62
68
|
*/
|
|
63
69
|
tokens(id: string, options?: RequestOptions): APIPromise<SourceTokensResponse> {
|
|
64
70
|
return this._client.get(path`/rest/v1/sources/${id}/tokens`, options);
|
|
@@ -9,7 +9,8 @@ export class TagManagerAssetFolders extends APIResource {
|
|
|
9
9
|
* Assign a tag, trigger, or variable to a folder within its tag manager, or send
|
|
10
10
|
* `folderId: null` to remove the asset from its current folder. The assignment is
|
|
11
11
|
* a full replace — calling it again with a different `folderId` silently moves the
|
|
12
|
-
* asset. Requires scope
|
|
12
|
+
* asset. Requires API-key scope or current OAuth user permission:
|
|
13
|
+
* tagManagers:update
|
|
13
14
|
*/
|
|
14
15
|
create(
|
|
15
16
|
body: TagManagerAssetFolderCreateParams,
|
|
@@ -12,8 +12,8 @@ export class TagManagerFolders extends APIResource {
|
|
|
12
12
|
* organizational containers — they do not affect tag evaluation. Requires the
|
|
13
13
|
* `tagManagerId` query parameter. Supports cursor pagination via `limit` and
|
|
14
14
|
* `cursor`; the limit clamp is 1000 so a single request can return the full set
|
|
15
|
-
* (the web-app workspace renders all folders in one shot). Requires scope
|
|
16
|
-
* tagManagers:find
|
|
15
|
+
* (the web-app workspace renders all folders in one shot). Requires API-key scope
|
|
16
|
+
* or current OAuth user permission: tagManagers:find
|
|
17
17
|
*/
|
|
18
18
|
list(
|
|
19
19
|
query: TagManagerFolderListParams,
|
|
@@ -28,8 +28,8 @@ export class TagManagerFolders extends APIResource {
|
|
|
28
28
|
/**
|
|
29
29
|
* Create a folder inside a tag manager. `tagManagerId` is required in the body.
|
|
30
30
|
* Names are case-insensitively unique within the tag manager — collisions return
|
|
31
|
-
* 409 with the reason in the response `error` field. Requires scope
|
|
32
|
-
* tagManagers:update
|
|
31
|
+
* 409 with the reason in the response `error` field. Requires API-key scope or
|
|
32
|
+
* current OAuth user permission: tagManagers:update
|
|
33
33
|
*/
|
|
34
34
|
create(
|
|
35
35
|
body: TagManagerFolderCreateParams,
|
|
@@ -39,7 +39,8 @@ export class TagManagerFolders extends APIResource {
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
|
-
* Find a single tag manager folder by ID. Requires scope
|
|
42
|
+
* Find a single tag manager folder by ID. Requires API-key scope or current OAuth
|
|
43
|
+
* user permission: tagManagers:find
|
|
43
44
|
*/
|
|
44
45
|
retrieve(id: string, options?: RequestOptions): APIPromise<TagManagerFolderRetrieveResponse> {
|
|
45
46
|
return this._client.get(path`/rest/v1/tag-manager-folders/${id}`, options);
|
|
@@ -47,7 +48,8 @@ export class TagManagerFolders extends APIResource {
|
|
|
47
48
|
|
|
48
49
|
/**
|
|
49
50
|
* Rename a folder. The new name must be case-insensitively unique within the tag
|
|
50
|
-
* manager; collisions return 409. Requires scope
|
|
51
|
+
* manager; collisions return 409. Requires API-key scope or current OAuth user
|
|
52
|
+
* permission: tagManagers:update
|
|
51
53
|
*/
|
|
52
54
|
update(
|
|
53
55
|
id: string,
|
|
@@ -60,7 +62,7 @@ export class TagManagerFolders extends APIResource {
|
|
|
60
62
|
/**
|
|
61
63
|
* Delete a folder. Tags, triggers, and variables previously assigned to the folder
|
|
62
64
|
* are no longer grouped under it; the assets themselves are not deleted. Requires
|
|
63
|
-
* scope: tagManagers:update
|
|
65
|
+
* API-key scope or current OAuth user permission: tagManagers:update
|
|
64
66
|
*/
|
|
65
67
|
delete(id: string, options?: RequestOptions): APIPromise<TagManagerFolderDeleteResponse> {
|
|
66
68
|
return this._client.delete(path`/rest/v1/tag-manager-folders/${id}`, options);
|
|
@@ -12,7 +12,7 @@ export class TagManagerTags extends APIResource {
|
|
|
12
12
|
* parameter — tags are always scoped to one parent container. Supports cursor
|
|
13
13
|
* pagination via `limit` and `cursor`; the limit clamp is 1000 so a single request
|
|
14
14
|
* can return the full set (the web-app workspace renders all tags in one shot).
|
|
15
|
-
* Requires scope: tagManagers:find
|
|
15
|
+
* Requires API-key scope or current OAuth user permission: tagManagers:find
|
|
16
16
|
*/
|
|
17
17
|
list(
|
|
18
18
|
query: TagManagerTagListParams,
|
|
@@ -27,7 +27,8 @@ export class TagManagerTags extends APIResource {
|
|
|
27
27
|
/**
|
|
28
28
|
* Create a new tag inside a tag manager. `tagManagerId` is required in the body.
|
|
29
29
|
* Newly created tags are not assigned to any folder — assign them with
|
|
30
|
-
* `POST /rest/v1/tag-manager-asset-folders`. Requires scope
|
|
30
|
+
* `POST /rest/v1/tag-manager-asset-folders`. Requires API-key scope or current
|
|
31
|
+
* OAuth user permission: tagManagers:update
|
|
31
32
|
*/
|
|
32
33
|
create(body: TagManagerTagCreateParams, options?: RequestOptions): APIPromise<TagManagerTagCreateResponse> {
|
|
33
34
|
return this._client.post('/rest/v1/tag-manager-tags', { body, ...options });
|
|
@@ -35,7 +36,7 @@ export class TagManagerTags extends APIResource {
|
|
|
35
36
|
|
|
36
37
|
/**
|
|
37
38
|
* Fetch a single tag by id, including its `folderId` (read-only on this endpoint).
|
|
38
|
-
* Requires scope: tagManagers:find
|
|
39
|
+
* Requires API-key scope or current OAuth user permission: tagManagers:find
|
|
39
40
|
*/
|
|
40
41
|
retrieve(id: string, options?: RequestOptions): APIPromise<TagManagerTagRetrieveResponse> {
|
|
41
42
|
return this._client.get(path`/rest/v1/tag-manager-tags/${id}`, options);
|
|
@@ -44,7 +45,8 @@ export class TagManagerTags extends APIResource {
|
|
|
44
45
|
/**
|
|
45
46
|
* Partially update a tag. Only the fields you send are changed. Tags cannot be
|
|
46
47
|
* moved between tag managers. To assign a tag to a folder, use
|
|
47
|
-
* `POST /rest/v1/tag-manager-asset-folders`. Requires scope
|
|
48
|
+
* `POST /rest/v1/tag-manager-asset-folders`. Requires API-key scope or current
|
|
49
|
+
* OAuth user permission: tagManagers:update
|
|
48
50
|
*/
|
|
49
51
|
update(
|
|
50
52
|
id: string,
|
|
@@ -55,7 +57,8 @@ export class TagManagerTags extends APIResource {
|
|
|
55
57
|
}
|
|
56
58
|
|
|
57
59
|
/**
|
|
58
|
-
* Delete a tag manager tag. Requires scope
|
|
60
|
+
* Delete a tag manager tag. Requires API-key scope or current OAuth user
|
|
61
|
+
* permission: tagManagers:update
|
|
59
62
|
*/
|
|
60
63
|
delete(id: string, options?: RequestOptions): APIPromise<TagManagerTagDeleteResponse> {
|
|
61
64
|
return this._client.delete(path`/rest/v1/tag-manager-tags/${id}`, options);
|
|
@@ -67,7 +70,8 @@ export class TagManagerTags extends APIResource {
|
|
|
67
70
|
* (fields, validators, required flags, available values for selects).
|
|
68
71
|
* Account-agnostic: the response is the same for every API key. The same registry
|
|
69
72
|
* powers server-side validation on `POST` / `PATCH` so what this endpoint
|
|
70
|
-
* advertises matches what the server enforces. Requires scope
|
|
73
|
+
* advertises matches what the server enforces. Requires API-key scope or current
|
|
74
|
+
* OAuth user permission: tagManagers:find
|
|
71
75
|
*/
|
|
72
76
|
types(options?: RequestOptions): APIPromise<TagManagerTagTypesResponse> {
|
|
73
77
|
return this._client.get('/rest/v1/tag-manager-tags/types', options);
|
|
@@ -395,7 +399,7 @@ export namespace TagManagerTagTypesResponse {
|
|
|
395
399
|
/**
|
|
396
400
|
* Default value when the caller omits the parameter on create.
|
|
397
401
|
*/
|
|
398
|
-
default?: { [key: string]: unknown };
|
|
402
|
+
default?: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
|
|
399
403
|
|
|
400
404
|
description?: string | null;
|
|
401
405
|
|