@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
package/resources/versions.mjs
CHANGED
|
@@ -6,7 +6,8 @@ export class Versions extends APIResource {
|
|
|
6
6
|
/**
|
|
7
7
|
* List versions for this account, newest first. Supports cursor pagination and
|
|
8
8
|
* filtering by `isPublished`, `nameContains`, and `notesContains`. Combine filters
|
|
9
|
-
* with AND semantics. Requires scope
|
|
9
|
+
* with AND semantics. Requires API-key scope or current OAuth user permission:
|
|
10
|
+
* version:list
|
|
10
11
|
*/
|
|
11
12
|
list(query = {}, options) {
|
|
12
13
|
return this._client.getAPIList('/rest/v1/versions', (Cursor), { query, ...options });
|
|
@@ -23,24 +24,26 @@ export class Versions extends APIResource {
|
|
|
23
24
|
* To re-publish an existing version, use POST /rest/v1/versions/{id}/publish
|
|
24
25
|
* instead.
|
|
25
26
|
*
|
|
26
|
-
* Supports cherry-picking via the `include*` body fields
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
27
|
+
* Supports cherry-picking via the `include*` body fields, each an entity-id
|
|
28
|
+
* allowlist for one collection. Omit every `include*` field (or send each as `[]`)
|
|
29
|
+
* to publish all draft changes. Once any `include*` field lists ids, only the
|
|
30
|
+
* listed changes publish, and every collection you omit or send as `[]` keeps its
|
|
31
|
+
* published state. Requires API-key scope or current OAuth user permission:
|
|
32
|
+
* version:publish
|
|
31
33
|
*/
|
|
32
34
|
create(body, options) {
|
|
33
35
|
return this._client.post('/rest/v1/versions', { body, ...options });
|
|
34
36
|
}
|
|
35
37
|
/**
|
|
36
|
-
* Find a single version by ID. Requires scope
|
|
38
|
+
* Find a single version by ID. Requires API-key scope or current OAuth user
|
|
39
|
+
* permission: version:find
|
|
37
40
|
*/
|
|
38
41
|
retrieve(id, options) {
|
|
39
42
|
return this._client.get(path `/rest/v1/versions/${id}`, options);
|
|
40
43
|
}
|
|
41
44
|
/**
|
|
42
45
|
* Partially update a version. Only the fields you send are changed. Requires
|
|
43
|
-
* scope: version:update
|
|
46
|
+
* API-key scope or current OAuth user permission: version:update
|
|
44
47
|
*/
|
|
45
48
|
update(id, body, options) {
|
|
46
49
|
return this._client.patch(path `/rest/v1/versions/${id}`, { body, ...options });
|
|
@@ -50,7 +53,7 @@ export class Versions extends APIResource {
|
|
|
50
53
|
* to an older snapshot. Returns 409 if the version is already published, was
|
|
51
54
|
* created more than 45 days ago, or another publish is already in flight. To
|
|
52
55
|
* create-and-publish from current draft state, use POST /rest/v1/versions instead.
|
|
53
|
-
* Requires scope: version:publish
|
|
56
|
+
* Requires API-key scope or current OAuth user permission: version:publish
|
|
54
57
|
*/
|
|
55
58
|
publish(id, options) {
|
|
56
59
|
return this._client.post(path `/rest/v1/versions/${id}/publish`, options);
|
|
@@ -59,8 +62,8 @@ export class Versions extends APIResource {
|
|
|
59
62
|
* Retrieve the full JSON snapshot captured by a version — every entity
|
|
60
63
|
* (destinations, sources, mappings, consent settings, etc.) as it existed when
|
|
61
64
|
* this version was published. Sensitive fields (API keys, tokens, secrets) are
|
|
62
|
-
* redacted. Useful for IaC export, audit, and backup workflows. Requires
|
|
63
|
-
* version:find
|
|
65
|
+
* redacted. Useful for IaC export, audit, and backup workflows. Requires API-key
|
|
66
|
+
* scope or current OAuth user permission: version:find
|
|
64
67
|
*/
|
|
65
68
|
snapshot(id, options) {
|
|
66
69
|
return this._client.get(path `/rest/v1/versions/${id}/snapshot`, options);
|
|
@@ -84,7 +87,8 @@ export class Versions extends APIResource {
|
|
|
84
87
|
* latest published version.
|
|
85
88
|
* - `GET /rest/v1/versions/{id}/diff?against={otherId}` — compare two specific
|
|
86
89
|
* versions. `otherId` may also be `draft` to diff a published snapshot against
|
|
87
|
-
* the live draft state. Requires scope
|
|
90
|
+
* the live draft state. Requires API-key scope or current OAuth user permission:
|
|
91
|
+
* version:find
|
|
88
92
|
*/
|
|
89
93
|
diff(id, query = {}, options) {
|
|
90
94
|
return this._client.get(path `/rest/v1/versions/${id}/diff`, { query, ...options });
|
|
@@ -104,7 +108,7 @@ export class Versions extends APIResource {
|
|
|
104
108
|
* `GET /rest/v1/versions/draft/diff` when you need the full change set instead of
|
|
105
109
|
* one entity. (`draft` is a literal path segment identifying the live draft as the
|
|
106
110
|
* target, which is why the entity is passed as `entityId` rather than `id`.)
|
|
107
|
-
* Requires scope: version:find
|
|
111
|
+
* Requires API-key scope or current OAuth user permission: version:find
|
|
108
112
|
*/
|
|
109
113
|
status(id, query, options) {
|
|
110
114
|
return this._client.get(path `/rest/v1/versions/${id}/status`, { query, ...options });
|
|
@@ -124,7 +128,8 @@ export class Versions extends APIResource {
|
|
|
124
128
|
* use the experiment lifecycle endpoints (`/start`, `/stop`) for those — but
|
|
125
129
|
* `experimentSettings` is supported. To discard every pending change at once, use
|
|
126
130
|
* `POST /rest/v1/versions/draft/abandon`. (`draft` is a literal path segment
|
|
127
|
-
* identifying the live draft as the target.) Requires scope
|
|
131
|
+
* identifying the live draft as the target.) Requires API-key scope or current
|
|
132
|
+
* OAuth user permission: version:publish
|
|
128
133
|
*/
|
|
129
134
|
revert(id, body, options) {
|
|
130
135
|
return this._client.post(path `/rest/v1/versions/${id}/revert`, { body, ...options });
|
|
@@ -137,7 +142,7 @@ export class Versions extends APIResource {
|
|
|
137
142
|
* version to revert to, or when another publish or abandon is already in flight.
|
|
138
143
|
* To revert only specific changes, use `POST /rest/v1/versions/draft/revert`.
|
|
139
144
|
* (`draft` is a literal path segment identifying the live draft as the target.)
|
|
140
|
-
* Requires scope: version:publish
|
|
145
|
+
* Requires API-key scope or current OAuth user permission: version:publish
|
|
141
146
|
*/
|
|
142
147
|
abandon(id, options) {
|
|
143
148
|
return this._client.post(path `/rest/v1/versions/${id}/abandon`, options);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"versions.mjs","sourceRoot":"","sources":["../src/resources/versions.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AA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AO,CAAC,IAAI,CAAC,IAAI,CAAA,qBAAqB,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;IAC3E,CAAC;IAED;;;;;;OAMG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,qBAAqB,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;IAC3E,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,IAAI,CACF,EAA2B,EAC3B,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,qBAAqB,EAAE,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CACJ,EAAW,EACX,KAA0B,EAC1B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,qBAAqB,EAAE,SAAS,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,MAAM,CACJ,EAAW,EACX,IAAyB,EACzB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,qBAAqB,EAAE,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;IAED;;;;;;;;;OASG;IACH,OAAO,CAAC,EAAW,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,qBAAqB,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;IAC3E,CAAC;CACF"}
|
|
@@ -7,19 +7,22 @@ export declare class VideoChannels extends APIResource {
|
|
|
7
7
|
* List video channels for the account, sorted by name. Supports cursor pagination
|
|
8
8
|
* via `limit` and `cursor`; the limit clamp is 1000 so a single request can return
|
|
9
9
|
* the full set. Entries omit `resolvedValues` — fetch a channel by id for its
|
|
10
|
-
* video count and embed output. Requires scope
|
|
10
|
+
* video count and embed output. Requires API-key scope or current OAuth user
|
|
11
|
+
* permission: videoChannel:list
|
|
11
12
|
*/
|
|
12
13
|
list(query?: VideoChannelListParams | null | undefined, options?: RequestOptions): PagePromise<VideoChannelListResponsesCursor, VideoChannelListResponse>;
|
|
13
14
|
/**
|
|
14
15
|
* Create a video channel. Only `name` is accepted here; set branding and publish
|
|
15
16
|
* it with PATCH, and add videos with `POST /rest/v1/video-channels/{id}/media`.
|
|
16
17
|
* New channels start unpublished, so the page is not reachable until you send
|
|
17
|
-
* `isPublished: true`. Requires scope
|
|
18
|
+
* `isPublished: true`. Requires API-key scope or current OAuth user permission:
|
|
19
|
+
* videoChannel:create
|
|
18
20
|
*/
|
|
19
21
|
create(body: VideoChannelCreateParams, options?: RequestOptions): APIPromise<VideoChannelCreateResponse>;
|
|
20
22
|
/**
|
|
21
23
|
* Fetch a channel with its branding, publish state, video count, shareable page
|
|
22
|
-
* URL, and paste-ready embed code. Requires scope
|
|
24
|
+
* URL, and paste-ready embed code. Requires API-key scope or current OAuth user
|
|
25
|
+
* permission: videoChannel:find
|
|
23
26
|
*/
|
|
24
27
|
retrieve(id: string, options?: RequestOptions): APIPromise<VideoChannelRetrieveResponse>;
|
|
25
28
|
/**
|
|
@@ -27,19 +30,21 @@ export declare class VideoChannels extends APIResource {
|
|
|
27
30
|
* to clear a nullable field. Sending `isPublished: true` makes the channel page
|
|
28
31
|
* reachable and renders it from the current videos and branding; `false` takes it
|
|
29
32
|
* offline. `logoMediaId` must reference an image in your media library. Requires
|
|
30
|
-
* scope: videoChannel:update
|
|
33
|
+
* API-key scope or current OAuth user permission: videoChannel:update
|
|
31
34
|
*/
|
|
32
35
|
update(id: string, body: VideoChannelUpdateParams, options?: RequestOptions): APIPromise<VideoChannelUpdateResponse>;
|
|
33
36
|
/**
|
|
34
37
|
* Delete a channel and take its page offline. The videos it listed are not deleted
|
|
35
|
-
* — only their membership in this channel. Requires scope
|
|
38
|
+
* — only their membership in this channel. Requires API-key scope or current OAuth
|
|
39
|
+
* user permission: videoChannel:delete
|
|
36
40
|
*/
|
|
37
41
|
delete(id: string, options?: RequestOptions): APIPromise<VideoChannelDeleteResponse>;
|
|
38
42
|
/**
|
|
39
43
|
* List the videos in a channel, ordered by their position on the page. Not
|
|
40
44
|
* paginated: a channel holds a bounded set of videos, so the full ordered list is
|
|
41
45
|
* always returned. Videos whose media no longer resolves are omitted rather than
|
|
42
|
-
* returned as broken entries. Requires scope
|
|
46
|
+
* returned as broken entries. Requires API-key scope or current OAuth user
|
|
47
|
+
* permission: videoChannel:find
|
|
43
48
|
*/
|
|
44
49
|
media(id: string, options?: RequestOptions): APIPromise<VideoChannelMediaResponse>;
|
|
45
50
|
/**
|
|
@@ -48,14 +53,15 @@ export declare class VideoChannels extends APIResource {
|
|
|
48
53
|
* Calling this again for a video already in the channel updates its position
|
|
49
54
|
* instead of adding a duplicate, and keeps its current slot when `position` is
|
|
50
55
|
* omitted. The returned `id` is a composite membership key, not a UUID. Requires
|
|
51
|
-
* scope: videoChannel:update
|
|
56
|
+
* API-key scope or current OAuth user permission: videoChannel:update
|
|
52
57
|
*/
|
|
53
58
|
assignMedia(id: string, body: VideoChannelAssignMediaParams, options?: RequestOptions): APIPromise<VideoChannelAssignMediaResponse>;
|
|
54
59
|
/**
|
|
55
60
|
* Remove one video from a channel, identified by the `mediaId` query parameter.
|
|
56
61
|
* The video itself is not deleted and stays in any other channel it belongs to.
|
|
57
62
|
* Idempotent — removing a video that is not in the channel succeeds and returns
|
|
58
|
-
* the channel unchanged. Requires scope
|
|
63
|
+
* the channel unchanged. Requires API-key scope or current OAuth user permission:
|
|
64
|
+
* videoChannel:update
|
|
59
65
|
*/
|
|
60
66
|
removeMedia(id: string, params: VideoChannelRemoveMediaParams, options?: RequestOptions): APIPromise<VideoChannelRemoveMediaResponse>;
|
|
61
67
|
/**
|
|
@@ -63,7 +69,7 @@ export declare class VideoChannels extends APIResource {
|
|
|
63
69
|
* the channel in the order you want them shown — index 0 appears first. A partial
|
|
64
70
|
* list, or an id that is not in the channel, returns 400 so a caller working from
|
|
65
71
|
* a stale view learns it is out of date instead of getting a partial write.
|
|
66
|
-
* Requires scope: videoChannel:update
|
|
72
|
+
* Requires API-key scope or current OAuth user permission: videoChannel:update
|
|
67
73
|
*/
|
|
68
74
|
reorder(id: string, body: VideoChannelReorderParams, options?: RequestOptions): APIPromise<VideoChannelReorderResponse>;
|
|
69
75
|
}
|
|
@@ -102,9 +108,16 @@ export interface VideoChannelRetrieveResponse {
|
|
|
102
108
|
footerText?: string | null;
|
|
103
109
|
isPublished?: boolean | null;
|
|
104
110
|
logoMediaId?: string | null;
|
|
105
|
-
resolvedValues?:
|
|
111
|
+
resolvedValues?: VideoChannelRetrieveResponse.ResolvedValues | null;
|
|
106
112
|
updatedAt?: string | null;
|
|
107
113
|
}
|
|
114
|
+
export declare namespace VideoChannelRetrieveResponse {
|
|
115
|
+
interface ResolvedValues {
|
|
116
|
+
embedCode: string;
|
|
117
|
+
embedUrl: string;
|
|
118
|
+
mediaCount: number;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
108
121
|
export interface VideoChannelUpdateResponse {
|
|
109
122
|
id: string;
|
|
110
123
|
accountId: string;
|
|
@@ -115,9 +128,16 @@ export interface VideoChannelUpdateResponse {
|
|
|
115
128
|
footerText?: string | null;
|
|
116
129
|
isPublished?: boolean | null;
|
|
117
130
|
logoMediaId?: string | null;
|
|
118
|
-
resolvedValues?:
|
|
131
|
+
resolvedValues?: VideoChannelUpdateResponse.ResolvedValues | null;
|
|
119
132
|
updatedAt?: string | null;
|
|
120
133
|
}
|
|
134
|
+
export declare namespace VideoChannelUpdateResponse {
|
|
135
|
+
interface ResolvedValues {
|
|
136
|
+
embedCode: string;
|
|
137
|
+
embedUrl: string;
|
|
138
|
+
mediaCount: number;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
121
141
|
export interface VideoChannelDeleteResponse {
|
|
122
142
|
id: string;
|
|
123
143
|
deleted: true;
|
|
@@ -174,9 +194,16 @@ export interface VideoChannelRemoveMediaResponse {
|
|
|
174
194
|
footerText?: string | null;
|
|
175
195
|
isPublished?: boolean | null;
|
|
176
196
|
logoMediaId?: string | null;
|
|
177
|
-
resolvedValues?:
|
|
197
|
+
resolvedValues?: VideoChannelRemoveMediaResponse.ResolvedValues | null;
|
|
178
198
|
updatedAt?: string | null;
|
|
179
199
|
}
|
|
200
|
+
export declare namespace VideoChannelRemoveMediaResponse {
|
|
201
|
+
interface ResolvedValues {
|
|
202
|
+
embedCode: string;
|
|
203
|
+
embedUrl: string;
|
|
204
|
+
mediaCount: number;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
180
207
|
export interface VideoChannelReorderResponse {
|
|
181
208
|
id: string;
|
|
182
209
|
accountId: string;
|
|
@@ -187,9 +214,16 @@ export interface VideoChannelReorderResponse {
|
|
|
187
214
|
footerText?: string | null;
|
|
188
215
|
isPublished?: boolean | null;
|
|
189
216
|
logoMediaId?: string | null;
|
|
190
|
-
resolvedValues?:
|
|
217
|
+
resolvedValues?: VideoChannelReorderResponse.ResolvedValues | null;
|
|
191
218
|
updatedAt?: string | null;
|
|
192
219
|
}
|
|
220
|
+
export declare namespace VideoChannelReorderResponse {
|
|
221
|
+
interface ResolvedValues {
|
|
222
|
+
embedCode: string;
|
|
223
|
+
embedUrl: string;
|
|
224
|
+
mediaCount: number;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
193
227
|
export interface VideoChannelListParams extends CursorParams {
|
|
194
228
|
}
|
|
195
229
|
export interface VideoChannelCreateParams {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"video-channels.d.mts","sourceRoot":"","sources":["../src/resources/video-channels.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,O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G;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED,MAAM,WAAW,6BAA6B;IAC5C;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,6BAA6B;IAC5C;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,yBAAyB;IACxC;;;OAGG;IACH,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
|
|
@@ -7,19 +7,22 @@ export declare class VideoChannels extends APIResource {
|
|
|
7
7
|
* List video channels for the account, sorted by name. Supports cursor pagination
|
|
8
8
|
* via `limit` and `cursor`; the limit clamp is 1000 so a single request can return
|
|
9
9
|
* the full set. Entries omit `resolvedValues` — fetch a channel by id for its
|
|
10
|
-
* video count and embed output. Requires scope
|
|
10
|
+
* video count and embed output. Requires API-key scope or current OAuth user
|
|
11
|
+
* permission: videoChannel:list
|
|
11
12
|
*/
|
|
12
13
|
list(query?: VideoChannelListParams | null | undefined, options?: RequestOptions): PagePromise<VideoChannelListResponsesCursor, VideoChannelListResponse>;
|
|
13
14
|
/**
|
|
14
15
|
* Create a video channel. Only `name` is accepted here; set branding and publish
|
|
15
16
|
* it with PATCH, and add videos with `POST /rest/v1/video-channels/{id}/media`.
|
|
16
17
|
* New channels start unpublished, so the page is not reachable until you send
|
|
17
|
-
* `isPublished: true`. Requires scope
|
|
18
|
+
* `isPublished: true`. Requires API-key scope or current OAuth user permission:
|
|
19
|
+
* videoChannel:create
|
|
18
20
|
*/
|
|
19
21
|
create(body: VideoChannelCreateParams, options?: RequestOptions): APIPromise<VideoChannelCreateResponse>;
|
|
20
22
|
/**
|
|
21
23
|
* Fetch a channel with its branding, publish state, video count, shareable page
|
|
22
|
-
* URL, and paste-ready embed code. Requires scope
|
|
24
|
+
* URL, and paste-ready embed code. Requires API-key scope or current OAuth user
|
|
25
|
+
* permission: videoChannel:find
|
|
23
26
|
*/
|
|
24
27
|
retrieve(id: string, options?: RequestOptions): APIPromise<VideoChannelRetrieveResponse>;
|
|
25
28
|
/**
|
|
@@ -27,19 +30,21 @@ export declare class VideoChannels extends APIResource {
|
|
|
27
30
|
* to clear a nullable field. Sending `isPublished: true` makes the channel page
|
|
28
31
|
* reachable and renders it from the current videos and branding; `false` takes it
|
|
29
32
|
* offline. `logoMediaId` must reference an image in your media library. Requires
|
|
30
|
-
* scope: videoChannel:update
|
|
33
|
+
* API-key scope or current OAuth user permission: videoChannel:update
|
|
31
34
|
*/
|
|
32
35
|
update(id: string, body: VideoChannelUpdateParams, options?: RequestOptions): APIPromise<VideoChannelUpdateResponse>;
|
|
33
36
|
/**
|
|
34
37
|
* Delete a channel and take its page offline. The videos it listed are not deleted
|
|
35
|
-
* — only their membership in this channel. Requires scope
|
|
38
|
+
* — only their membership in this channel. Requires API-key scope or current OAuth
|
|
39
|
+
* user permission: videoChannel:delete
|
|
36
40
|
*/
|
|
37
41
|
delete(id: string, options?: RequestOptions): APIPromise<VideoChannelDeleteResponse>;
|
|
38
42
|
/**
|
|
39
43
|
* List the videos in a channel, ordered by their position on the page. Not
|
|
40
44
|
* paginated: a channel holds a bounded set of videos, so the full ordered list is
|
|
41
45
|
* always returned. Videos whose media no longer resolves are omitted rather than
|
|
42
|
-
* returned as broken entries. Requires scope
|
|
46
|
+
* returned as broken entries. Requires API-key scope or current OAuth user
|
|
47
|
+
* permission: videoChannel:find
|
|
43
48
|
*/
|
|
44
49
|
media(id: string, options?: RequestOptions): APIPromise<VideoChannelMediaResponse>;
|
|
45
50
|
/**
|
|
@@ -48,14 +53,15 @@ export declare class VideoChannels extends APIResource {
|
|
|
48
53
|
* Calling this again for a video already in the channel updates its position
|
|
49
54
|
* instead of adding a duplicate, and keeps its current slot when `position` is
|
|
50
55
|
* omitted. The returned `id` is a composite membership key, not a UUID. Requires
|
|
51
|
-
* scope: videoChannel:update
|
|
56
|
+
* API-key scope or current OAuth user permission: videoChannel:update
|
|
52
57
|
*/
|
|
53
58
|
assignMedia(id: string, body: VideoChannelAssignMediaParams, options?: RequestOptions): APIPromise<VideoChannelAssignMediaResponse>;
|
|
54
59
|
/**
|
|
55
60
|
* Remove one video from a channel, identified by the `mediaId` query parameter.
|
|
56
61
|
* The video itself is not deleted and stays in any other channel it belongs to.
|
|
57
62
|
* Idempotent — removing a video that is not in the channel succeeds and returns
|
|
58
|
-
* the channel unchanged. Requires scope
|
|
63
|
+
* the channel unchanged. Requires API-key scope or current OAuth user permission:
|
|
64
|
+
* videoChannel:update
|
|
59
65
|
*/
|
|
60
66
|
removeMedia(id: string, params: VideoChannelRemoveMediaParams, options?: RequestOptions): APIPromise<VideoChannelRemoveMediaResponse>;
|
|
61
67
|
/**
|
|
@@ -63,7 +69,7 @@ export declare class VideoChannels extends APIResource {
|
|
|
63
69
|
* the channel in the order you want them shown — index 0 appears first. A partial
|
|
64
70
|
* list, or an id that is not in the channel, returns 400 so a caller working from
|
|
65
71
|
* a stale view learns it is out of date instead of getting a partial write.
|
|
66
|
-
* Requires scope: videoChannel:update
|
|
72
|
+
* Requires API-key scope or current OAuth user permission: videoChannel:update
|
|
67
73
|
*/
|
|
68
74
|
reorder(id: string, body: VideoChannelReorderParams, options?: RequestOptions): APIPromise<VideoChannelReorderResponse>;
|
|
69
75
|
}
|
|
@@ -102,9 +108,16 @@ export interface VideoChannelRetrieveResponse {
|
|
|
102
108
|
footerText?: string | null;
|
|
103
109
|
isPublished?: boolean | null;
|
|
104
110
|
logoMediaId?: string | null;
|
|
105
|
-
resolvedValues?:
|
|
111
|
+
resolvedValues?: VideoChannelRetrieveResponse.ResolvedValues | null;
|
|
106
112
|
updatedAt?: string | null;
|
|
107
113
|
}
|
|
114
|
+
export declare namespace VideoChannelRetrieveResponse {
|
|
115
|
+
interface ResolvedValues {
|
|
116
|
+
embedCode: string;
|
|
117
|
+
embedUrl: string;
|
|
118
|
+
mediaCount: number;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
108
121
|
export interface VideoChannelUpdateResponse {
|
|
109
122
|
id: string;
|
|
110
123
|
accountId: string;
|
|
@@ -115,9 +128,16 @@ export interface VideoChannelUpdateResponse {
|
|
|
115
128
|
footerText?: string | null;
|
|
116
129
|
isPublished?: boolean | null;
|
|
117
130
|
logoMediaId?: string | null;
|
|
118
|
-
resolvedValues?:
|
|
131
|
+
resolvedValues?: VideoChannelUpdateResponse.ResolvedValues | null;
|
|
119
132
|
updatedAt?: string | null;
|
|
120
133
|
}
|
|
134
|
+
export declare namespace VideoChannelUpdateResponse {
|
|
135
|
+
interface ResolvedValues {
|
|
136
|
+
embedCode: string;
|
|
137
|
+
embedUrl: string;
|
|
138
|
+
mediaCount: number;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
121
141
|
export interface VideoChannelDeleteResponse {
|
|
122
142
|
id: string;
|
|
123
143
|
deleted: true;
|
|
@@ -174,9 +194,16 @@ export interface VideoChannelRemoveMediaResponse {
|
|
|
174
194
|
footerText?: string | null;
|
|
175
195
|
isPublished?: boolean | null;
|
|
176
196
|
logoMediaId?: string | null;
|
|
177
|
-
resolvedValues?:
|
|
197
|
+
resolvedValues?: VideoChannelRemoveMediaResponse.ResolvedValues | null;
|
|
178
198
|
updatedAt?: string | null;
|
|
179
199
|
}
|
|
200
|
+
export declare namespace VideoChannelRemoveMediaResponse {
|
|
201
|
+
interface ResolvedValues {
|
|
202
|
+
embedCode: string;
|
|
203
|
+
embedUrl: string;
|
|
204
|
+
mediaCount: number;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
180
207
|
export interface VideoChannelReorderResponse {
|
|
181
208
|
id: string;
|
|
182
209
|
accountId: string;
|
|
@@ -187,9 +214,16 @@ export interface VideoChannelReorderResponse {
|
|
|
187
214
|
footerText?: string | null;
|
|
188
215
|
isPublished?: boolean | null;
|
|
189
216
|
logoMediaId?: string | null;
|
|
190
|
-
resolvedValues?:
|
|
217
|
+
resolvedValues?: VideoChannelReorderResponse.ResolvedValues | null;
|
|
191
218
|
updatedAt?: string | null;
|
|
192
219
|
}
|
|
220
|
+
export declare namespace VideoChannelReorderResponse {
|
|
221
|
+
interface ResolvedValues {
|
|
222
|
+
embedCode: string;
|
|
223
|
+
embedUrl: string;
|
|
224
|
+
mediaCount: number;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
193
227
|
export interface VideoChannelListParams extends CursorParams {
|
|
194
228
|
}
|
|
195
229
|
export interface VideoChannelCreateParams {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"video-channels.d.ts","sourceRoot":"","sources":["../src/resources/video-channels.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,WAAW,EAAE,8BAA2B;AAC5E,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D,qBAA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CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,6BAA6B;IAC5C;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,yBAAyB;IACxC;;;OAGG;IACH,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
|
|
@@ -10,7 +10,8 @@ class VideoChannels extends resource_1.APIResource {
|
|
|
10
10
|
* List video channels for the account, sorted by name. Supports cursor pagination
|
|
11
11
|
* via `limit` and `cursor`; the limit clamp is 1000 so a single request can return
|
|
12
12
|
* the full set. Entries omit `resolvedValues` — fetch a channel by id for its
|
|
13
|
-
* video count and embed output. Requires scope
|
|
13
|
+
* video count and embed output. Requires API-key scope or current OAuth user
|
|
14
|
+
* permission: videoChannel:list
|
|
14
15
|
*/
|
|
15
16
|
list(query = {}, options) {
|
|
16
17
|
return this._client.getAPIList('/rest/v1/video-channels', (pagination_1.Cursor), {
|
|
@@ -22,14 +23,16 @@ class VideoChannels extends resource_1.APIResource {
|
|
|
22
23
|
* Create a video channel. Only `name` is accepted here; set branding and publish
|
|
23
24
|
* it with PATCH, and add videos with `POST /rest/v1/video-channels/{id}/media`.
|
|
24
25
|
* New channels start unpublished, so the page is not reachable until you send
|
|
25
|
-
* `isPublished: true`. Requires scope
|
|
26
|
+
* `isPublished: true`. Requires API-key scope or current OAuth user permission:
|
|
27
|
+
* videoChannel:create
|
|
26
28
|
*/
|
|
27
29
|
create(body, options) {
|
|
28
30
|
return this._client.post('/rest/v1/video-channels', { body, ...options });
|
|
29
31
|
}
|
|
30
32
|
/**
|
|
31
33
|
* Fetch a channel with its branding, publish state, video count, shareable page
|
|
32
|
-
* URL, and paste-ready embed code. Requires scope
|
|
34
|
+
* URL, and paste-ready embed code. Requires API-key scope or current OAuth user
|
|
35
|
+
* permission: videoChannel:find
|
|
33
36
|
*/
|
|
34
37
|
retrieve(id, options) {
|
|
35
38
|
return this._client.get((0, path_1.path) `/rest/v1/video-channels/${id}`, options);
|
|
@@ -39,14 +42,15 @@ class VideoChannels extends resource_1.APIResource {
|
|
|
39
42
|
* to clear a nullable field. Sending `isPublished: true` makes the channel page
|
|
40
43
|
* reachable and renders it from the current videos and branding; `false` takes it
|
|
41
44
|
* offline. `logoMediaId` must reference an image in your media library. Requires
|
|
42
|
-
* scope: videoChannel:update
|
|
45
|
+
* API-key scope or current OAuth user permission: videoChannel:update
|
|
43
46
|
*/
|
|
44
47
|
update(id, body, options) {
|
|
45
48
|
return this._client.patch((0, path_1.path) `/rest/v1/video-channels/${id}`, { body, ...options });
|
|
46
49
|
}
|
|
47
50
|
/**
|
|
48
51
|
* Delete a channel and take its page offline. The videos it listed are not deleted
|
|
49
|
-
* — only their membership in this channel. Requires scope
|
|
52
|
+
* — only their membership in this channel. Requires API-key scope or current OAuth
|
|
53
|
+
* user permission: videoChannel:delete
|
|
50
54
|
*/
|
|
51
55
|
delete(id, options) {
|
|
52
56
|
return this._client.delete((0, path_1.path) `/rest/v1/video-channels/${id}`, options);
|
|
@@ -55,7 +59,8 @@ class VideoChannels extends resource_1.APIResource {
|
|
|
55
59
|
* List the videos in a channel, ordered by their position on the page. Not
|
|
56
60
|
* paginated: a channel holds a bounded set of videos, so the full ordered list is
|
|
57
61
|
* always returned. Videos whose media no longer resolves are omitted rather than
|
|
58
|
-
* returned as broken entries. Requires scope
|
|
62
|
+
* returned as broken entries. Requires API-key scope or current OAuth user
|
|
63
|
+
* permission: videoChannel:find
|
|
59
64
|
*/
|
|
60
65
|
media(id, options) {
|
|
61
66
|
return this._client.get((0, path_1.path) `/rest/v1/video-channels/${id}/media`, options);
|
|
@@ -66,7 +71,7 @@ class VideoChannels extends resource_1.APIResource {
|
|
|
66
71
|
* Calling this again for a video already in the channel updates its position
|
|
67
72
|
* instead of adding a duplicate, and keeps its current slot when `position` is
|
|
68
73
|
* omitted. The returned `id` is a composite membership key, not a UUID. Requires
|
|
69
|
-
* scope: videoChannel:update
|
|
74
|
+
* API-key scope or current OAuth user permission: videoChannel:update
|
|
70
75
|
*/
|
|
71
76
|
assignMedia(id, body, options) {
|
|
72
77
|
return this._client.post((0, path_1.path) `/rest/v1/video-channels/${id}/media`, { body, ...options });
|
|
@@ -75,7 +80,8 @@ class VideoChannels extends resource_1.APIResource {
|
|
|
75
80
|
* Remove one video from a channel, identified by the `mediaId` query parameter.
|
|
76
81
|
* The video itself is not deleted and stays in any other channel it belongs to.
|
|
77
82
|
* Idempotent — removing a video that is not in the channel succeeds and returns
|
|
78
|
-
* the channel unchanged. Requires scope
|
|
83
|
+
* the channel unchanged. Requires API-key scope or current OAuth user permission:
|
|
84
|
+
* videoChannel:update
|
|
79
85
|
*/
|
|
80
86
|
removeMedia(id, params, options) {
|
|
81
87
|
const { mediaId } = params;
|
|
@@ -86,7 +92,7 @@ class VideoChannels extends resource_1.APIResource {
|
|
|
86
92
|
* the channel in the order you want them shown — index 0 appears first. A partial
|
|
87
93
|
* list, or an id that is not in the channel, returns 400 so a caller working from
|
|
88
94
|
* a stale view learns it is out of date instead of getting a partial write.
|
|
89
|
-
* Requires scope: videoChannel:update
|
|
95
|
+
* Requires API-key scope or current OAuth user permission: videoChannel:update
|
|
90
96
|
*/
|
|
91
97
|
reorder(id, body, options) {
|
|
92
98
|
return this._client.post((0, path_1.path) `/rest/v1/video-channels/${id}/reorder`, { body, ...options });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"video-channels.js","sourceRoot":"","sources":["../src/resources/video-channels.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,sDAA4E;AAE5E,oDAA8C;AAE9C,MAAa,aAAc,SAAQ,sBAAW;IAC5C
|
|
1
|
+
{"version":3,"file":"video-channels.js","sourceRoot":"","sources":["../src/resources/video-channels.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,sDAA4E;AAE5E,oDAA8C;AAE9C,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;;;;;OAMG;IACH,IAAI,CACF,QAAmD,EAAE,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,yBAAyB,EAAE,CAAA,mBAAgC,CAAA,EAAE;YAC1F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;OAMG;IACH,MAAM,CAAC,IAA8B,EAAE,OAAwB;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAyB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;IAED;;;;OAIG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,2BAA2B,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;IAED;;;;;;OAMG;IACH,MAAM,CACJ,EAAU,EACV,IAA8B,EAC9B,O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