@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,11 +9,11 @@ import { path } from '../internal/utils/path';
|
|
|
9
9
|
export class TestEvents extends APIResource {
|
|
10
10
|
/**
|
|
11
11
|
* List browser, server, and synthetic events captured with debug mode during the
|
|
12
|
-
* last 48 hours, newest received first. Includes live-token
|
|
13
|
-
*
|
|
12
|
+
* last 48 hours, newest received first. Includes live-token and test-token events;
|
|
13
|
+
* `isTestEvent` indicates whether a test token was used. Returns full event
|
|
14
14
|
* properties. Pass an entity id unchanged to the detail or dispatch endpoint. Use
|
|
15
15
|
* `limit` (default 25, maximum 100) and `cursor` to page through results. Requires
|
|
16
|
-
* scope: report:list-events
|
|
16
|
+
* API-key scope or current OAuth user permission: report:list-events
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
19
|
* ```ts
|
|
@@ -35,12 +35,14 @@ export class TestEvents extends APIResource {
|
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
* Send a test event through the same processing your production events go through,
|
|
38
|
-
*
|
|
39
|
-
*
|
|
38
|
+
* using the source’s live token with debug capture enabled. This can deliver real
|
|
39
|
+
* data to configured destinations. The response acknowledges acceptance for
|
|
40
|
+
* processing; it does not contain processing results. The event is captured in
|
|
40
41
|
* Recent Events. Use the returned `id` with
|
|
41
42
|
* `GET /rest/v1/test-events/{id}/dispatches` to retrieve recorded dispatches.
|
|
42
43
|
* Supply `visitorId` and `distinctId` to choose the identity yourself; otherwise
|
|
43
|
-
* they are generated and returned. Requires scope
|
|
44
|
+
* they are generated and returned. Requires API-key scope or current OAuth user
|
|
45
|
+
* permission: test-event:create
|
|
44
46
|
*
|
|
45
47
|
* @example
|
|
46
48
|
* ```ts
|
|
@@ -57,7 +59,8 @@ export class TestEvents extends APIResource {
|
|
|
57
59
|
* Retrieve one browser, server, or synthetic event captured in debug mode within
|
|
58
60
|
* the last 48 hours. Use an id returned by the create or list endpoint. Events
|
|
59
61
|
* that have not arrived, expired events, and events outside your account
|
|
60
|
-
* return 404. Requires scope
|
|
62
|
+
* return 404. Requires API-key scope or current OAuth user permission:
|
|
63
|
+
* report:view-event
|
|
61
64
|
*
|
|
62
65
|
* @example
|
|
63
66
|
* ```ts
|
|
@@ -77,7 +80,7 @@ export class TestEvents extends APIResource {
|
|
|
77
80
|
* until dispatch records arrive, and may remain empty when no dispatch occurs.
|
|
78
81
|
* Results can grow as processing continues; this endpoint does not predict
|
|
79
82
|
* destinations or signal completion. Requires the report:view-dispatch scope.
|
|
80
|
-
* Requires scope: report:view-dispatch
|
|
83
|
+
* Requires API-key scope or current OAuth user permission: report:view-dispatch
|
|
81
84
|
*
|
|
82
85
|
* @example
|
|
83
86
|
* ```ts
|
|
@@ -186,7 +189,8 @@ export interface TestEventDispatchesResponse {
|
|
|
186
189
|
|
|
187
190
|
/**
|
|
188
191
|
* Dispatches recorded so far. Empty until dispatches arrive; no predicted
|
|
189
|
-
* destinations or completion signal.
|
|
192
|
+
* destinations or completion signal. Events created through this API can be
|
|
193
|
+
* delivered to live destinations.
|
|
190
194
|
*/
|
|
191
195
|
entities: Array<TestEventDispatchesResponse.Entity>;
|
|
192
196
|
}
|
|
@@ -239,10 +243,10 @@ export interface TestEventCreateParams {
|
|
|
239
243
|
eventName: string;
|
|
240
244
|
|
|
241
245
|
/**
|
|
242
|
-
*
|
|
243
|
-
*
|
|
246
|
+
* Known context properties used by ingest and destination mappings. Use
|
|
247
|
+
* current_url for the page URL. Unknown properties are ignored.
|
|
244
248
|
*/
|
|
245
|
-
defaultProperties?:
|
|
249
|
+
defaultProperties?: TestEventCreateParams.DefaultProperties | null;
|
|
246
250
|
|
|
247
251
|
/**
|
|
248
252
|
* Event identity for this specific event. Generated when omitted. Letters,
|
|
@@ -273,6 +277,419 @@ export interface TestEventCreateParams {
|
|
|
273
277
|
visitorId?: string | null;
|
|
274
278
|
}
|
|
275
279
|
|
|
280
|
+
export namespace TestEventCreateParams {
|
|
281
|
+
/**
|
|
282
|
+
* Known context properties used by ingest and destination mappings. Use
|
|
283
|
+
* current_url for the page URL. Unknown properties are ignored.
|
|
284
|
+
*/
|
|
285
|
+
export interface DefaultProperties {
|
|
286
|
+
/**
|
|
287
|
+
* The Everflow affiliate Click (Transaction) ID, captured from the
|
|
288
|
+
* `_ef_transaction_id` URL parameter. Ex: ef_click_abc123
|
|
289
|
+
*/
|
|
290
|
+
_ef_transaction_id?: string | null;
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* The active time in milliseconds that the user had this tab active
|
|
294
|
+
*/
|
|
295
|
+
activeDuration?: number | null;
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* The ad id for detected in the session. This is set by the web sdk automatically.
|
|
299
|
+
*/
|
|
300
|
+
ad_id?: string | null;
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* The Admitad (Mitgo) affiliate Click ID. Ex: admitad_uid_abc123
|
|
304
|
+
*/
|
|
305
|
+
admitad_uid?: string | null;
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* The adset id for detected in the session. This is set by the web sdk
|
|
309
|
+
* automatically.
|
|
310
|
+
*/
|
|
311
|
+
adset_id?: string | null;
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* The AppLovin alart query parameter. Ex: alart123
|
|
315
|
+
*/
|
|
316
|
+
alart?: string | null;
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* The AppLovin aleid query parameter. Ex: aleid123
|
|
320
|
+
*/
|
|
321
|
+
aleid?: string | null;
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* The AppLovin pixel cookie value (\_axwrt). Web-only.
|
|
325
|
+
*/
|
|
326
|
+
axwrt?: string | null;
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* The Basis DSP Click ID. Ex: basis_cid123
|
|
330
|
+
*/
|
|
331
|
+
basis_cid?: string | null;
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* The Beeswax (FreeWheel Buyer Cloud) auction ID, captured from the
|
|
335
|
+
* `{{AUCTION_ID}}` macro on creative click URLs. Ex: bx-auc-abc123
|
|
336
|
+
*/
|
|
337
|
+
beeswax_auction_id?: string | null;
|
|
338
|
+
|
|
339
|
+
/**
|
|
340
|
+
* The language of the browser. Ex: en-US
|
|
341
|
+
*/
|
|
342
|
+
browser_language?: string | null;
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* The name of the browser. Ex: Chrome
|
|
346
|
+
*/
|
|
347
|
+
browser_name?: string | null;
|
|
348
|
+
|
|
349
|
+
/**
|
|
350
|
+
* The version of the browser. Ex: 114.0
|
|
351
|
+
*/
|
|
352
|
+
browser_version?: string | null;
|
|
353
|
+
|
|
354
|
+
/**
|
|
355
|
+
* The campaign id for detected in the session. This is set by the web sdk
|
|
356
|
+
* automatically.
|
|
357
|
+
*/
|
|
358
|
+
campaign_id?: string | null;
|
|
359
|
+
|
|
360
|
+
/**
|
|
361
|
+
* The Click ID. Ex: clickid123
|
|
362
|
+
*/
|
|
363
|
+
clickid?: string | null;
|
|
364
|
+
|
|
365
|
+
/**
|
|
366
|
+
* The Generic Click ID. Ex: clid123
|
|
367
|
+
*/
|
|
368
|
+
clid?: string | null;
|
|
369
|
+
|
|
370
|
+
/**
|
|
371
|
+
* The architecture of the CPU. Ex: x64
|
|
372
|
+
*/
|
|
373
|
+
cpu_architecture?: string | null;
|
|
374
|
+
|
|
375
|
+
/**
|
|
376
|
+
* The full url (including query params) of the current page
|
|
377
|
+
*/
|
|
378
|
+
current_url?: string | null;
|
|
379
|
+
|
|
380
|
+
/**
|
|
381
|
+
* The DoubleClick Click ID. Ex: dclid123
|
|
382
|
+
*/
|
|
383
|
+
dclid?: string | null;
|
|
384
|
+
|
|
385
|
+
/**
|
|
386
|
+
* The model of the device. Ex: iPhone 13
|
|
387
|
+
*/
|
|
388
|
+
device_model?: string | null;
|
|
389
|
+
|
|
390
|
+
/**
|
|
391
|
+
* The type of device the user is using. Ex: mobile
|
|
392
|
+
*/
|
|
393
|
+
device_type?: string | null;
|
|
394
|
+
|
|
395
|
+
/**
|
|
396
|
+
* The vendor of the device. Ex: Apple
|
|
397
|
+
*/
|
|
398
|
+
device_vendor?: string | null;
|
|
399
|
+
|
|
400
|
+
/**
|
|
401
|
+
* The time in milliseconds since the page was loaded // script was loaded
|
|
402
|
+
*/
|
|
403
|
+
duration?: number | null;
|
|
404
|
+
|
|
405
|
+
/**
|
|
406
|
+
* The browsers encoding. Ex: UTF-8
|
|
407
|
+
*/
|
|
408
|
+
encoding?: string | null;
|
|
409
|
+
|
|
410
|
+
/**
|
|
411
|
+
* The name of the browser engine. Ex: Blink
|
|
412
|
+
*/
|
|
413
|
+
engine_name?: string | null;
|
|
414
|
+
|
|
415
|
+
/**
|
|
416
|
+
* The version of the browser engine. Ex: 114.0
|
|
417
|
+
*/
|
|
418
|
+
engine_version?: string | null;
|
|
419
|
+
|
|
420
|
+
/**
|
|
421
|
+
* The Pinterest Click ID. Ex: epik456
|
|
422
|
+
*/
|
|
423
|
+
epik?: string | null;
|
|
424
|
+
|
|
425
|
+
/**
|
|
426
|
+
* Facebook Click ID with prefix format for Conversions API tracking. Ex:
|
|
427
|
+
* fb.1.1554763741205.AbCdEfGhIjKlMnOpQrStUvWxYz1234567890
|
|
428
|
+
*/
|
|
429
|
+
fbc?: string | null;
|
|
430
|
+
|
|
431
|
+
/**
|
|
432
|
+
* Raw Facebook Click ID query parameter without prefix from ad clicks. Ex:
|
|
433
|
+
* AbCdEfGhIjKlMnOpQrStUvWxYz1234567890
|
|
434
|
+
*/
|
|
435
|
+
fbclid?: string | null;
|
|
436
|
+
|
|
437
|
+
/**
|
|
438
|
+
* Facebook Browser ID parameter for identifying browsers and attributing events.
|
|
439
|
+
* Ex: fb.1.1554763741205.1098115397
|
|
440
|
+
*/
|
|
441
|
+
fbp?: string | null;
|
|
442
|
+
|
|
443
|
+
/**
|
|
444
|
+
* Deprecated
|
|
445
|
+
*/
|
|
446
|
+
fv?: boolean | null;
|
|
447
|
+
|
|
448
|
+
/**
|
|
449
|
+
* The Google Ad Source. Ex: google
|
|
450
|
+
*/
|
|
451
|
+
gad_source?: string | null;
|
|
452
|
+
|
|
453
|
+
/**
|
|
454
|
+
* The Google Braid ID. Ex: gbraid123
|
|
455
|
+
*/
|
|
456
|
+
gbraid?: string | null;
|
|
457
|
+
|
|
458
|
+
/**
|
|
459
|
+
* The Google Click ID. Ex: gclid123
|
|
460
|
+
*/
|
|
461
|
+
gclid?: string | null;
|
|
462
|
+
|
|
463
|
+
/**
|
|
464
|
+
* The host of the current page. Ex: example.com
|
|
465
|
+
*/
|
|
466
|
+
host?: string | null;
|
|
467
|
+
|
|
468
|
+
/**
|
|
469
|
+
* Whether the user is in an iframe. Ex: true
|
|
470
|
+
*/
|
|
471
|
+
iframe?: boolean | null;
|
|
472
|
+
|
|
473
|
+
/**
|
|
474
|
+
* The Impact Click ID reference. Ex: im_ref123
|
|
475
|
+
*/
|
|
476
|
+
im_ref?: string | null;
|
|
477
|
+
|
|
478
|
+
/**
|
|
479
|
+
* The IP address of the user. Ex: 127.0.0.1
|
|
480
|
+
*/
|
|
481
|
+
ip?: string | null;
|
|
482
|
+
|
|
483
|
+
/**
|
|
484
|
+
* The Impact Click ID. Ex: irclickid123
|
|
485
|
+
*/
|
|
486
|
+
irclickid?: string | null;
|
|
487
|
+
|
|
488
|
+
/**
|
|
489
|
+
* Whether we have detected that the user is a bot. This is set automatically by
|
|
490
|
+
* the Ours server primarily for events tracked through the web SDK.
|
|
491
|
+
*/
|
|
492
|
+
is_bot?: boolean | null;
|
|
493
|
+
|
|
494
|
+
/**
|
|
495
|
+
* The LinkedIn Click ID. Ex: li_fat_id123
|
|
496
|
+
*/
|
|
497
|
+
li_fat_id?: string | null;
|
|
498
|
+
|
|
499
|
+
/**
|
|
500
|
+
* The Microsoft Click ID. Ex: msclkid123
|
|
501
|
+
*/
|
|
502
|
+
msclkid?: string | null;
|
|
503
|
+
|
|
504
|
+
/**
|
|
505
|
+
* The NextDoor Click ID. Ex: ndclid123
|
|
506
|
+
*/
|
|
507
|
+
ndclid?: string | null;
|
|
508
|
+
|
|
509
|
+
/**
|
|
510
|
+
* Deprecated
|
|
511
|
+
*/
|
|
512
|
+
new_s?: boolean | null;
|
|
513
|
+
|
|
514
|
+
/**
|
|
515
|
+
* The Outbrain click ID, captured from the `ob_click_id` URL parameter (Outbrain
|
|
516
|
+
* `{{ob_click_id}}` macro) on the landing page. Ex: ob_click_abc123
|
|
517
|
+
*/
|
|
518
|
+
ob_click_id?: string | null;
|
|
519
|
+
|
|
520
|
+
/**
|
|
521
|
+
* The OpenAI Ads privacy-preserving reference, captured from the `oppref` URL
|
|
522
|
+
* parameter on landing pages (the OpenAI Pixel also stores it in a `__oppref`
|
|
523
|
+
* cookie). Sent to OpenAI Ads on Conversions API events for attribution. Ex:
|
|
524
|
+
* oppref_abc
|
|
525
|
+
*/
|
|
526
|
+
oppref?: string | null;
|
|
527
|
+
|
|
528
|
+
/**
|
|
529
|
+
* The name of the operating system. Ex: Windows
|
|
530
|
+
*/
|
|
531
|
+
os_name?: string | null;
|
|
532
|
+
|
|
533
|
+
/**
|
|
534
|
+
* The version of the operating system. Ex: 10.0
|
|
535
|
+
*/
|
|
536
|
+
os_version?: string | null;
|
|
537
|
+
|
|
538
|
+
/**
|
|
539
|
+
* A random set of numbers for the page load
|
|
540
|
+
*/
|
|
541
|
+
page_hash?: number | null;
|
|
542
|
+
|
|
543
|
+
/**
|
|
544
|
+
* The pathname of the current page. Ex: /home
|
|
545
|
+
*/
|
|
546
|
+
pathname?: string | null;
|
|
547
|
+
|
|
548
|
+
/**
|
|
549
|
+
* The Quora Click ID. Ex: qclid123
|
|
550
|
+
*/
|
|
551
|
+
qclid?: string | null;
|
|
552
|
+
|
|
553
|
+
/**
|
|
554
|
+
* The Reddit Click ID. Ex: rdt_cid123
|
|
555
|
+
*/
|
|
556
|
+
rdt_cid?: string | null;
|
|
557
|
+
|
|
558
|
+
/**
|
|
559
|
+
* The time the event was received by an Ours server in ISO format
|
|
560
|
+
*/
|
|
561
|
+
received_at?: string | null;
|
|
562
|
+
|
|
563
|
+
/**
|
|
564
|
+
* The referrer URL of the current page
|
|
565
|
+
*/
|
|
566
|
+
referrer?: string | null;
|
|
567
|
+
|
|
568
|
+
/**
|
|
569
|
+
* The referring domain of the current page
|
|
570
|
+
*/
|
|
571
|
+
referring_domain?: string | null;
|
|
572
|
+
|
|
573
|
+
/**
|
|
574
|
+
* The StackAdapt Tracking ID. Ex: sacid123
|
|
575
|
+
*/
|
|
576
|
+
sacid?: string | null;
|
|
577
|
+
|
|
578
|
+
/**
|
|
579
|
+
* The SnapChat Click ID. Ex: sccid123
|
|
580
|
+
*/
|
|
581
|
+
sccid?: string | null;
|
|
582
|
+
|
|
583
|
+
/**
|
|
584
|
+
* The height of the screen. Ex: 1080
|
|
585
|
+
*/
|
|
586
|
+
screen_height?: number | null;
|
|
587
|
+
|
|
588
|
+
/**
|
|
589
|
+
* The width of the screen. Ex: 1920
|
|
590
|
+
*/
|
|
591
|
+
screen_width?: number | null;
|
|
592
|
+
|
|
593
|
+
/**
|
|
594
|
+
* The number of sessions the user has had. Ex: 3
|
|
595
|
+
*/
|
|
596
|
+
sessionCount?: number | null;
|
|
597
|
+
|
|
598
|
+
/**
|
|
599
|
+
* The session ID as assigned automatically by the web SDK. This is required for
|
|
600
|
+
* session replay
|
|
601
|
+
*/
|
|
602
|
+
sid?: string | null;
|
|
603
|
+
|
|
604
|
+
sr?: string | null;
|
|
605
|
+
|
|
606
|
+
/**
|
|
607
|
+
* The title of the current page
|
|
608
|
+
*/
|
|
609
|
+
title?: string | null;
|
|
610
|
+
|
|
611
|
+
/**
|
|
612
|
+
* The TikTok Click ID. Ex: ttclid123
|
|
613
|
+
*/
|
|
614
|
+
ttclid?: string | null;
|
|
615
|
+
|
|
616
|
+
/**
|
|
617
|
+
* The Twitter Click ID. Ex: twclid123
|
|
618
|
+
*/
|
|
619
|
+
twclid?: string | null;
|
|
620
|
+
|
|
621
|
+
/**
|
|
622
|
+
* User agent as a full list of strings.
|
|
623
|
+
*/
|
|
624
|
+
uafvl?: string | null;
|
|
625
|
+
|
|
626
|
+
/**
|
|
627
|
+
* The user agent of the browser
|
|
628
|
+
*/
|
|
629
|
+
user_agent?: string | null;
|
|
630
|
+
|
|
631
|
+
/**
|
|
632
|
+
* The UTM Campaign. The web SDK automatically captures this from the query params.
|
|
633
|
+
*/
|
|
634
|
+
utm_campaign?: string | null;
|
|
635
|
+
|
|
636
|
+
/**
|
|
637
|
+
* The UTM Content. The web SDK automatically captures this from the query params.
|
|
638
|
+
*/
|
|
639
|
+
utm_content?: string | null;
|
|
640
|
+
|
|
641
|
+
/**
|
|
642
|
+
* The UTM Medium. The web SDK automatically captures this from the query params.
|
|
643
|
+
*/
|
|
644
|
+
utm_medium?: string | null;
|
|
645
|
+
|
|
646
|
+
/**
|
|
647
|
+
* The UTM Name. The web SDK automatically captures this from the query params.
|
|
648
|
+
*/
|
|
649
|
+
utm_name?: string | null;
|
|
650
|
+
|
|
651
|
+
/**
|
|
652
|
+
* The UTM Source. The web SDK automatically captures this from the query params.
|
|
653
|
+
*/
|
|
654
|
+
utm_source?: string | null;
|
|
655
|
+
|
|
656
|
+
/**
|
|
657
|
+
* The UTM Term. The web SDK automatically captures this from the query params.
|
|
658
|
+
*/
|
|
659
|
+
utm_term?: string | null;
|
|
660
|
+
|
|
661
|
+
/**
|
|
662
|
+
* The SDK version (e.g., web SDK or ingest-sdk-\* via generated SDK headers)
|
|
663
|
+
*/
|
|
664
|
+
version?: string | null;
|
|
665
|
+
|
|
666
|
+
/**
|
|
667
|
+
* The Viant (Adelphic) Click ID, captured from the `viant_click_id` URL parameter
|
|
668
|
+
* (Viant `${ADELPHIC_CLICKID}` macro). Sent as `xid` on Viant postbacks. Ex:
|
|
669
|
+
* viant_click_abc123
|
|
670
|
+
*/
|
|
671
|
+
viant_click_id?: string | null;
|
|
672
|
+
|
|
673
|
+
/**
|
|
674
|
+
* The Viant (Adelphic) Impression ID, captured from the `viant_impression_id` URL
|
|
675
|
+
* parameter (Viant `${ADELPHIC_IMPRESSIONID}` macro). Sent as `imp_id` on Viant
|
|
676
|
+
* postbacks for post-view attribution. Ex: viant_imp_abc123
|
|
677
|
+
*/
|
|
678
|
+
viant_impression_id?: string | null;
|
|
679
|
+
|
|
680
|
+
/**
|
|
681
|
+
* The WBRAID Identifier. The web SDK automatically captures this from the query
|
|
682
|
+
* params.
|
|
683
|
+
*/
|
|
684
|
+
wbraid?: string | null;
|
|
685
|
+
|
|
686
|
+
/**
|
|
687
|
+
* Whether the user is in a webview. Ex: true
|
|
688
|
+
*/
|
|
689
|
+
webview?: boolean | null;
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
|
|
276
693
|
export declare namespace TestEvents {
|
|
277
694
|
export {
|
|
278
695
|
type TestEventListResponse as TestEventListResponse,
|
|
@@ -9,8 +9,8 @@ export class TranslationWidgets extends APIResource {
|
|
|
9
9
|
/**
|
|
10
10
|
* List every translation widget configured on the account, including the domains
|
|
11
11
|
* it runs on, its appearance settings, and the languages it offers. Not paginated
|
|
12
|
-
* — widgets are capped by the account's translation widget limit. Requires
|
|
13
|
-
* translationWidget:list
|
|
12
|
+
* — widgets are capped by the account's translation widget limit. Requires API-key
|
|
13
|
+
* scope or current OAuth user permission: translationWidget:list
|
|
14
14
|
*
|
|
15
15
|
* @example
|
|
16
16
|
* ```ts
|
|
@@ -27,7 +27,8 @@ export class TranslationWidgets extends APIResource {
|
|
|
27
27
|
* back as `null` and the widget falls back to its built-in appearance, and
|
|
28
28
|
* omitting `enabledLanguages` offers every supported language. Returns the full
|
|
29
29
|
* widget, including its id, so it can be installed without a follow-up request.
|
|
30
|
-
* Requires scope
|
|
30
|
+
* Requires API-key scope or current OAuth user permission:
|
|
31
|
+
* translationWidget:create
|
|
31
32
|
*
|
|
32
33
|
* @example
|
|
33
34
|
* ```ts
|
|
@@ -44,7 +45,7 @@ export class TranslationWidgets extends APIResource {
|
|
|
44
45
|
|
|
45
46
|
/**
|
|
46
47
|
* Fetch one translation widget by its id. Returns 404 when it does not exist.
|
|
47
|
-
* Requires scope: translationWidget:find
|
|
48
|
+
* Requires API-key scope or current OAuth user permission: translationWidget:find
|
|
48
49
|
*
|
|
49
50
|
* @example
|
|
50
51
|
* ```ts
|
|
@@ -60,8 +61,8 @@ export class TranslationWidgets extends APIResource {
|
|
|
60
61
|
|
|
61
62
|
/**
|
|
62
63
|
* Return usage totals and language, host, and page breakdowns for one translation
|
|
63
|
-
* widget over the requested date range. Requires scope
|
|
64
|
-
* report:translation-analytics
|
|
64
|
+
* widget over the requested date range. Requires API-key scope or current OAuth
|
|
65
|
+
* user permission: report:translation-analytics
|
|
65
66
|
*
|
|
66
67
|
* @example
|
|
67
68
|
* ```ts
|
|
@@ -10,7 +10,8 @@ export class Versions extends APIResource {
|
|
|
10
10
|
/**
|
|
11
11
|
* List versions for this account, newest first. Supports cursor pagination and
|
|
12
12
|
* filtering by `isPublished`, `nameContains`, and `notesContains`. Combine filters
|
|
13
|
-
* with AND semantics. Requires scope
|
|
13
|
+
* with AND semantics. Requires API-key scope or current OAuth user permission:
|
|
14
|
+
* version:list
|
|
14
15
|
*/
|
|
15
16
|
list(
|
|
16
17
|
query: VersionListParams | null | undefined = {},
|
|
@@ -35,14 +36,16 @@ export class Versions extends APIResource {
|
|
|
35
36
|
* an entity-id allowlist for one collection — omit (or send `[]`) to include every
|
|
36
37
|
* draft change in that collection, or send a non-empty array to whitelist only
|
|
37
38
|
* those ids. Unlisted collections inherit wholesale from the latest published
|
|
38
|
-
* version. Requires scope
|
|
39
|
+
* version. Requires API-key scope or current OAuth user permission:
|
|
40
|
+
* version:publish
|
|
39
41
|
*/
|
|
40
42
|
create(body: VersionCreateParams, options?: RequestOptions): APIPromise<VersionCreateResponse> {
|
|
41
43
|
return this._client.post('/rest/v1/versions', { body, ...options });
|
|
42
44
|
}
|
|
43
45
|
|
|
44
46
|
/**
|
|
45
|
-
* Find a single version by ID. Requires scope
|
|
47
|
+
* Find a single version by ID. Requires API-key scope or current OAuth user
|
|
48
|
+
* permission: version:find
|
|
46
49
|
*/
|
|
47
50
|
retrieve(id: string, options?: RequestOptions): APIPromise<VersionRetrieveResponse> {
|
|
48
51
|
return this._client.get(path`/rest/v1/versions/${id}`, options);
|
|
@@ -50,7 +53,7 @@ export class Versions extends APIResource {
|
|
|
50
53
|
|
|
51
54
|
/**
|
|
52
55
|
* Partially update a version. Only the fields you send are changed. Requires
|
|
53
|
-
* scope: version:update
|
|
56
|
+
* API-key scope or current OAuth user permission: version:update
|
|
54
57
|
*/
|
|
55
58
|
update(id: string, body: VersionUpdateParams, options?: RequestOptions): APIPromise<VersionUpdateResponse> {
|
|
56
59
|
return this._client.patch(path`/rest/v1/versions/${id}`, { body, ...options });
|
|
@@ -61,7 +64,7 @@ export class Versions extends APIResource {
|
|
|
61
64
|
* to an older snapshot. Returns 409 if the version is already published, was
|
|
62
65
|
* created more than 45 days ago, or another publish is already in flight. To
|
|
63
66
|
* create-and-publish from current draft state, use POST /rest/v1/versions instead.
|
|
64
|
-
* Requires scope: version:publish
|
|
67
|
+
* Requires API-key scope or current OAuth user permission: version:publish
|
|
65
68
|
*/
|
|
66
69
|
publish(id: string, options?: RequestOptions): APIPromise<VersionPublishResponse> {
|
|
67
70
|
return this._client.post(path`/rest/v1/versions/${id}/publish`, options);
|
|
@@ -71,8 +74,8 @@ export class Versions extends APIResource {
|
|
|
71
74
|
* Retrieve the full JSON snapshot captured by a version — every entity
|
|
72
75
|
* (destinations, sources, mappings, consent settings, etc.) as it existed when
|
|
73
76
|
* this version was published. Sensitive fields (API keys, tokens, secrets) are
|
|
74
|
-
* redacted. Useful for IaC export, audit, and backup workflows. Requires
|
|
75
|
-
* version:find
|
|
77
|
+
* redacted. Useful for IaC export, audit, and backup workflows. Requires API-key
|
|
78
|
+
* scope or current OAuth user permission: version:find
|
|
76
79
|
*/
|
|
77
80
|
snapshot(id: string, options?: RequestOptions): APIPromise<VersionSnapshotResponse> {
|
|
78
81
|
return this._client.get(path`/rest/v1/versions/${id}/snapshot`, options);
|
|
@@ -97,7 +100,8 @@ export class Versions extends APIResource {
|
|
|
97
100
|
* latest published version.
|
|
98
101
|
* - `GET /rest/v1/versions/{id}/diff?against={otherId}` — compare two specific
|
|
99
102
|
* versions. `otherId` may also be `draft` to diff a published snapshot against
|
|
100
|
-
* the live draft state. Requires scope
|
|
103
|
+
* the live draft state. Requires API-key scope or current OAuth user permission:
|
|
104
|
+
* version:find
|
|
101
105
|
*/
|
|
102
106
|
diff(
|
|
103
107
|
id: 'draft' | (string & {}),
|
|
@@ -122,7 +126,7 @@ export class Versions extends APIResource {
|
|
|
122
126
|
* `GET /rest/v1/versions/draft/diff` when you need the full change set instead of
|
|
123
127
|
* one entity. (`draft` is a literal path segment identifying the live draft as the
|
|
124
128
|
* target, which is why the entity is passed as `entityId` rather than `id`.)
|
|
125
|
-
* Requires scope: version:find
|
|
129
|
+
* Requires API-key scope or current OAuth user permission: version:find
|
|
126
130
|
*/
|
|
127
131
|
status(
|
|
128
132
|
id: 'draft',
|
|
@@ -147,7 +151,8 @@ export class Versions extends APIResource {
|
|
|
147
151
|
* use the experiment lifecycle endpoints (`/start`, `/stop`) for those — but
|
|
148
152
|
* `experimentSettings` is supported. To discard every pending change at once, use
|
|
149
153
|
* `POST /rest/v1/versions/draft/abandon`. (`draft` is a literal path segment
|
|
150
|
-
* identifying the live draft as the target.) Requires scope
|
|
154
|
+
* identifying the live draft as the target.) Requires API-key scope or current
|
|
155
|
+
* OAuth user permission: version:publish
|
|
151
156
|
*/
|
|
152
157
|
revert(
|
|
153
158
|
id: 'draft',
|
|
@@ -165,7 +170,7 @@ export class Versions extends APIResource {
|
|
|
165
170
|
* version to revert to, or when another publish or abandon is already in flight.
|
|
166
171
|
* To revert only specific changes, use `POST /rest/v1/versions/draft/revert`.
|
|
167
172
|
* (`draft` is a literal path segment identifying the live draft as the target.)
|
|
168
|
-
* Requires scope: version:publish
|
|
173
|
+
* Requires API-key scope or current OAuth user permission: version:publish
|
|
169
174
|
*/
|
|
170
175
|
abandon(id: 'draft', options?: RequestOptions): APIPromise<VersionAbandonResponse> {
|
|
171
176
|
return this._client.post(path`/rest/v1/versions/${id}/abandon`, options);
|
|
@@ -3213,6 +3218,12 @@ export interface VersionListParams extends CursorParams {
|
|
|
3213
3218
|
}
|
|
3214
3219
|
|
|
3215
3220
|
export interface VersionCreateParams {
|
|
3221
|
+
/**
|
|
3222
|
+
* Allow publishing web sources without allowed domains for this version. Defaults
|
|
3223
|
+
* to false. Sources without allowed domains accept events from any domain.
|
|
3224
|
+
*/
|
|
3225
|
+
bypassWebSourceDomainValidation?: boolean | null;
|
|
3226
|
+
|
|
3216
3227
|
/**
|
|
3217
3228
|
* Cherry-pick: allowed event ids (slug-like strings) to include from the draft.
|
|
3218
3229
|
* Omit or send `[]` to include all draft changes in this collection.
|