@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
|
@@ -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 = {},
|
|
@@ -31,18 +32,20 @@ export class Versions extends APIResource {
|
|
|
31
32
|
* To re-publish an existing version, use POST /rest/v1/versions/{id}/publish
|
|
32
33
|
* instead.
|
|
33
34
|
*
|
|
34
|
-
* Supports cherry-picking via the `include*` body fields
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
35
|
+
* Supports cherry-picking via the `include*` body fields, each an entity-id
|
|
36
|
+
* allowlist for one collection. Omit every `include*` field (or send each as `[]`)
|
|
37
|
+
* to publish all draft changes. Once any `include*` field lists ids, only the
|
|
38
|
+
* listed changes publish, and every collection you omit or send as `[]` keeps its
|
|
39
|
+
* published state. 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);
|
|
@@ -344,7 +349,7 @@ export interface VersionSnapshotResponse {
|
|
|
344
349
|
* entities as they existed at publish time. Sensitive fields (API keys, tokens,
|
|
345
350
|
* secrets) are redacted. Returns null when the version snapshot has been pruned.
|
|
346
351
|
*/
|
|
347
|
-
jsonContent: { [key: string]: unknown };
|
|
352
|
+
jsonContent: { [key: string]: unknown } | null;
|
|
348
353
|
|
|
349
354
|
versionNumber: number;
|
|
350
355
|
}
|
|
@@ -3213,99 +3218,151 @@ 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
|
-
* Omit or send `[]` to
|
|
3229
|
+
* Omit every `include*` field (or send each as `[]`) to publish all draft changes.
|
|
3230
|
+
* Once any `include*` field lists ids, only the listed changes publish, and every
|
|
3231
|
+
* collection you omit or send as `[]` keeps its published state.
|
|
3219
3232
|
*/
|
|
3220
3233
|
includeAllowedEvents?: Array<string> | null;
|
|
3221
3234
|
|
|
3222
3235
|
/**
|
|
3223
|
-
* Cherry-pick: consent settings ids to include from the draft. Omit
|
|
3224
|
-
* to
|
|
3236
|
+
* Cherry-pick: consent settings ids to include from the draft. Omit every
|
|
3237
|
+
* `include*` field (or send each as `[]`) to publish all draft changes. Once any
|
|
3238
|
+
* `include*` field lists ids, only the listed changes publish, and every
|
|
3239
|
+
* collection you omit or send as `[]` keeps its published state.
|
|
3225
3240
|
*/
|
|
3226
3241
|
includeConsentSettings?: Array<string> | null;
|
|
3227
3242
|
|
|
3228
3243
|
/**
|
|
3229
|
-
* Cherry-pick: data governance event UUIDs to include from the draft. Omit
|
|
3230
|
-
* `[]` to
|
|
3244
|
+
* Cherry-pick: data governance event UUIDs to include from the draft. Omit every
|
|
3245
|
+
* `include*` field (or send each as `[]`) to publish all draft changes. Once any
|
|
3246
|
+
* `include*` field lists ids, only the listed changes publish, and every
|
|
3247
|
+
* collection you omit or send as `[]` keeps its published state.
|
|
3231
3248
|
*/
|
|
3232
3249
|
includeDataGovernanceEvents?: Array<string> | null;
|
|
3233
3250
|
|
|
3234
3251
|
/**
|
|
3235
|
-
* Cherry-pick: data governance rule UUIDs to include from the draft. Omit
|
|
3236
|
-
* `[]` to
|
|
3252
|
+
* Cherry-pick: data governance rule UUIDs to include from the draft. Omit every
|
|
3253
|
+
* `include*` field (or send each as `[]`) to publish all draft changes. Once any
|
|
3254
|
+
* `include*` field lists ids, only the listed changes publish, and every
|
|
3255
|
+
* collection you omit or send as `[]` keeps its published state.
|
|
3237
3256
|
*/
|
|
3238
3257
|
includeDataGovernanceRules?: Array<string> | null;
|
|
3239
3258
|
|
|
3240
3259
|
/**
|
|
3241
|
-
* Cherry-pick: destination UUIDs to include from the draft. Omit
|
|
3242
|
-
*
|
|
3260
|
+
* Cherry-pick: destination UUIDs to include from the draft. Omit every `include*`
|
|
3261
|
+
* field (or send each as `[]`) to publish all draft changes. Once any `include*`
|
|
3262
|
+
* field lists ids, only the listed changes publish, and every collection you omit
|
|
3263
|
+
* or send as `[]` keeps its published state.
|
|
3243
3264
|
*/
|
|
3244
3265
|
includeDestinations?: Array<string> | null;
|
|
3245
3266
|
|
|
3246
3267
|
/**
|
|
3247
|
-
* Cherry-pick: experiment UUIDs to include from the draft. Omit
|
|
3248
|
-
*
|
|
3268
|
+
* Cherry-pick: experiment UUIDs to include from the draft. Omit every `include*`
|
|
3269
|
+
* field (or send each as `[]`) to publish all draft changes. Once any `include*`
|
|
3270
|
+
* field lists ids, only the listed changes publish, and every collection you omit
|
|
3271
|
+
* or send as `[]` keeps its published state.
|
|
3249
3272
|
*/
|
|
3250
3273
|
includeExperiments?: Array<string> | null;
|
|
3251
3274
|
|
|
3252
3275
|
/**
|
|
3253
|
-
* Cherry-pick: experiment settings UUIDs to include from the draft. Omit
|
|
3254
|
-
* `[]` to
|
|
3276
|
+
* Cherry-pick: experiment settings UUIDs to include from the draft. Omit every
|
|
3277
|
+
* `include*` field (or send each as `[]`) to publish all draft changes. Once any
|
|
3278
|
+
* `include*` field lists ids, only the listed changes publish, and every
|
|
3279
|
+
* collection you omit or send as `[]` keeps its published state.
|
|
3255
3280
|
*/
|
|
3256
3281
|
includeExperimentSettings?: Array<string> | null;
|
|
3257
3282
|
|
|
3258
3283
|
/**
|
|
3259
|
-
* Cherry-pick: experiment variant UUIDs to include from the draft. Omit
|
|
3260
|
-
* `[]` to
|
|
3284
|
+
* Cherry-pick: experiment variant UUIDs to include from the draft. Omit every
|
|
3285
|
+
* `include*` field (or send each as `[]`) to publish all draft changes. Once any
|
|
3286
|
+
* `include*` field lists ids, only the listed changes publish, and every
|
|
3287
|
+
* collection you omit or send as `[]` keeps its published state.
|
|
3261
3288
|
*/
|
|
3262
3289
|
includeExperimentVariants?: Array<string> | null;
|
|
3263
3290
|
|
|
3264
3291
|
/**
|
|
3265
|
-
* Cherry-pick: external allowed event data ids to include from the draft. Omit
|
|
3266
|
-
* send `[]` to
|
|
3292
|
+
* Cherry-pick: external allowed event data ids to include from the draft. Omit
|
|
3293
|
+
* every `include*` field (or send each as `[]`) to publish all draft changes. Once
|
|
3294
|
+
* any `include*` field lists ids, only the listed changes publish, and every
|
|
3295
|
+
* collection you omit or send as `[]` keeps its published state.
|
|
3267
3296
|
*/
|
|
3268
3297
|
includeExternalAllowedEventData?: Array<string> | null;
|
|
3269
3298
|
|
|
3270
3299
|
/**
|
|
3271
|
-
* Cherry-pick: global dispatch center ids to include from the draft. Omit
|
|
3272
|
-
* `[]` to
|
|
3300
|
+
* Cherry-pick: global dispatch center ids to include from the draft. Omit every
|
|
3301
|
+
* `include*` field (or send each as `[]`) to publish all draft changes. Once any
|
|
3302
|
+
* `include*` field lists ids, only the listed changes publish, and every
|
|
3303
|
+
* collection you omit or send as `[]` keeps its published state.
|
|
3273
3304
|
*/
|
|
3274
3305
|
includeGlobalDispatchCenters?: Array<string> | null;
|
|
3275
3306
|
|
|
3276
3307
|
/**
|
|
3277
|
-
* Cherry-pick: mapping ids to include from the draft. Omit
|
|
3278
|
-
* all draft changes
|
|
3308
|
+
* Cherry-pick: mapping ids to include from the draft. Omit every `include*` field
|
|
3309
|
+
* (or send each as `[]`) to publish all draft changes. Once any `include*` field
|
|
3310
|
+
* lists ids, only the listed changes publish, and every collection you omit or
|
|
3311
|
+
* send as `[]` keeps its published state.
|
|
3279
3312
|
*/
|
|
3280
3313
|
includeMappings?: Array<string> | null;
|
|
3281
3314
|
|
|
3282
3315
|
/**
|
|
3283
|
-
* Cherry-pick: replay settings ids to include from the draft. Omit
|
|
3284
|
-
* include all draft changes
|
|
3316
|
+
* Cherry-pick: replay settings ids to include from the draft. Omit every
|
|
3317
|
+
* `include*` field (or send each as `[]`) to publish all draft changes. Once any
|
|
3318
|
+
* `include*` field lists ids, only the listed changes publish, and every
|
|
3319
|
+
* collection you omit or send as `[]` keeps its published state.
|
|
3285
3320
|
*/
|
|
3286
3321
|
includeReplaySettings?: Array<string> | null;
|
|
3287
3322
|
|
|
3288
3323
|
/**
|
|
3289
|
-
* Cherry-pick: source UUIDs to include from the draft. Omit
|
|
3290
|
-
*
|
|
3324
|
+
* Cherry-pick: source UUIDs to include from the draft. Omit every `include*` field
|
|
3325
|
+
* (or send each as `[]`) to publish all draft changes. Once any `include*` field
|
|
3326
|
+
* lists ids, only the listed changes publish, and every collection you omit or
|
|
3327
|
+
* send as `[]` keeps its published state.
|
|
3291
3328
|
*/
|
|
3292
3329
|
includeSources?: Array<string> | null;
|
|
3293
3330
|
|
|
3294
3331
|
/**
|
|
3295
|
-
* Cherry-pick: tag manager
|
|
3296
|
-
*
|
|
3332
|
+
* Cherry-pick: tag manager container UUIDs to include from the draft. Selecting a
|
|
3333
|
+
* container publishes its own settings only; list its tags, triggers, and
|
|
3334
|
+
* variables to publish their changes. Selecting a container deleted from the draft
|
|
3335
|
+
* also removes its tags, triggers, and variables. Omit every `include*` field (or
|
|
3336
|
+
* send each as `[]`) to publish all draft changes. Once any `include*` field lists
|
|
3337
|
+
* ids, only the listed changes publish, and every collection you omit or send as
|
|
3338
|
+
* `[]` keeps its published state.
|
|
3339
|
+
*/
|
|
3340
|
+
includeTagManagers?: Array<string> | null;
|
|
3341
|
+
|
|
3342
|
+
/**
|
|
3343
|
+
* Cherry-pick: tag manager tag UUIDs to include from the draft. If the item's
|
|
3344
|
+
* container has never been published, the container publishes with it. Omit every
|
|
3345
|
+
* `include*` field (or send each as `[]`) to publish all draft changes. Once any
|
|
3346
|
+
* `include*` field lists ids, only the listed changes publish, and every
|
|
3347
|
+
* collection you omit or send as `[]` keeps its published state.
|
|
3297
3348
|
*/
|
|
3298
3349
|
includeTagManagerTags?: Array<string> | null;
|
|
3299
3350
|
|
|
3300
3351
|
/**
|
|
3301
|
-
* Cherry-pick: tag manager trigger UUIDs to include from the draft.
|
|
3302
|
-
*
|
|
3352
|
+
* Cherry-pick: tag manager trigger UUIDs to include from the draft. If the item's
|
|
3353
|
+
* container has never been published, the container publishes with it. Omit every
|
|
3354
|
+
* `include*` field (or send each as `[]`) to publish all draft changes. Once any
|
|
3355
|
+
* `include*` field lists ids, only the listed changes publish, and every
|
|
3356
|
+
* collection you omit or send as `[]` keeps its published state.
|
|
3303
3357
|
*/
|
|
3304
3358
|
includeTagManagerTriggers?: Array<string> | null;
|
|
3305
3359
|
|
|
3306
3360
|
/**
|
|
3307
|
-
* Cherry-pick: tag manager variable UUIDs to include from the draft.
|
|
3308
|
-
*
|
|
3361
|
+
* Cherry-pick: tag manager variable UUIDs to include from the draft. If the item's
|
|
3362
|
+
* container has never been published, the container publishes with it. Omit every
|
|
3363
|
+
* `include*` field (or send each as `[]`) to publish all draft changes. Once any
|
|
3364
|
+
* `include*` field lists ids, only the listed changes publish, and every
|
|
3365
|
+
* collection you omit or send as `[]` keeps its published state.
|
|
3309
3366
|
*/
|
|
3310
3367
|
includeTagManagerVariables?: Array<string> | null;
|
|
3311
3368
|
|
|
@@ -11,7 +11,8 @@ export class VideoChannels extends APIResource {
|
|
|
11
11
|
* List video channels for the account, sorted by name. Supports cursor pagination
|
|
12
12
|
* via `limit` and `cursor`; the limit clamp is 1000 so a single request can return
|
|
13
13
|
* the full set. Entries omit `resolvedValues` — fetch a channel by id for its
|
|
14
|
-
* video count and embed output. Requires scope
|
|
14
|
+
* video count and embed output. Requires API-key scope or current OAuth user
|
|
15
|
+
* permission: videoChannel:list
|
|
15
16
|
*/
|
|
16
17
|
list(
|
|
17
18
|
query: VideoChannelListParams | null | undefined = {},
|
|
@@ -27,7 +28,8 @@ export class VideoChannels extends APIResource {
|
|
|
27
28
|
* Create a video channel. Only `name` is accepted here; set branding and publish
|
|
28
29
|
* it with PATCH, and add videos with `POST /rest/v1/video-channels/{id}/media`.
|
|
29
30
|
* New channels start unpublished, so the page is not reachable until you send
|
|
30
|
-
* `isPublished: true`. Requires scope
|
|
31
|
+
* `isPublished: true`. Requires API-key scope or current OAuth user permission:
|
|
32
|
+
* videoChannel:create
|
|
31
33
|
*/
|
|
32
34
|
create(body: VideoChannelCreateParams, options?: RequestOptions): APIPromise<VideoChannelCreateResponse> {
|
|
33
35
|
return this._client.post('/rest/v1/video-channels', { body, ...options });
|
|
@@ -35,7 +37,8 @@ export class VideoChannels extends APIResource {
|
|
|
35
37
|
|
|
36
38
|
/**
|
|
37
39
|
* Fetch a channel with its branding, publish state, video count, shareable page
|
|
38
|
-
* URL, and paste-ready embed code. Requires scope
|
|
40
|
+
* URL, and paste-ready embed code. Requires API-key scope or current OAuth user
|
|
41
|
+
* permission: videoChannel:find
|
|
39
42
|
*/
|
|
40
43
|
retrieve(id: string, options?: RequestOptions): APIPromise<VideoChannelRetrieveResponse> {
|
|
41
44
|
return this._client.get(path`/rest/v1/video-channels/${id}`, options);
|
|
@@ -46,7 +49,7 @@ export class VideoChannels extends APIResource {
|
|
|
46
49
|
* to clear a nullable field. Sending `isPublished: true` makes the channel page
|
|
47
50
|
* reachable and renders it from the current videos and branding; `false` takes it
|
|
48
51
|
* offline. `logoMediaId` must reference an image in your media library. Requires
|
|
49
|
-
* scope: videoChannel:update
|
|
52
|
+
* API-key scope or current OAuth user permission: videoChannel:update
|
|
50
53
|
*/
|
|
51
54
|
update(
|
|
52
55
|
id: string,
|
|
@@ -58,7 +61,8 @@ export class VideoChannels extends APIResource {
|
|
|
58
61
|
|
|
59
62
|
/**
|
|
60
63
|
* Delete a channel and take its page offline. The videos it listed are not deleted
|
|
61
|
-
* — only their membership in this channel. Requires scope
|
|
64
|
+
* — only their membership in this channel. Requires API-key scope or current OAuth
|
|
65
|
+
* user permission: videoChannel:delete
|
|
62
66
|
*/
|
|
63
67
|
delete(id: string, options?: RequestOptions): APIPromise<VideoChannelDeleteResponse> {
|
|
64
68
|
return this._client.delete(path`/rest/v1/video-channels/${id}`, options);
|
|
@@ -68,7 +72,8 @@ export class VideoChannels extends APIResource {
|
|
|
68
72
|
* List the videos in a channel, ordered by their position on the page. Not
|
|
69
73
|
* paginated: a channel holds a bounded set of videos, so the full ordered list is
|
|
70
74
|
* always returned. Videos whose media no longer resolves are omitted rather than
|
|
71
|
-
* returned as broken entries. Requires scope
|
|
75
|
+
* returned as broken entries. Requires API-key scope or current OAuth user
|
|
76
|
+
* permission: videoChannel:find
|
|
72
77
|
*/
|
|
73
78
|
media(id: string, options?: RequestOptions): APIPromise<VideoChannelMediaResponse> {
|
|
74
79
|
return this._client.get(path`/rest/v1/video-channels/${id}/media`, options);
|
|
@@ -80,7 +85,7 @@ export class VideoChannels extends APIResource {
|
|
|
80
85
|
* Calling this again for a video already in the channel updates its position
|
|
81
86
|
* instead of adding a duplicate, and keeps its current slot when `position` is
|
|
82
87
|
* omitted. The returned `id` is a composite membership key, not a UUID. Requires
|
|
83
|
-
* scope: videoChannel:update
|
|
88
|
+
* API-key scope or current OAuth user permission: videoChannel:update
|
|
84
89
|
*/
|
|
85
90
|
assignMedia(
|
|
86
91
|
id: string,
|
|
@@ -94,7 +99,8 @@ export class VideoChannels extends APIResource {
|
|
|
94
99
|
* Remove one video from a channel, identified by the `mediaId` query parameter.
|
|
95
100
|
* The video itself is not deleted and stays in any other channel it belongs to.
|
|
96
101
|
* Idempotent — removing a video that is not in the channel succeeds and returns
|
|
97
|
-
* the channel unchanged. Requires scope
|
|
102
|
+
* the channel unchanged. Requires API-key scope or current OAuth user permission:
|
|
103
|
+
* videoChannel:update
|
|
98
104
|
*/
|
|
99
105
|
removeMedia(
|
|
100
106
|
id: string,
|
|
@@ -110,7 +116,7 @@ export class VideoChannels extends APIResource {
|
|
|
110
116
|
* the channel in the order you want them shown — index 0 appears first. A partial
|
|
111
117
|
* list, or an id that is not in the channel, returns 400 so a caller working from
|
|
112
118
|
* a stale view learns it is out of date instead of getting a partial write.
|
|
113
|
-
* Requires scope: videoChannel:update
|
|
119
|
+
* Requires API-key scope or current OAuth user permission: videoChannel:update
|
|
114
120
|
*/
|
|
115
121
|
reorder(
|
|
116
122
|
id: string,
|
|
@@ -186,11 +192,21 @@ export interface VideoChannelRetrieveResponse {
|
|
|
186
192
|
|
|
187
193
|
logoMediaId?: string | null;
|
|
188
194
|
|
|
189
|
-
resolvedValues?:
|
|
195
|
+
resolvedValues?: VideoChannelRetrieveResponse.ResolvedValues | null;
|
|
190
196
|
|
|
191
197
|
updatedAt?: string | null;
|
|
192
198
|
}
|
|
193
199
|
|
|
200
|
+
export namespace VideoChannelRetrieveResponse {
|
|
201
|
+
export interface ResolvedValues {
|
|
202
|
+
embedCode: string;
|
|
203
|
+
|
|
204
|
+
embedUrl: string;
|
|
205
|
+
|
|
206
|
+
mediaCount: number;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
|
|
194
210
|
export interface VideoChannelUpdateResponse {
|
|
195
211
|
id: string;
|
|
196
212
|
|
|
@@ -210,11 +226,21 @@ export interface VideoChannelUpdateResponse {
|
|
|
210
226
|
|
|
211
227
|
logoMediaId?: string | null;
|
|
212
228
|
|
|
213
|
-
resolvedValues?:
|
|
229
|
+
resolvedValues?: VideoChannelUpdateResponse.ResolvedValues | null;
|
|
214
230
|
|
|
215
231
|
updatedAt?: string | null;
|
|
216
232
|
}
|
|
217
233
|
|
|
234
|
+
export namespace VideoChannelUpdateResponse {
|
|
235
|
+
export interface ResolvedValues {
|
|
236
|
+
embedCode: string;
|
|
237
|
+
|
|
238
|
+
embedUrl: string;
|
|
239
|
+
|
|
240
|
+
mediaCount: number;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
|
|
218
244
|
export interface VideoChannelDeleteResponse {
|
|
219
245
|
id: string;
|
|
220
246
|
|
|
@@ -312,11 +338,21 @@ export interface VideoChannelRemoveMediaResponse {
|
|
|
312
338
|
|
|
313
339
|
logoMediaId?: string | null;
|
|
314
340
|
|
|
315
|
-
resolvedValues?:
|
|
341
|
+
resolvedValues?: VideoChannelRemoveMediaResponse.ResolvedValues | null;
|
|
316
342
|
|
|
317
343
|
updatedAt?: string | null;
|
|
318
344
|
}
|
|
319
345
|
|
|
346
|
+
export namespace VideoChannelRemoveMediaResponse {
|
|
347
|
+
export interface ResolvedValues {
|
|
348
|
+
embedCode: string;
|
|
349
|
+
|
|
350
|
+
embedUrl: string;
|
|
351
|
+
|
|
352
|
+
mediaCount: number;
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
|
|
320
356
|
export interface VideoChannelReorderResponse {
|
|
321
357
|
id: string;
|
|
322
358
|
|
|
@@ -336,11 +372,21 @@ export interface VideoChannelReorderResponse {
|
|
|
336
372
|
|
|
337
373
|
logoMediaId?: string | null;
|
|
338
374
|
|
|
339
|
-
resolvedValues?:
|
|
375
|
+
resolvedValues?: VideoChannelReorderResponse.ResolvedValues | null;
|
|
340
376
|
|
|
341
377
|
updatedAt?: string | null;
|
|
342
378
|
}
|
|
343
379
|
|
|
380
|
+
export namespace VideoChannelReorderResponse {
|
|
381
|
+
export interface ResolvedValues {
|
|
382
|
+
embedCode: string;
|
|
383
|
+
|
|
384
|
+
embedUrl: string;
|
|
385
|
+
|
|
386
|
+
mediaCount: number;
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
|
|
344
390
|
export interface VideoChannelListParams extends CursorParams {}
|
|
345
391
|
|
|
346
392
|
export interface VideoChannelCreateParams {
|
package/src/resources/videos.ts
CHANGED
|
@@ -9,7 +9,8 @@ import { path } from '../internal/utils/path';
|
|
|
9
9
|
export class Videos extends APIResource {
|
|
10
10
|
/**
|
|
11
11
|
* List videos for the account, newest first. Supports cursor pagination and an
|
|
12
|
-
* optional case-insensitive title filter. Requires scope
|
|
12
|
+
* optional case-insensitive title filter. Requires API-key scope or current OAuth
|
|
13
|
+
* user permission: media:list
|
|
13
14
|
*
|
|
14
15
|
* @example
|
|
15
16
|
* ```ts
|
|
@@ -30,7 +31,7 @@ export class Videos extends APIResource {
|
|
|
30
31
|
* Create a video record and return a temporary upload target for the original MP4
|
|
31
32
|
* or WebM file. Upload the file directly using the returned URL and matching
|
|
32
33
|
* content type, then poll the video to observe processing progress. Requires
|
|
33
|
-
* scope: media:create
|
|
34
|
+
* API-key scope or current OAuth user permission: media:create
|
|
34
35
|
*
|
|
35
36
|
* @example
|
|
36
37
|
* ```ts
|
|
@@ -45,8 +46,8 @@ export class Videos extends APIResource {
|
|
|
45
46
|
|
|
46
47
|
/**
|
|
47
48
|
* Fetch a video and its current playback asset availability. The processed video,
|
|
48
|
-
* poster, and transcript are prepared asynchronously after upload. Requires
|
|
49
|
-
* media:find
|
|
49
|
+
* poster, and transcript are prepared asynchronously after upload. Requires
|
|
50
|
+
* API-key scope or current OAuth user permission: media:find
|
|
50
51
|
*
|
|
51
52
|
* @example
|
|
52
53
|
* ```ts
|
|
@@ -59,7 +60,8 @@ export class Videos extends APIResource {
|
|
|
59
60
|
|
|
60
61
|
/**
|
|
61
62
|
* Partially update video metadata. Only fields included in the body change; send
|
|
62
|
-
* `null` to clear a nullable field. Requires scope
|
|
63
|
+
* `null` to clear a nullable field. Requires API-key scope or current OAuth user
|
|
64
|
+
* permission: media:update
|
|
63
65
|
*
|
|
64
66
|
* @example
|
|
65
67
|
* ```ts
|
|
@@ -71,7 +73,8 @@ export class Videos extends APIResource {
|
|
|
71
73
|
}
|
|
72
74
|
|
|
73
75
|
/**
|
|
74
|
-
* Delete a video and its related assets. Requires scope
|
|
76
|
+
* Delete a video and its related assets. Requires API-key scope or current OAuth
|
|
77
|
+
* user permission: media:delete
|
|
75
78
|
*
|
|
76
79
|
* @example
|
|
77
80
|
* ```ts
|
|
@@ -85,8 +88,8 @@ export class Videos extends APIResource {
|
|
|
85
88
|
/**
|
|
86
89
|
* Return a temporary upload target for replacing this video’s original MP4 or WebM
|
|
87
90
|
* source. Upload the file directly using the returned URL and matching content
|
|
88
|
-
* type, then poll the video to observe processing progress. Requires scope
|
|
89
|
-
* media:update
|
|
91
|
+
* type, then poll the video to observe processing progress. Requires API-key scope
|
|
92
|
+
* or current OAuth user permission: media:update
|
|
90
93
|
*
|
|
91
94
|
* @example
|
|
92
95
|
* ```ts
|
|
@@ -102,7 +105,7 @@ export class Videos extends APIResource {
|
|
|
102
105
|
/**
|
|
103
106
|
* Read the current WebVTT transcript. Transcript text is available wherever the
|
|
104
107
|
* video is embedded, so do not include PHI or other confidential information.
|
|
105
|
-
* Requires scope: media:find
|
|
108
|
+
* Requires API-key scope or current OAuth user permission: media:find
|
|
106
109
|
*
|
|
107
110
|
* @example
|
|
108
111
|
* ```ts
|
|
@@ -120,7 +123,8 @@ export class Videos extends APIResource {
|
|
|
120
123
|
/**
|
|
121
124
|
* Replace the transcript with VTT or SRT text. SRT is normalized to WebVTT.
|
|
122
125
|
* Transcript text is available wherever the video is embedded, so do not include
|
|
123
|
-
* PHI or other confidential information. Requires scope
|
|
126
|
+
* PHI or other confidential information. Requires API-key scope or current OAuth
|
|
127
|
+
* user permission: media:update
|
|
124
128
|
*
|
|
125
129
|
* @example
|
|
126
130
|
* ```ts
|
|
@@ -140,7 +144,8 @@ export class Videos extends APIResource {
|
|
|
140
144
|
|
|
141
145
|
/**
|
|
142
146
|
* Queue a target-language caption translation. Specify replace to explicitly
|
|
143
|
-
* overwrite a track. Requires scope
|
|
147
|
+
* overwrite a track. Requires API-key scope or current OAuth user permission:
|
|
148
|
+
* media:update
|
|
144
149
|
*
|
|
145
150
|
* @example
|
|
146
151
|
* ```ts
|
|
@@ -160,7 +165,7 @@ export class Videos extends APIResource {
|
|
|
160
165
|
|
|
161
166
|
/**
|
|
162
167
|
* Cancel a queued or in-progress language translation without modifying other
|
|
163
|
-
* tracks. Requires scope: media:update
|
|
168
|
+
* tracks. Requires API-key scope or current OAuth user permission: media:update
|
|
164
169
|
*
|
|
165
170
|
* @example
|
|
166
171
|
* ```ts
|
|
@@ -183,7 +188,8 @@ export class Videos extends APIResource {
|
|
|
183
188
|
* for a date window. Optionally filter to one video with `videoId`; omit it to
|
|
184
189
|
* include all account videos. This derived report uses `limit` and `offset`
|
|
185
190
|
* pagination; `total` is the number of rows returned through the current offset,
|
|
186
|
-
* not a total match count. Requires scope
|
|
191
|
+
* not a total match count. Requires API-key scope or current OAuth user
|
|
192
|
+
* permission: report:video-analytics
|
|
187
193
|
*
|
|
188
194
|
* @example
|
|
189
195
|
* ```ts
|
|
@@ -200,7 +206,8 @@ export class Videos extends APIResource {
|
|
|
200
206
|
/**
|
|
201
207
|
* Return daily or hourly starts, unique viewers, completions, and completion rate
|
|
202
208
|
* for one video. Daily windows support up to 90 days; hourly windows support up to
|
|
203
|
-
* 14 days. Requires scope
|
|
209
|
+
* 14 days. Requires API-key scope or current OAuth user permission:
|
|
210
|
+
* report:video-analytics
|
|
204
211
|
*
|
|
205
212
|
* @example
|
|
206
213
|
* ```ts
|
|
@@ -8,8 +8,8 @@ export class WebAnalytics extends APIResource {
|
|
|
8
8
|
/**
|
|
9
9
|
* Return privacy-first traffic metrics and a timeseries for the requested date
|
|
10
10
|
* range. Filter by source, geography, page, campaign, device, or other supported
|
|
11
|
-
* dimensions with the JSON-encoded `filters` query parameter. Requires
|
|
12
|
-
* web-analytics:view
|
|
11
|
+
* dimensions with the JSON-encoded `filters` query parameter. Requires API-key
|
|
12
|
+
* scope or current OAuth user permission: web-analytics:view
|
|
13
13
|
*/
|
|
14
14
|
overview(
|
|
15
15
|
query: WebAnalyticsOverviewParams,
|
|
@@ -20,7 +20,8 @@ export class WebAnalytics extends APIResource {
|
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* Return visitor counts grouped by referrer or UTM source dimension for the
|
|
23
|
-
* requested date range. Requires scope
|
|
23
|
+
* requested date range. Requires API-key scope or current OAuth user permission:
|
|
24
|
+
* web-analytics:view
|
|
24
25
|
*/
|
|
25
26
|
sources(
|
|
26
27
|
query: WebAnalyticsSourcesParams,
|
|
@@ -31,7 +32,8 @@ export class WebAnalytics extends APIResource {
|
|
|
31
32
|
|
|
32
33
|
/**
|
|
33
34
|
* Return page-level traffic metrics for top pages, entry pages, or exit pages in
|
|
34
|
-
* the requested date range. Requires scope
|
|
35
|
+
* the requested date range. Requires API-key scope or current OAuth user
|
|
36
|
+
* permission: web-analytics:view
|
|
35
37
|
*/
|
|
36
38
|
pages(query: WebAnalyticsPagesParams, options?: RequestOptions): APIPromise<WebAnalyticsPagesResponse> {
|
|
37
39
|
return this._client.get('/rest/v1/web-analytics/pages', { query, ...options });
|
|
@@ -39,7 +41,8 @@ export class WebAnalytics extends APIResource {
|
|
|
39
41
|
|
|
40
42
|
/**
|
|
41
43
|
* Return visitor counts grouped by country, region, or city for the requested date
|
|
42
|
-
* range. Requires scope
|
|
44
|
+
* range. Requires API-key scope or current OAuth user permission:
|
|
45
|
+
* web-analytics:view
|
|
43
46
|
*/
|
|
44
47
|
locations(
|
|
45
48
|
query: WebAnalyticsLocationsParams,
|
|
@@ -50,7 +53,8 @@ export class WebAnalytics extends APIResource {
|
|
|
50
53
|
|
|
51
54
|
/**
|
|
52
55
|
* Return visitor counts grouped by device type, browser, or operating system for
|
|
53
|
-
* the requested date range. Requires scope
|
|
56
|
+
* the requested date range. Requires API-key scope or current OAuth user
|
|
57
|
+
* permission: web-analytics:view
|
|
54
58
|
*/
|
|
55
59
|
devices(
|
|
56
60
|
query: WebAnalyticsDevicesParams,
|
|
@@ -61,7 +65,8 @@ export class WebAnalytics extends APIResource {
|
|
|
61
65
|
|
|
62
66
|
/**
|
|
63
67
|
* Return the distinct visitors active in the most recent 15-minute window,
|
|
64
|
-
* optionally scoped to one web source. Requires scope
|
|
68
|
+
* optionally scoped to one web source. Requires API-key scope or current OAuth
|
|
69
|
+
* user permission: web-analytics:view
|
|
65
70
|
*/
|
|
66
71
|
currentVisitors(
|
|
67
72
|
query: WebAnalyticsCurrentVisitorsParams | null | undefined = {},
|
|
@@ -72,8 +77,8 @@ export class WebAnalytics extends APIResource {
|
|
|
72
77
|
|
|
73
78
|
/**
|
|
74
79
|
* Return the next or previous journey steps for a pinned path. The `path` and
|
|
75
|
-
* `filters` query parameters are JSON-encoded arrays. Requires scope
|
|
76
|
-
* web-analytics:view
|
|
80
|
+
* `filters` query parameters are JSON-encoded arrays. Requires API-key scope or
|
|
81
|
+
* current OAuth user permission: web-analytics:view
|
|
77
82
|
*/
|
|
78
83
|
pathExplorer(
|
|
79
84
|
query: WebAnalyticsPathExplorerParams,
|