@oursprivacy/platform-sdk 1.52.0 → 1.54.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 +12 -6
- package/client.d.mts.map +1 -1
- package/client.d.ts +12 -6
- package/client.d.ts.map +1 -1
- package/client.js +6 -0
- package/client.js.map +1 -1
- package/client.mjs +6 -0
- package/client.mjs.map +1 -1
- package/package.json +2 -2
- 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 +6238 -650
- package/resources/consent-settings.d.mts.map +1 -1
- package/resources/consent-settings.d.ts +6238 -650
- 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/custom-domains.d.mts +301 -0
- package/resources/custom-domains.d.mts.map +1 -0
- package/resources/custom-domains.d.ts +301 -0
- package/resources/custom-domains.d.ts.map +1 -0
- package/resources/custom-domains.js +55 -0
- package/resources/custom-domains.js.map +1 -0
- package/resources/custom-domains.mjs +51 -0
- package/resources/custom-domains.mjs.map +1 -0
- package/resources/data-governance.d.mts +83 -21
- package/resources/data-governance.d.mts.map +1 -1
- package/resources/data-governance.d.ts +83 -21
- 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 +213 -8
- package/resources/default-mappings.d.mts.map +1 -1
- package/resources/default-mappings.d.ts +213 -8
- 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 +45 -20
- package/resources/destinations.d.mts.map +1 -1
- package/resources/destinations.d.ts +45 -20
- 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 +126 -19
- package/resources/experiment-variants.d.mts.map +1 -1
- package/resources/experiment-variants.d.ts +126 -19
- 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 +4009 -272
- package/resources/experiments.d.mts.map +1 -1
- package/resources/experiments.d.ts +4009 -272
- 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 +659 -17
- package/resources/funnels.d.mts.map +1 -1
- package/resources/funnels.d.ts +659 -17
- 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 +5 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +5 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -0
- package/resources/index.mjs.map +1 -1
- package/resources/journey-flows.d.mts +597 -28
- package/resources/journey-flows.d.mts.map +1 -1
- package/resources/journey-flows.d.ts +597 -28
- 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 +31 -10
- package/resources/locations.d.mts.map +1 -1
- package/resources/locations.d.ts +31 -10
- 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 +558 -24
- package/resources/mappings.d.mts.map +1 -1
- package/resources/mappings.d.ts +558 -24
- package/resources/mappings.d.ts.map +1 -1
- package/resources/mappings.js +40 -12
- package/resources/mappings.js.map +1 -1
- package/resources/mappings.mjs +40 -12
- package/resources/mappings.mjs.map +1 -1
- package/resources/me.d.mts +29 -0
- package/resources/me.d.mts.map +1 -0
- package/resources/me.d.ts +29 -0
- package/resources/me.d.ts.map +1 -0
- package/resources/me.js +17 -0
- package/resources/me.js.map +1 -0
- package/resources/me.mjs +13 -0
- package/resources/me.mjs.map +1 -0
- 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 +126 -9
- package/resources/replay-settings.d.mts.map +1 -1
- package/resources/replay-settings.d.ts +126 -9
- 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 +9 -2
- package/resources/session-replays.d.mts.map +1 -1
- package/resources/session-replays.d.ts +9 -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 +733 -17
- package/resources/short-links.d.mts.map +1 -1
- package/resources/short-links.d.ts +733 -17
- 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 +98 -17
- package/resources/sources.d.mts.map +1 -1
- package/resources/sources.d.ts +98 -17
- 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 +13 -7
- package/resources/tag-manager-tags.d.mts.map +1 -1
- package/resources/tag-manager-tags.d.ts +13 -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 +14 -7
- package/resources/tag-manager-triggers.d.mts.map +1 -1
- package/resources/tag-manager-triggers.d.ts +14 -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 +53 -23
- package/resources/tag-manager-variables.d.mts.map +1 -1
- package/resources/tag-manager-variables.d.ts +53 -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 +24 -6
- package/resources/tag-managers.d.mts.map +1 -1
- package/resources/tag-managers.d.ts +24 -6
- package/resources/tag-managers.d.ts.map +1 -1
- package/resources/tag-managers.js +18 -5
- package/resources/tag-managers.js.map +1 -1
- package/resources/tag-managers.mjs +18 -5
- package/resources/tag-managers.mjs.map +1 -1
- package/resources/test-events.d.mts +73 -15
- package/resources/test-events.d.mts.map +1 -1
- package/resources/test-events.d.ts +73 -15
- package/resources/test-events.d.ts.map +1 -1
- package/resources/test-events.js +6 -4
- package/resources/test-events.js.map +1 -1
- package/resources/test-events.mjs +6 -4
- package/resources/test-events.mjs.map +1 -1
- package/resources/translation-widgets.d.mts +7 -6
- package/resources/translation-widgets.d.mts.map +1 -1
- package/resources/translation-widgets.d.ts +7 -6
- package/resources/translation-widgets.d.ts.map +1 -1
- package/resources/translation-widgets.js +7 -6
- package/resources/translation-widgets.js.map +1 -1
- package/resources/translation-widgets.mjs +7 -6
- package/resources/translation-widgets.mjs.map +1 -1
- package/resources/versions.d.mts +102 -47
- package/resources/versions.d.mts.map +1 -1
- package/resources/versions.d.ts +102 -47
- package/resources/versions.d.ts.map +1 -1
- package/resources/versions.js +20 -15
- package/resources/versions.js.map +1 -1
- package/resources/versions.mjs +20 -15
- package/resources/versions.mjs.map +1 -1
- package/resources/video-channels.d.mts +47 -13
- package/resources/video-channels.d.mts.map +1 -1
- package/resources/video-channels.d.ts +47 -13
- 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 +44 -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 +7576 -519
- package/src/resources/conversion-journey-summaries.ts +10 -5
- package/src/resources/custom-domains.ts +450 -0
- package/src/resources/data-governance.ts +53 -21
- package/src/resources/default-mappings.ts +309 -8
- package/src/resources/destinations.ts +40 -15
- package/src/resources/experiment-settings.ts +9 -6
- package/src/resources/experiment-variants.ts +140 -19
- package/src/resources/experiments.ts +8051 -462
- package/src/resources/funnels.ts +1366 -17
- package/src/resources/heatmap-pages.ts +3 -2
- package/src/resources/index.ts +19 -0
- package/src/resources/journey-flows.ts +1241 -28
- package/src/resources/locations.ts +41 -10
- package/src/resources/mappings.ts +812 -31
- package/src/resources/me.ts +37 -0
- package/src/resources/personalization-properties.ts +10 -7
- package/src/resources/replay-settings.ts +147 -9
- package/src/resources/session-replays.ts +10 -2
- package/src/resources/short-links.ts +883 -17
- package/src/resources/sources.ts +108 -17
- 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 +17 -7
- package/src/resources/tag-manager-triggers.ts +18 -7
- package/src/resources/tag-manager-variables.ts +101 -19
- package/src/resources/tag-managers.ts +35 -5
- package/src/resources/test-events.ts +53 -15
- package/src/resources/translation-widgets.ts +7 -6
- package/src/resources/versions.ts +104 -47
- package/src/resources/video-channels.ts +59 -13
- 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
|
@@ -12,7 +12,7 @@ export class TagManagerVariables extends APIResource {
|
|
|
12
12
|
* parameter — variables 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 variables in one
|
|
15
|
-
* shot). Requires scope: tagManagers:find
|
|
15
|
+
* shot). Requires API-key scope or current OAuth user permission: tagManagers:find
|
|
16
16
|
*/
|
|
17
17
|
list(
|
|
18
18
|
query: TagManagerVariableListParams,
|
|
@@ -28,7 +28,7 @@ export class TagManagerVariables extends APIResource {
|
|
|
28
28
|
* Create a new variable inside a tag manager. `tagManagerId` is required in the
|
|
29
29
|
* body. Known input failures (e.g. duplicate variable name within the tag manager)
|
|
30
30
|
* are returned as HTTP 409 with the reason in the response `error` field. Requires
|
|
31
|
-
* scope: tagManagers:update
|
|
31
|
+
* API-key scope or current OAuth user permission: tagManagers:update
|
|
32
32
|
*/
|
|
33
33
|
create(
|
|
34
34
|
body: TagManagerVariableCreateParams,
|
|
@@ -38,7 +38,8 @@ export class TagManagerVariables extends APIResource {
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
/**
|
|
41
|
-
* Find a single tag manager variable by ID. Requires scope
|
|
41
|
+
* Find a single tag manager variable by ID. Requires API-key scope or current
|
|
42
|
+
* OAuth user permission: tagManagers:find
|
|
42
43
|
*/
|
|
43
44
|
retrieve(id: string, options?: RequestOptions): APIPromise<TagManagerVariableRetrieveResponse> {
|
|
44
45
|
return this._client.get(path`/rest/v1/tag-manager-variables/${id}`, options);
|
|
@@ -48,7 +49,8 @@ export class TagManagerVariables extends APIResource {
|
|
|
48
49
|
* Partially update a variable. Only the fields you send are changed. Name
|
|
49
50
|
* collisions with other variables in the same tag manager return 409 with the
|
|
50
51
|
* reason in the response `error` field. To assign a variable to a folder, use
|
|
51
|
-
* `POST /rest/v1/tag-manager-asset-folders`. Requires scope
|
|
52
|
+
* `POST /rest/v1/tag-manager-asset-folders`. Requires API-key scope or current
|
|
53
|
+
* OAuth user permission: tagManagers:update
|
|
52
54
|
*/
|
|
53
55
|
update(
|
|
54
56
|
id: string,
|
|
@@ -59,7 +61,8 @@ export class TagManagerVariables extends APIResource {
|
|
|
59
61
|
}
|
|
60
62
|
|
|
61
63
|
/**
|
|
62
|
-
* Delete a tag manager variable. Requires scope
|
|
64
|
+
* Delete a tag manager variable. Requires API-key scope or current OAuth user
|
|
65
|
+
* permission: tagManagers:update
|
|
63
66
|
*/
|
|
64
67
|
delete(id: string, options?: RequestOptions): APIPromise<TagManagerVariableDeleteResponse> {
|
|
65
68
|
return this._client.delete(path`/rest/v1/tag-manager-variables/${id}`, options);
|
|
@@ -70,7 +73,8 @@ export class TagManagerVariables extends APIResource {
|
|
|
70
73
|
* to send on create/patch, the shape of the type-specific `parameters` payload,
|
|
71
74
|
* and `supportsVariables` (whether the variable's own parameter fields may
|
|
72
75
|
* reference `{{OtherVariable}}` at runtime). Account-agnostic: the response is the
|
|
73
|
-
* same for every API key. Requires scope
|
|
76
|
+
* same for every API key. Requires API-key scope or current OAuth user permission:
|
|
77
|
+
* tagManagers:find
|
|
74
78
|
*/
|
|
75
79
|
types(options?: RequestOptions): APIPromise<TagManagerVariableTypesResponse> {
|
|
76
80
|
return this._client.get('/rest/v1/tag-manager-variables/types', options);
|
|
@@ -106,7 +110,13 @@ export interface TagManagerVariableListResponse {
|
|
|
106
110
|
* Default value returned when no rule matches. JSON value — type depends on
|
|
107
111
|
* `type`.
|
|
108
112
|
*/
|
|
109
|
-
defaultValue?:
|
|
113
|
+
defaultValue?:
|
|
114
|
+
| string
|
|
115
|
+
| null
|
|
116
|
+
| number
|
|
117
|
+
| boolean
|
|
118
|
+
| Array<string | null | number | boolean | Array<unknown> | { [key: string]: unknown }>
|
|
119
|
+
| { [key: string]: unknown };
|
|
110
120
|
|
|
111
121
|
enabled?: boolean | null;
|
|
112
122
|
|
|
@@ -119,7 +129,13 @@ export interface TagManagerVariableListResponse {
|
|
|
119
129
|
/**
|
|
120
130
|
* Optional lookup table for `LookUpTable`-style variables. JSON value.
|
|
121
131
|
*/
|
|
122
|
-
lookUpTable?:
|
|
132
|
+
lookUpTable?:
|
|
133
|
+
| string
|
|
134
|
+
| null
|
|
135
|
+
| number
|
|
136
|
+
| boolean
|
|
137
|
+
| Array<string | null | number | boolean | Array<unknown> | { [key: string]: unknown }>
|
|
138
|
+
| { [key: string]: unknown };
|
|
123
139
|
|
|
124
140
|
updatedAt?: string | null;
|
|
125
141
|
}
|
|
@@ -151,7 +167,13 @@ export interface TagManagerVariableCreateResponse {
|
|
|
151
167
|
* Default value returned when no rule matches. JSON value — type depends on
|
|
152
168
|
* `type`.
|
|
153
169
|
*/
|
|
154
|
-
defaultValue?:
|
|
170
|
+
defaultValue?:
|
|
171
|
+
| string
|
|
172
|
+
| null
|
|
173
|
+
| number
|
|
174
|
+
| boolean
|
|
175
|
+
| Array<string | null | number | boolean | Array<unknown> | { [key: string]: unknown }>
|
|
176
|
+
| { [key: string]: unknown };
|
|
155
177
|
|
|
156
178
|
enabled?: boolean | null;
|
|
157
179
|
|
|
@@ -164,7 +186,13 @@ export interface TagManagerVariableCreateResponse {
|
|
|
164
186
|
/**
|
|
165
187
|
* Optional lookup table for `LookUpTable`-style variables. JSON value.
|
|
166
188
|
*/
|
|
167
|
-
lookUpTable?:
|
|
189
|
+
lookUpTable?:
|
|
190
|
+
| string
|
|
191
|
+
| null
|
|
192
|
+
| number
|
|
193
|
+
| boolean
|
|
194
|
+
| Array<string | null | number | boolean | Array<unknown> | { [key: string]: unknown }>
|
|
195
|
+
| { [key: string]: unknown };
|
|
168
196
|
|
|
169
197
|
updatedAt?: string | null;
|
|
170
198
|
}
|
|
@@ -196,7 +224,13 @@ export interface TagManagerVariableRetrieveResponse {
|
|
|
196
224
|
* Default value returned when no rule matches. JSON value — type depends on
|
|
197
225
|
* `type`.
|
|
198
226
|
*/
|
|
199
|
-
defaultValue?:
|
|
227
|
+
defaultValue?:
|
|
228
|
+
| string
|
|
229
|
+
| null
|
|
230
|
+
| number
|
|
231
|
+
| boolean
|
|
232
|
+
| Array<string | null | number | boolean | Array<unknown> | { [key: string]: unknown }>
|
|
233
|
+
| { [key: string]: unknown };
|
|
200
234
|
|
|
201
235
|
enabled?: boolean | null;
|
|
202
236
|
|
|
@@ -209,7 +243,13 @@ export interface TagManagerVariableRetrieveResponse {
|
|
|
209
243
|
/**
|
|
210
244
|
* Optional lookup table for `LookUpTable`-style variables. JSON value.
|
|
211
245
|
*/
|
|
212
|
-
lookUpTable?:
|
|
246
|
+
lookUpTable?:
|
|
247
|
+
| string
|
|
248
|
+
| null
|
|
249
|
+
| number
|
|
250
|
+
| boolean
|
|
251
|
+
| Array<string | null | number | boolean | Array<unknown> | { [key: string]: unknown }>
|
|
252
|
+
| { [key: string]: unknown };
|
|
213
253
|
|
|
214
254
|
updatedAt?: string | null;
|
|
215
255
|
}
|
|
@@ -241,7 +281,13 @@ export interface TagManagerVariableUpdateResponse {
|
|
|
241
281
|
* Default value returned when no rule matches. JSON value — type depends on
|
|
242
282
|
* `type`.
|
|
243
283
|
*/
|
|
244
|
-
defaultValue?:
|
|
284
|
+
defaultValue?:
|
|
285
|
+
| string
|
|
286
|
+
| null
|
|
287
|
+
| number
|
|
288
|
+
| boolean
|
|
289
|
+
| Array<string | null | number | boolean | Array<unknown> | { [key: string]: unknown }>
|
|
290
|
+
| { [key: string]: unknown };
|
|
245
291
|
|
|
246
292
|
enabled?: boolean | null;
|
|
247
293
|
|
|
@@ -254,7 +300,13 @@ export interface TagManagerVariableUpdateResponse {
|
|
|
254
300
|
/**
|
|
255
301
|
* Optional lookup table for `LookUpTable`-style variables. JSON value.
|
|
256
302
|
*/
|
|
257
|
-
lookUpTable?:
|
|
303
|
+
lookUpTable?:
|
|
304
|
+
| string
|
|
305
|
+
| null
|
|
306
|
+
| number
|
|
307
|
+
| boolean
|
|
308
|
+
| Array<string | null | number | boolean | Array<unknown> | { [key: string]: unknown }>
|
|
309
|
+
| { [key: string]: unknown };
|
|
258
310
|
|
|
259
311
|
updatedAt?: string | null;
|
|
260
312
|
}
|
|
@@ -328,7 +380,13 @@ export namespace TagManagerVariableTypesResponse {
|
|
|
328
380
|
/**
|
|
329
381
|
* Default value when the caller omits the parameter on create.
|
|
330
382
|
*/
|
|
331
|
-
default?:
|
|
383
|
+
default?:
|
|
384
|
+
| string
|
|
385
|
+
| null
|
|
386
|
+
| number
|
|
387
|
+
| boolean
|
|
388
|
+
| Array<string | null | number | boolean | Array<unknown> | { [key: string]: unknown }>
|
|
389
|
+
| { [key: string]: unknown };
|
|
332
390
|
|
|
333
391
|
description?: string | null;
|
|
334
392
|
|
|
@@ -391,21 +449,39 @@ export interface TagManagerVariableCreateParams {
|
|
|
391
449
|
/**
|
|
392
450
|
* Optional default value. JSON value of any type.
|
|
393
451
|
*/
|
|
394
|
-
defaultValue?:
|
|
452
|
+
defaultValue?:
|
|
453
|
+
| string
|
|
454
|
+
| null
|
|
455
|
+
| number
|
|
456
|
+
| boolean
|
|
457
|
+
| Array<string | null | number | boolean | Array<unknown> | { [key: string]: unknown }>
|
|
458
|
+
| { [key: string]: unknown };
|
|
395
459
|
|
|
396
460
|
enabled?: boolean | null;
|
|
397
461
|
|
|
398
462
|
/**
|
|
399
463
|
* Optional lookup table for `LookUpTable` variables.
|
|
400
464
|
*/
|
|
401
|
-
lookUpTable?:
|
|
465
|
+
lookUpTable?:
|
|
466
|
+
| string
|
|
467
|
+
| null
|
|
468
|
+
| number
|
|
469
|
+
| boolean
|
|
470
|
+
| Array<string | null | number | boolean | Array<unknown> | { [key: string]: unknown }>
|
|
471
|
+
| { [key: string]: unknown };
|
|
402
472
|
}
|
|
403
473
|
|
|
404
474
|
export interface TagManagerVariableUpdateParams {
|
|
405
475
|
/**
|
|
406
476
|
* Updated default value. JSON value of any type.
|
|
407
477
|
*/
|
|
408
|
-
defaultValue?:
|
|
478
|
+
defaultValue?:
|
|
479
|
+
| string
|
|
480
|
+
| null
|
|
481
|
+
| number
|
|
482
|
+
| boolean
|
|
483
|
+
| Array<string | null | number | boolean | Array<unknown> | { [key: string]: unknown }>
|
|
484
|
+
| { [key: string]: unknown };
|
|
409
485
|
|
|
410
486
|
/**
|
|
411
487
|
* Pause/resume the variable without changing other fields.
|
|
@@ -415,7 +491,13 @@ export interface TagManagerVariableUpdateParams {
|
|
|
415
491
|
/**
|
|
416
492
|
* Updated lookup table payload.
|
|
417
493
|
*/
|
|
418
|
-
lookUpTable?:
|
|
494
|
+
lookUpTable?:
|
|
495
|
+
| string
|
|
496
|
+
| null
|
|
497
|
+
| number
|
|
498
|
+
| boolean
|
|
499
|
+
| Array<string | null | number | boolean | Array<unknown> | { [key: string]: unknown }>
|
|
500
|
+
| { [key: string]: unknown };
|
|
419
501
|
|
|
420
502
|
/**
|
|
421
503
|
* Updated variable name.
|
|
@@ -6,11 +6,25 @@ import { RequestOptions } from '../internal/request-options';
|
|
|
6
6
|
import { path } from '../internal/utils/path';
|
|
7
7
|
|
|
8
8
|
export class TagManagers extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Create a one-hour link to preview this container’s unpublished tags on your
|
|
11
|
+
* website. Requires permission to view the tag manager. Requires API-key scope or
|
|
12
|
+
* current OAuth user permission: tagManagers:find
|
|
13
|
+
*/
|
|
14
|
+
preview(
|
|
15
|
+
id: string,
|
|
16
|
+
body: TagManagerPreviewParams,
|
|
17
|
+
options?: RequestOptions,
|
|
18
|
+
): APIPromise<TagManagerPreviewResponse> {
|
|
19
|
+
return this._client.post(path`/rest/v1/tag-managers/${id}/preview`, { body, ...options });
|
|
20
|
+
}
|
|
21
|
+
|
|
9
22
|
/**
|
|
10
23
|
* List every tag manager on this account. Each tag manager is a pixel-scoped
|
|
11
24
|
* container of tags, triggers, variables, and folders. Not paginated — accounts
|
|
12
25
|
* are capped at a small number of tag managers in practice, so the response fits
|
|
13
|
-
* in a single page. Requires scope
|
|
26
|
+
* in a single page. Requires API-key scope or current OAuth user permission:
|
|
27
|
+
* tagManagers:list
|
|
14
28
|
*/
|
|
15
29
|
list(options?: RequestOptions): APIPromise<TagManagerListResponse> {
|
|
16
30
|
return this._client.get('/rest/v1/tag-managers', options);
|
|
@@ -23,7 +37,8 @@ export class TagManagers extends APIResource {
|
|
|
23
37
|
* `GET /tag-manager-triggers?tagManagerId={id}` right after create to grab their
|
|
24
38
|
* server-assigned ids so you can reuse them in `fireTriggerIds` instead of
|
|
25
39
|
* redundantly creating a second `PageView`/`DomReady`/`Initialization`. Returns
|
|
26
|
-
* the bare entity. Requires scope
|
|
40
|
+
* the bare entity. Requires API-key scope or current OAuth user permission:
|
|
41
|
+
* tagManagers:create
|
|
27
42
|
*/
|
|
28
43
|
create(body: TagManagerCreateParams, options?: RequestOptions): APIPromise<TagManagerCreateResponse> {
|
|
29
44
|
return this._client.post('/rest/v1/tag-managers', { body, ...options });
|
|
@@ -31,7 +46,8 @@ export class TagManagers extends APIResource {
|
|
|
31
46
|
|
|
32
47
|
/**
|
|
33
48
|
* Fetch a single tag manager by id, including its server-assigned `pixel` token
|
|
34
|
-
* used by the install snippet. Requires scope
|
|
49
|
+
* used by the install snippet. Requires API-key scope or current OAuth user
|
|
50
|
+
* permission: tagManagers:find
|
|
35
51
|
*/
|
|
36
52
|
retrieve(id: string, options?: RequestOptions): APIPromise<TagManagerRetrieveResponse> {
|
|
37
53
|
return this._client.get(path`/rest/v1/tag-managers/${id}`, options);
|
|
@@ -40,7 +56,8 @@ export class TagManagers extends APIResource {
|
|
|
40
56
|
/**
|
|
41
57
|
* Partially update a tag manager. Only the fields you send are changed; omitted
|
|
42
58
|
* fields keep their current value. Send `dataLayerName: null` to clear the
|
|
43
|
-
* override and fall back to the SDK default. Requires scope
|
|
59
|
+
* override and fall back to the SDK default. Requires API-key scope or current
|
|
60
|
+
* OAuth user permission: tagManagers:update
|
|
44
61
|
*/
|
|
45
62
|
update(
|
|
46
63
|
id: string,
|
|
@@ -52,13 +69,20 @@ export class TagManagers extends APIResource {
|
|
|
52
69
|
|
|
53
70
|
/**
|
|
54
71
|
* Delete a tag manager. Child tags, triggers, variables, and folders are
|
|
55
|
-
* cascade-deleted with the container. Requires scope
|
|
72
|
+
* cascade-deleted with the container. Requires API-key scope or current OAuth user
|
|
73
|
+
* permission: tagManagers:delete
|
|
56
74
|
*/
|
|
57
75
|
delete(id: string, options?: RequestOptions): APIPromise<TagManagerDeleteResponse> {
|
|
58
76
|
return this._client.delete(path`/rest/v1/tag-managers/${id}`, options);
|
|
59
77
|
}
|
|
60
78
|
}
|
|
61
79
|
|
|
80
|
+
export interface TagManagerPreviewResponse {
|
|
81
|
+
expiresAt: string;
|
|
82
|
+
|
|
83
|
+
url: string;
|
|
84
|
+
}
|
|
85
|
+
|
|
62
86
|
export interface TagManagerListResponse {
|
|
63
87
|
entities: Array<TagManagerListResponse.Entity>;
|
|
64
88
|
}
|
|
@@ -237,6 +261,10 @@ export interface TagManagerDeleteResponse {
|
|
|
237
261
|
deleted: boolean;
|
|
238
262
|
}
|
|
239
263
|
|
|
264
|
+
export interface TagManagerPreviewParams {
|
|
265
|
+
url: string;
|
|
266
|
+
}
|
|
267
|
+
|
|
240
268
|
export interface TagManagerCreateParams {
|
|
241
269
|
/**
|
|
242
270
|
* Human-readable name for the new tag manager.
|
|
@@ -263,11 +291,13 @@ export interface TagManagerUpdateParams {
|
|
|
263
291
|
|
|
264
292
|
export declare namespace TagManagers {
|
|
265
293
|
export {
|
|
294
|
+
type TagManagerPreviewResponse as TagManagerPreviewResponse,
|
|
266
295
|
type TagManagerListResponse as TagManagerListResponse,
|
|
267
296
|
type TagManagerCreateResponse as TagManagerCreateResponse,
|
|
268
297
|
type TagManagerRetrieveResponse as TagManagerRetrieveResponse,
|
|
269
298
|
type TagManagerUpdateResponse as TagManagerUpdateResponse,
|
|
270
299
|
type TagManagerDeleteResponse as TagManagerDeleteResponse,
|
|
300
|
+
type TagManagerPreviewParams as TagManagerPreviewParams,
|
|
271
301
|
type TagManagerCreateParams as TagManagerCreateParams,
|
|
272
302
|
type TagManagerUpdateParams as TagManagerUpdateParams,
|
|
273
303
|
};
|
|
@@ -13,7 +13,7 @@ export class TestEvents extends APIResource {
|
|
|
13
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
|
|
@@ -41,7 +41,8 @@ export class TestEvents extends APIResource {
|
|
|
41
41
|
* Recent Events. Use the returned `id` with
|
|
42
42
|
* `GET /rest/v1/test-events/{id}/dispatches` to retrieve recorded dispatches.
|
|
43
43
|
* Supply `visitorId` and `distinctId` to choose the identity yourself; otherwise
|
|
44
|
-
* 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
|
|
45
46
|
*
|
|
46
47
|
* @example
|
|
47
48
|
* ```ts
|
|
@@ -58,7 +59,8 @@ export class TestEvents extends APIResource {
|
|
|
58
59
|
* Retrieve one browser, server, or synthetic event captured in debug mode within
|
|
59
60
|
* the last 48 hours. Use an id returned by the create or list endpoint. Events
|
|
60
61
|
* that have not arrived, expired events, and events outside your account
|
|
61
|
-
* return 404. Requires scope
|
|
62
|
+
* return 404. Requires API-key scope or current OAuth user permission:
|
|
63
|
+
* report:view-event
|
|
62
64
|
*
|
|
63
65
|
* @example
|
|
64
66
|
* ```ts
|
|
@@ -78,7 +80,7 @@ export class TestEvents extends APIResource {
|
|
|
78
80
|
* until dispatch records arrive, and may remain empty when no dispatch occurs.
|
|
79
81
|
* Results can grow as processing continues; this endpoint does not predict
|
|
80
82
|
* destinations or signal completion. Requires the report:view-dispatch scope.
|
|
81
|
-
* Requires scope: report:view-dispatch
|
|
83
|
+
* Requires API-key scope or current OAuth user permission: report:view-dispatch
|
|
82
84
|
*
|
|
83
85
|
* @example
|
|
84
86
|
* ```ts
|
|
@@ -111,13 +113,19 @@ export interface TestEventListResponse {
|
|
|
111
113
|
|
|
112
114
|
visitorId: string;
|
|
113
115
|
|
|
114
|
-
defaultProperties?:
|
|
116
|
+
defaultProperties?: {
|
|
117
|
+
[key: string]: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
|
|
118
|
+
} | null;
|
|
115
119
|
|
|
116
|
-
eventProperties?:
|
|
120
|
+
eventProperties?: {
|
|
121
|
+
[key: string]: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
|
|
122
|
+
} | null;
|
|
117
123
|
|
|
118
124
|
rawData?: string | null;
|
|
119
125
|
|
|
120
|
-
requestContext?:
|
|
126
|
+
requestContext?: {
|
|
127
|
+
[key: string]: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
|
|
128
|
+
} | null;
|
|
121
129
|
|
|
122
130
|
sourceId?: string | null;
|
|
123
131
|
|
|
@@ -125,7 +133,9 @@ export interface TestEventListResponse {
|
|
|
125
133
|
|
|
126
134
|
sourceType?: string | null;
|
|
127
135
|
|
|
128
|
-
userProperties?:
|
|
136
|
+
userProperties?: {
|
|
137
|
+
[key: string]: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
|
|
138
|
+
} | null;
|
|
129
139
|
}
|
|
130
140
|
|
|
131
141
|
export interface TestEventCreateResponse {
|
|
@@ -165,13 +175,19 @@ export interface TestEventRetrieveResponse {
|
|
|
165
175
|
|
|
166
176
|
visitorId: string;
|
|
167
177
|
|
|
168
|
-
defaultProperties?:
|
|
178
|
+
defaultProperties?: {
|
|
179
|
+
[key: string]: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
|
|
180
|
+
} | null;
|
|
169
181
|
|
|
170
|
-
eventProperties?:
|
|
182
|
+
eventProperties?: {
|
|
183
|
+
[key: string]: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
|
|
184
|
+
} | null;
|
|
171
185
|
|
|
172
186
|
rawData?: string | null;
|
|
173
187
|
|
|
174
|
-
requestContext?:
|
|
188
|
+
requestContext?: {
|
|
189
|
+
[key: string]: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
|
|
190
|
+
} | null;
|
|
175
191
|
|
|
176
192
|
sourceId?: string | null;
|
|
177
193
|
|
|
@@ -179,7 +195,9 @@ export interface TestEventRetrieveResponse {
|
|
|
179
195
|
|
|
180
196
|
sourceType?: string | null;
|
|
181
197
|
|
|
182
|
-
userProperties?:
|
|
198
|
+
userProperties?: {
|
|
199
|
+
[key: string]: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
|
|
200
|
+
} | null;
|
|
183
201
|
}
|
|
184
202
|
|
|
185
203
|
export interface TestEventDispatchesResponse {
|
|
@@ -223,7 +241,9 @@ export namespace TestEventDispatchesResponse {
|
|
|
223
241
|
/**
|
|
224
242
|
* The mapped payload recorded for this dispatch.
|
|
225
243
|
*/
|
|
226
|
-
payload?:
|
|
244
|
+
payload?: {
|
|
245
|
+
[key: string]: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
|
|
246
|
+
} | null;
|
|
227
247
|
|
|
228
248
|
/**
|
|
229
249
|
* Whether this send succeeded. Null while the attempt is still in flight.
|
|
@@ -255,7 +275,9 @@ export interface TestEventCreateParams {
|
|
|
255
275
|
/**
|
|
256
276
|
* Event-level properties available to destination mappings.
|
|
257
277
|
*/
|
|
258
|
-
eventProperties?:
|
|
278
|
+
eventProperties?: {
|
|
279
|
+
[key: string]: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
|
|
280
|
+
} | null;
|
|
259
281
|
|
|
260
282
|
/**
|
|
261
283
|
* Source to attribute the event to. Defaults to the account's first enabled source
|
|
@@ -266,7 +288,9 @@ export interface TestEventCreateParams {
|
|
|
266
288
|
/**
|
|
267
289
|
* Person-level properties available to destination mappings.
|
|
268
290
|
*/
|
|
269
|
-
userProperties?:
|
|
291
|
+
userProperties?: {
|
|
292
|
+
[key: string]: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
|
|
293
|
+
} | null;
|
|
270
294
|
|
|
271
295
|
/**
|
|
272
296
|
* Visitor identity to send the event as. Generated when omitted. Letters, numbers,
|
|
@@ -458,6 +482,20 @@ export namespace TestEventCreateParams {
|
|
|
458
482
|
*/
|
|
459
483
|
gclid?: string | null;
|
|
460
484
|
|
|
485
|
+
/**
|
|
486
|
+
* The Gravity attribution ID, captured from the `graid` URL parameter on the
|
|
487
|
+
* landing page. Gravity resolves it to the campaign, publisher, and ad IDs
|
|
488
|
+
* server-side. Ex: graid-abc123
|
|
489
|
+
*/
|
|
490
|
+
graid?: string | null;
|
|
491
|
+
|
|
492
|
+
/**
|
|
493
|
+
* The Gravity click ID, captured from the `grclid` URL parameter that Gravity
|
|
494
|
+
* (trygravity.com) appends to ad click-through URLs on the landing page. Ex:
|
|
495
|
+
* grclid-abc123
|
|
496
|
+
*/
|
|
497
|
+
grclid?: string | null;
|
|
498
|
+
|
|
461
499
|
/**
|
|
462
500
|
* The host of the current page. Ex: example.com
|
|
463
501
|
*/
|
|
@@ -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
|