@oursprivacy/platform-sdk 1.45.0 → 1.47.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 +25 -13
- package/client.d.mts.map +1 -1
- package/client.d.ts +25 -13
- package/client.d.ts.map +1 -1
- package/client.js +14 -2
- package/client.js.map +1 -1
- package/client.mjs +14 -2
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/attribution.d.mts +9 -1
- package/resources/attribution.d.mts.map +1 -1
- package/resources/attribution.d.ts +9 -1
- package/resources/attribution.d.ts.map +1 -1
- package/resources/consent-settings.d.mts +48 -0
- package/resources/consent-settings.d.mts.map +1 -1
- package/resources/consent-settings.d.ts +48 -0
- package/resources/consent-settings.d.ts.map +1 -1
- package/resources/conversion-journey-summaries.d.mts +38 -0
- package/resources/conversion-journey-summaries.d.mts.map +1 -1
- package/resources/conversion-journey-summaries.d.ts +38 -0
- package/resources/conversion-journey-summaries.d.ts.map +1 -1
- package/resources/conversion-journey-summaries.js +38 -0
- package/resources/conversion-journey-summaries.js.map +1 -1
- package/resources/conversion-journey-summaries.mjs +38 -0
- package/resources/conversion-journey-summaries.mjs.map +1 -1
- package/resources/data-governance.d.mts +5 -5
- package/resources/data-governance.d.mts.map +1 -1
- package/resources/data-governance.d.ts +5 -5
- package/resources/data-governance.d.ts.map +1 -1
- package/resources/destinations.d.mts +7 -27
- package/resources/destinations.d.mts.map +1 -1
- package/resources/destinations.d.ts +7 -27
- package/resources/destinations.d.ts.map +1 -1
- package/resources/experiment-variants.d.mts +4 -2
- package/resources/experiment-variants.d.mts.map +1 -1
- package/resources/experiment-variants.d.ts +4 -2
- package/resources/experiment-variants.d.ts.map +1 -1
- package/resources/experiments.d.mts +677 -102
- package/resources/experiments.d.mts.map +1 -1
- package/resources/experiments.d.ts +677 -102
- package/resources/experiments.d.ts.map +1 -1
- package/resources/experiments.js +32 -2
- package/resources/experiments.js.map +1 -1
- package/resources/experiments.mjs +32 -2
- package/resources/experiments.mjs.map +1 -1
- package/resources/funnels.d.mts +172 -22
- package/resources/funnels.d.mts.map +1 -1
- package/resources/funnels.d.ts +172 -22
- package/resources/funnels.d.ts.map +1 -1
- package/resources/funnels.js +10 -2
- package/resources/funnels.js.map +1 -1
- package/resources/funnels.mjs +10 -2
- package/resources/funnels.mjs.map +1 -1
- package/resources/heatmap-pages.d.mts +42 -14
- package/resources/heatmap-pages.d.mts.map +1 -1
- package/resources/heatmap-pages.d.ts +42 -14
- package/resources/heatmap-pages.d.ts.map +1 -1
- package/resources/heatmap-pages.js +11 -7
- package/resources/heatmap-pages.js.map +1 -1
- package/resources/heatmap-pages.mjs +11 -7
- package/resources/heatmap-pages.mjs.map +1 -1
- package/resources/index.d.mts +10 -6
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +10 -6
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +9 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +4 -0
- package/resources/index.mjs.map +1 -1
- package/resources/mappings.d.mts +2 -2
- package/resources/mappings.d.mts.map +1 -1
- package/resources/mappings.d.ts +2 -2
- package/resources/mappings.d.ts.map +1 -1
- package/resources/personalization-properties.d.mts +547 -0
- package/resources/personalization-properties.d.mts.map +1 -0
- package/resources/personalization-properties.d.ts +547 -0
- package/resources/personalization-properties.d.ts.map +1 -0
- package/resources/personalization-properties.js +100 -0
- package/resources/personalization-properties.js.map +1 -0
- package/resources/personalization-properties.mjs +96 -0
- package/resources/personalization-properties.mjs.map +1 -0
- package/resources/session-replays.d.mts +91 -0
- package/resources/session-replays.d.mts.map +1 -0
- package/resources/session-replays.d.ts +91 -0
- package/resources/session-replays.d.ts.map +1 -0
- package/resources/session-replays.js +24 -0
- package/resources/session-replays.js.map +1 -0
- package/resources/session-replays.mjs +20 -0
- package/resources/session-replays.mjs.map +1 -0
- package/resources/short-links.d.mts +138 -37
- package/resources/short-links.d.mts.map +1 -1
- package/resources/short-links.d.ts +138 -37
- package/resources/short-links.d.ts.map +1 -1
- package/resources/short-links.js +27 -12
- package/resources/short-links.js.map +1 -1
- package/resources/short-links.mjs +27 -12
- package/resources/short-links.mjs.map +1 -1
- package/resources/sources.d.mts +10 -6
- package/resources/sources.d.mts.map +1 -1
- package/resources/sources.d.ts +10 -6
- package/resources/sources.d.ts.map +1 -1
- package/resources/tag-manager-tags.d.mts +2 -2
- package/resources/tag-manager-tags.d.ts +2 -2
- package/resources/tag-manager-tags.js +2 -2
- package/resources/tag-manager-tags.mjs +2 -2
- package/resources/tag-manager-triggers.d.mts +18 -1
- package/resources/tag-manager-triggers.d.mts.map +1 -1
- package/resources/tag-manager-triggers.d.ts +18 -1
- package/resources/tag-manager-triggers.d.ts.map +1 -1
- package/resources/translation-widgets.d.mts +62 -0
- package/resources/translation-widgets.d.mts.map +1 -0
- package/resources/translation-widgets.d.ts +62 -0
- package/resources/translation-widgets.d.ts.map +1 -0
- package/resources/translation-widgets.js +18 -0
- package/resources/translation-widgets.js.map +1 -0
- package/resources/translation-widgets.mjs +14 -0
- package/resources/translation-widgets.mjs.map +1 -0
- package/resources/versions.d.mts +52 -1
- package/resources/versions.d.mts.map +1 -1
- package/resources/versions.d.ts +52 -1
- package/resources/versions.d.ts.map +1 -1
- package/resources/versions.js +20 -0
- package/resources/versions.js.map +1 -1
- package/resources/versions.mjs +20 -0
- package/resources/versions.mjs.map +1 -1
- package/resources/video-channels.d.mts +17 -17
- package/resources/video-channels.d.mts.map +1 -1
- package/resources/video-channels.d.ts +17 -17
- package/resources/video-channels.d.ts.map +1 -1
- package/resources/video-channels.js +17 -16
- package/resources/video-channels.js.map +1 -1
- package/resources/video-channels.mjs +17 -16
- package/resources/video-channels.mjs.map +1 -1
- package/resources/web-analytics.d.mts +345 -0
- package/resources/web-analytics.d.mts.map +1 -0
- package/resources/web-analytics.d.ts +345 -0
- package/resources/web-analytics.d.ts.map +1 -0
- package/resources/web-analytics.js +61 -0
- package/resources/web-analytics.js.map +1 -0
- package/resources/web-analytics.mjs +57 -0
- package/resources/web-analytics.mjs.map +1 -0
- package/resources/web-scanners.d.mts +314 -14
- package/resources/web-scanners.d.mts.map +1 -1
- package/resources/web-scanners.d.ts +314 -14
- package/resources/web-scanners.d.ts.map +1 -1
- package/resources/web-scanners.js +139 -13
- package/resources/web-scanners.js.map +1 -1
- package/resources/web-scanners.mjs +139 -13
- package/resources/web-scanners.mjs.map +1 -1
- package/src/client.ts +147 -19
- package/src/resources/attribution.ts +11 -1
- package/src/resources/consent-settings.ts +56 -0
- package/src/resources/conversion-journey-summaries.ts +38 -0
- package/src/resources/data-governance.ts +5 -5
- package/src/resources/destinations.ts +18 -115
- package/src/resources/experiment-variants.ts +4 -2
- package/src/resources/experiments.ts +812 -101
- package/src/resources/funnels.ts +276 -21
- package/src/resources/heatmap-pages.ts +49 -14
- package/src/resources/index.ts +61 -3
- package/src/resources/mappings.ts +2 -2
- package/src/resources/personalization-properties.ts +662 -0
- package/src/resources/session-replays.ts +138 -0
- package/src/resources/short-links.ts +164 -36
- package/src/resources/sources.ts +11 -0
- package/src/resources/tag-manager-tags.ts +2 -2
- package/src/resources/tag-manager-triggers.ts +18 -1
- package/src/resources/translation-widgets.ts +97 -0
- package/src/resources/versions.ts +95 -0
- package/src/resources/video-channels.ts +19 -18
- package/src/resources/web-analytics.ts +494 -0
- package/src/resources/web-scanners.ts +443 -13
- 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
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import { APIPromise } from '../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../internal/request-options';
|
|
6
|
+
import { path } from '../internal/utils/path';
|
|
7
|
+
|
|
8
|
+
export class TranslationWidgets extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Return usage totals and language, host, and page breakdowns for one translation
|
|
11
|
+
* widget over the requested date range. Requires scope:
|
|
12
|
+
* report:translation-analytics
|
|
13
|
+
*/
|
|
14
|
+
analytics(
|
|
15
|
+
id: string,
|
|
16
|
+
query: TranslationWidgetAnalyticsParams,
|
|
17
|
+
options?: RequestOptions,
|
|
18
|
+
): APIPromise<TranslationWidgetAnalyticsResponse> {
|
|
19
|
+
return this._client.get(path`/rest/v1/translation-widgets/${id}/analytics`, { query, ...options });
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface TranslationWidgetAnalyticsResponse {
|
|
24
|
+
byHost: Array<TranslationWidgetAnalyticsResponse.ByHost>;
|
|
25
|
+
|
|
26
|
+
byLanguage: Array<TranslationWidgetAnalyticsResponse.ByLanguage>;
|
|
27
|
+
|
|
28
|
+
languagesUsed: number;
|
|
29
|
+
|
|
30
|
+
topPages: Array<TranslationWidgetAnalyticsResponse.TopPage>;
|
|
31
|
+
|
|
32
|
+
totalTranslations: number;
|
|
33
|
+
|
|
34
|
+
uniqueUsers: number;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export namespace TranslationWidgetAnalyticsResponse {
|
|
38
|
+
export interface ByHost {
|
|
39
|
+
host: string;
|
|
40
|
+
|
|
41
|
+
translations: number;
|
|
42
|
+
|
|
43
|
+
uniqueUsers: number;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export interface ByLanguage {
|
|
47
|
+
languageCode: string;
|
|
48
|
+
|
|
49
|
+
translations: number;
|
|
50
|
+
|
|
51
|
+
uniqueUsers: number;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export interface TopPage {
|
|
55
|
+
byLanguage: Array<TopPage.ByLanguage>;
|
|
56
|
+
|
|
57
|
+
translations: number;
|
|
58
|
+
|
|
59
|
+
uniqueUsers: number;
|
|
60
|
+
|
|
61
|
+
url: string;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export namespace TopPage {
|
|
65
|
+
export interface ByLanguage {
|
|
66
|
+
languageCode: string;
|
|
67
|
+
|
|
68
|
+
translations: number;
|
|
69
|
+
|
|
70
|
+
uniqueUsers: number;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export interface TranslationWidgetAnalyticsParams {
|
|
76
|
+
/**
|
|
77
|
+
* Inclusive lower bound of the analytics window as `YYYY-MM-DD`.
|
|
78
|
+
*/
|
|
79
|
+
from: string;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Inclusive upper bound of the analytics window as `YYYY-MM-DD`.
|
|
83
|
+
*/
|
|
84
|
+
to: string;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Maximum rows to return for each breakdown. Defaults to 50.
|
|
88
|
+
*/
|
|
89
|
+
limit?: number;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export declare namespace TranslationWidgets {
|
|
93
|
+
export {
|
|
94
|
+
type TranslationWidgetAnalyticsResponse as TranslationWidgetAnalyticsResponse,
|
|
95
|
+
type TranslationWidgetAnalyticsParams as TranslationWidgetAnalyticsParams,
|
|
96
|
+
};
|
|
97
|
+
}
|
|
@@ -107,6 +107,31 @@ export class Versions extends APIResource {
|
|
|
107
107
|
return this._client.get(path`/rest/v1/versions/${id}/diff`, { query, ...options });
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
+
/**
|
|
111
|
+
* Check whether one entity has unpublished changes, without fetching the org-wide
|
|
112
|
+
* draft diff.
|
|
113
|
+
* `GET /rest/v1/versions/draft/status?collection={collection}&entityId={id}`
|
|
114
|
+
* returns `status: "added" | "modified" | "removed" | null` for that entity, with
|
|
115
|
+
* the same semantics as `GET /rest/v1/versions/draft/diff` — it shares the diff's
|
|
116
|
+
* field blacklist, so passive fields (timestamps, sync bookkeeping) do not count
|
|
117
|
+
* as a change.
|
|
118
|
+
*
|
|
119
|
+
* `status` is `null` for every outcome other than a real pending change: the
|
|
120
|
+
* entity already matches the published version, the id is unknown, the id belongs
|
|
121
|
+
* to another account, or the account has never published anything. Use
|
|
122
|
+
* `GET /rest/v1/versions/draft/diff` when you need the full change set instead of
|
|
123
|
+
* one entity. (`draft` is a literal path segment identifying the live draft as the
|
|
124
|
+
* target, which is why the entity is passed as `entityId` rather than `id`.)
|
|
125
|
+
* Requires scope: version:find
|
|
126
|
+
*/
|
|
127
|
+
status(
|
|
128
|
+
id: 'draft',
|
|
129
|
+
query: VersionStatusParams,
|
|
130
|
+
options?: RequestOptions,
|
|
131
|
+
): APIPromise<VersionStatusResponse> {
|
|
132
|
+
return this._client.get(path`/rest/v1/versions/${id}/status`, { query, ...options });
|
|
133
|
+
}
|
|
134
|
+
|
|
110
135
|
/**
|
|
111
136
|
* Revert one or more pending draft changes back to the latest published version
|
|
112
137
|
* (the "abandon a change" action). Send a body listing the entities to revert;
|
|
@@ -3077,6 +3102,43 @@ export namespace VersionDiffResponse {
|
|
|
3077
3102
|
}
|
|
3078
3103
|
}
|
|
3079
3104
|
|
|
3105
|
+
export interface VersionStatusResponse {
|
|
3106
|
+
/**
|
|
3107
|
+
* Echo of the requested entity id.
|
|
3108
|
+
*/
|
|
3109
|
+
id: string;
|
|
3110
|
+
|
|
3111
|
+
/**
|
|
3112
|
+
* Echo of the requested collection.
|
|
3113
|
+
*/
|
|
3114
|
+
collection:
|
|
3115
|
+
| 'allowedEvents'
|
|
3116
|
+
| 'consentSettings'
|
|
3117
|
+
| 'dataGovernanceEvents'
|
|
3118
|
+
| 'dataGovernanceRules'
|
|
3119
|
+
| 'destinations'
|
|
3120
|
+
| 'experimentSettings'
|
|
3121
|
+
| 'externalAllowedEventData'
|
|
3122
|
+
| 'globalDispatchCenters'
|
|
3123
|
+
| 'mappings'
|
|
3124
|
+
| 'replaySettings'
|
|
3125
|
+
| 'sources'
|
|
3126
|
+
| 'tagManagerTags'
|
|
3127
|
+
| 'tagManagerTriggers'
|
|
3128
|
+
| 'tagManagerVariables'
|
|
3129
|
+
| 'tagManagers';
|
|
3130
|
+
|
|
3131
|
+
/**
|
|
3132
|
+
* How the entity differs from the latest published version: `added` exists only in
|
|
3133
|
+
* the draft, `modified` exists in both with unpublished edits, `removed` exists
|
|
3134
|
+
* only in the published version. `null` covers every other outcome — the entity
|
|
3135
|
+
* matches the published version, is unknown, belongs to another account, or the
|
|
3136
|
+
* account has never published — so callers cannot use it to probe for entities
|
|
3137
|
+
* outside their account.
|
|
3138
|
+
*/
|
|
3139
|
+
status: 'added' | 'modified' | 'removed' | null;
|
|
3140
|
+
}
|
|
3141
|
+
|
|
3080
3142
|
export interface VersionRevertResponse {
|
|
3081
3143
|
/**
|
|
3082
3144
|
* Newly-added draft entities that were deleted.
|
|
@@ -3266,6 +3328,37 @@ export interface VersionDiffParams {
|
|
|
3266
3328
|
against?: string;
|
|
3267
3329
|
}
|
|
3268
3330
|
|
|
3331
|
+
export interface VersionStatusParams {
|
|
3332
|
+
/**
|
|
3333
|
+
* Entity collection the id belongs to. `experiments` and `experimentVariants` are
|
|
3334
|
+
* not supported — draft experiments never snapshot into a version — but
|
|
3335
|
+
* `experimentSettings` is.
|
|
3336
|
+
*/
|
|
3337
|
+
collection:
|
|
3338
|
+
| 'allowedEvents'
|
|
3339
|
+
| 'consentSettings'
|
|
3340
|
+
| 'dataGovernanceEvents'
|
|
3341
|
+
| 'dataGovernanceRules'
|
|
3342
|
+
| 'destinations'
|
|
3343
|
+
| 'experimentSettings'
|
|
3344
|
+
| 'externalAllowedEventData'
|
|
3345
|
+
| 'globalDispatchCenters'
|
|
3346
|
+
| 'mappings'
|
|
3347
|
+
| 'replaySettings'
|
|
3348
|
+
| 'sources'
|
|
3349
|
+
| 'tagManagerTags'
|
|
3350
|
+
| 'tagManagerTriggers'
|
|
3351
|
+
| 'tagManagerVariables'
|
|
3352
|
+
| 'tagManagers';
|
|
3353
|
+
|
|
3354
|
+
/**
|
|
3355
|
+
* Id of the entity to check. Most collections use UUIDs; `allowedEvents`,
|
|
3356
|
+
* `externalAllowedEventData`, `mappings`, `consentSettings`,
|
|
3357
|
+
* `globalDispatchCenters`, and `replaySettings` use slug-like strings.
|
|
3358
|
+
*/
|
|
3359
|
+
entityId: string;
|
|
3360
|
+
}
|
|
3361
|
+
|
|
3269
3362
|
export interface VersionRevertParams {
|
|
3270
3363
|
/**
|
|
3271
3364
|
* Draft entities to revert back to the latest published version. Each entry is
|
|
@@ -3316,6 +3409,7 @@ export declare namespace Versions {
|
|
|
3316
3409
|
type VersionPublishResponse as VersionPublishResponse,
|
|
3317
3410
|
type VersionSnapshotResponse as VersionSnapshotResponse,
|
|
3318
3411
|
type VersionDiffResponse as VersionDiffResponse,
|
|
3412
|
+
type VersionStatusResponse as VersionStatusResponse,
|
|
3319
3413
|
type VersionRevertResponse as VersionRevertResponse,
|
|
3320
3414
|
type VersionAbandonResponse as VersionAbandonResponse,
|
|
3321
3415
|
type VersionListResponsesCursor as VersionListResponsesCursor,
|
|
@@ -3323,6 +3417,7 @@ export declare namespace Versions {
|
|
|
3323
3417
|
type VersionCreateParams as VersionCreateParams,
|
|
3324
3418
|
type VersionUpdateParams as VersionUpdateParams,
|
|
3325
3419
|
type VersionDiffParams as VersionDiffParams,
|
|
3420
|
+
type VersionStatusParams as VersionStatusParams,
|
|
3326
3421
|
type VersionRevertParams as VersionRevertParams,
|
|
3327
3422
|
};
|
|
3328
3423
|
}
|
|
@@ -10,8 +10,8 @@ export class VideoChannels extends APIResource {
|
|
|
10
10
|
/**
|
|
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
|
-
* the full set. Entries omit `resolvedValues` — fetch a channel by id for its
|
|
14
|
-
* count and embed output. Requires scope: videoChannel:list
|
|
13
|
+
* the full set. Entries omit `resolvedValues` — fetch a channel by id for its
|
|
14
|
+
* video count and embed output. Requires scope: videoChannel:list
|
|
15
15
|
*/
|
|
16
16
|
list(
|
|
17
17
|
query: VideoChannelListParams | null | undefined = {},
|
|
@@ -24,9 +24,9 @@ export class VideoChannels extends APIResource {
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
|
-
* Create a video channel. Only `name` is accepted here; set branding and publish
|
|
28
|
-
* with PATCH, and add videos with `POST /rest/v1/video-channels/{id}/media`.
|
|
29
|
-
* channels start unpublished, so the page is not reachable until you send
|
|
27
|
+
* Create a video channel. Only `name` is accepted here; set branding and publish
|
|
28
|
+
* it with PATCH, and add videos with `POST /rest/v1/video-channels/{id}/media`.
|
|
29
|
+
* New channels start unpublished, so the page is not reachable until you send
|
|
30
30
|
* `isPublished: true`. Requires scope: videoChannel:create
|
|
31
31
|
*/
|
|
32
32
|
create(body: VideoChannelCreateParams, options?: RequestOptions): APIPromise<VideoChannelCreateResponse> {
|
|
@@ -91,25 +91,26 @@ export class VideoChannels extends APIResource {
|
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
/**
|
|
94
|
-
* Remove one video from a channel, identified by the `mediaId` query parameter.
|
|
95
|
-
* video itself is not deleted and stays in any other channel it belongs to.
|
|
96
|
-
* Idempotent — removing a video that is not in the channel succeeds and returns
|
|
97
|
-
* channel unchanged. Requires scope: videoChannel:update
|
|
94
|
+
* Remove one video from a channel, identified by the `mediaId` query parameter.
|
|
95
|
+
* The video itself is not deleted and stays in any other channel it belongs to.
|
|
96
|
+
* Idempotent — removing a video that is not in the channel succeeds and returns
|
|
97
|
+
* the channel unchanged. Requires scope: videoChannel:update
|
|
98
98
|
*/
|
|
99
99
|
removeMedia(
|
|
100
100
|
id: string,
|
|
101
|
-
|
|
101
|
+
params: VideoChannelRemoveMediaParams,
|
|
102
102
|
options?: RequestOptions,
|
|
103
103
|
): APIPromise<VideoChannelRemoveMediaResponse> {
|
|
104
|
-
|
|
104
|
+
const { mediaId } = params;
|
|
105
|
+
return this._client.delete(path`/rest/v1/video-channels/${id}/media`, { query: { mediaId }, ...options });
|
|
105
106
|
}
|
|
106
107
|
|
|
107
108
|
/**
|
|
108
|
-
* Set the display order of a channel’s videos. Send every video id currently in
|
|
109
|
-
* channel in the order you want them shown — index 0 appears first. A partial
|
|
110
|
-
* or an id that is not in the channel, returns 400 so a caller working from
|
|
111
|
-
* view learns it is out of date instead of getting a partial write.
|
|
112
|
-
* videoChannel:update
|
|
109
|
+
* Set the display order of a channel’s videos. Send every video id currently in
|
|
110
|
+
* the channel in the order you want them shown — index 0 appears first. A partial
|
|
111
|
+
* list, or an id that is not in the channel, returns 400 so a caller working from
|
|
112
|
+
* a stale view learns it is out of date instead of getting a partial write.
|
|
113
|
+
* Requires scope: videoChannel:update
|
|
113
114
|
*/
|
|
114
115
|
reorder(
|
|
115
116
|
id: string,
|
|
@@ -362,8 +363,8 @@ export interface VideoChannelAssignMediaParams {
|
|
|
362
363
|
mediaId: string;
|
|
363
364
|
|
|
364
365
|
/**
|
|
365
|
-
* Zero-based slot in the channel order. Omit to append to the end; omitting it on
|
|
366
|
-
* video that is already in the channel keeps its current slot.
|
|
366
|
+
* Zero-based slot in the channel order. Omit to append to the end; omitting it on
|
|
367
|
+
* a video that is already in the channel keeps its current slot.
|
|
367
368
|
*/
|
|
368
369
|
position?: number;
|
|
369
370
|
}
|