@oursprivacy/platform-sdk 1.42.2 → 1.44.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 +16 -0
- package/client.d.mts +14 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +14 -2
- package/client.d.ts.map +1 -1
- package/client.js +12 -0
- package/client.js.map +1 -1
- package/client.mjs +12 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/audience-conversion-reports.d.mts +216 -0
- package/resources/audience-conversion-reports.d.mts.map +1 -0
- package/resources/audience-conversion-reports.d.ts +216 -0
- package/resources/audience-conversion-reports.d.ts.map +1 -0
- package/resources/audience-conversion-reports.js +55 -0
- package/resources/audience-conversion-reports.js.map +1 -0
- package/resources/audience-conversion-reports.mjs +51 -0
- package/resources/audience-conversion-reports.mjs.map +1 -0
- package/resources/conversion-journey-summaries.d.mts +169 -0
- package/resources/conversion-journey-summaries.d.mts.map +1 -0
- package/resources/conversion-journey-summaries.d.ts +169 -0
- package/resources/conversion-journey-summaries.d.ts.map +1 -0
- package/resources/conversion-journey-summaries.js +51 -0
- package/resources/conversion-journey-summaries.js.map +1 -0
- package/resources/conversion-journey-summaries.mjs +47 -0
- package/resources/conversion-journey-summaries.mjs.map +1 -0
- package/resources/destinations.d.mts +38 -17
- package/resources/destinations.d.mts.map +1 -1
- package/resources/destinations.d.ts +38 -17
- package/resources/destinations.d.ts.map +1 -1
- package/resources/experiments.d.mts +6 -4
- package/resources/experiments.d.mts.map +1 -1
- package/resources/experiments.d.ts +6 -4
- package/resources/experiments.d.ts.map +1 -1
- package/resources/experiments.js +4 -3
- package/resources/experiments.js.map +1 -1
- package/resources/experiments.mjs +4 -3
- package/resources/experiments.mjs.map +1 -1
- package/resources/funnels.d.mts +844 -21
- package/resources/funnels.d.mts.map +1 -1
- package/resources/funnels.d.ts +844 -21
- package/resources/funnels.d.ts.map +1 -1
- package/resources/funnels.js +30 -6
- package/resources/funnels.js.map +1 -1
- package/resources/funnels.mjs +30 -6
- package/resources/funnels.mjs.map +1 -1
- package/resources/index.d.mts +5 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +5 -1
- 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/versions.d.mts +40 -0
- package/resources/versions.d.mts.map +1 -1
- package/resources/versions.d.ts +40 -0
- package/resources/versions.d.ts.map +1 -1
- package/resources/video-channels.d.mts +237 -0
- package/resources/video-channels.d.mts.map +1 -0
- package/resources/video-channels.d.ts +237 -0
- package/resources/video-channels.d.ts.map +1 -0
- package/resources/video-channels.js +95 -0
- package/resources/video-channels.js.map +1 -0
- package/resources/video-channels.mjs +91 -0
- package/resources/video-channels.mjs.map +1 -0
- package/resources/videos.d.mts +251 -0
- package/resources/videos.d.mts.map +1 -0
- package/resources/videos.d.ts +251 -0
- package/resources/videos.d.ts.map +1 -0
- package/resources/videos.js +81 -0
- package/resources/videos.js.map +1 -0
- package/resources/videos.mjs +77 -0
- package/resources/videos.mjs.map +1 -0
- package/resources/web-scanners.d.mts +53 -8
- package/resources/web-scanners.d.mts.map +1 -1
- package/resources/web-scanners.d.ts +53 -8
- package/resources/web-scanners.d.ts.map +1 -1
- package/resources/web-scanners.js +9 -8
- package/resources/web-scanners.js.map +1 -1
- package/resources/web-scanners.mjs +9 -8
- package/resources/web-scanners.mjs.map +1 -1
- package/src/client.ts +146 -0
- package/src/resources/audience-conversion-reports.ts +466 -0
- package/src/resources/conversion-journey-summaries.ts +384 -0
- package/src/resources/destinations.ts +158 -12
- package/src/resources/experiments.ts +6 -4
- package/src/resources/funnels.ts +1400 -20
- package/src/resources/index.ts +67 -0
- package/src/resources/versions.ts +50 -0
- package/src/resources/video-channels.ts +405 -0
- package/src/resources/videos.ts +418 -0
- package/src/resources/web-scanners.ts +73 -8
- 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/src/resources/index.ts
CHANGED
|
@@ -23,6 +23,18 @@ export {
|
|
|
23
23
|
type AttributionAudienceConversionParams,
|
|
24
24
|
type AttributionUtmComparisonParams,
|
|
25
25
|
} from './attribution';
|
|
26
|
+
export {
|
|
27
|
+
AudienceConversionReports,
|
|
28
|
+
type AudienceConversionReportListResponse,
|
|
29
|
+
type AudienceConversionReportCreateResponse,
|
|
30
|
+
type AudienceConversionReportRetrieveResponse,
|
|
31
|
+
type AudienceConversionReportUpdateResponse,
|
|
32
|
+
type AudienceConversionReportDeleteResponse,
|
|
33
|
+
type AudienceConversionReportResultsResponse,
|
|
34
|
+
type AudienceConversionReportCreateParams,
|
|
35
|
+
type AudienceConversionReportUpdateParams,
|
|
36
|
+
type AudienceConversionReportResultsParams,
|
|
37
|
+
} from './audience-conversion-reports';
|
|
26
38
|
export {
|
|
27
39
|
ConsentAnalytics,
|
|
28
40
|
type ConsentAnalyticsListResponse,
|
|
@@ -45,6 +57,18 @@ export {
|
|
|
45
57
|
type ConsentSettingPageAnalysisParams,
|
|
46
58
|
type ConsentSettingAnalyticsByRegionParams,
|
|
47
59
|
} from './consent-settings';
|
|
60
|
+
export {
|
|
61
|
+
ConversionJourneySummaries,
|
|
62
|
+
type ConversionJourneySummaryListResponse,
|
|
63
|
+
type ConversionJourneySummaryCreateResponse,
|
|
64
|
+
type ConversionJourneySummaryRetrieveResponse,
|
|
65
|
+
type ConversionJourneySummaryUpdateResponse,
|
|
66
|
+
type ConversionJourneySummaryDeleteResponse,
|
|
67
|
+
type ConversionJourneySummaryListParams,
|
|
68
|
+
type ConversionJourneySummaryCreateParams,
|
|
69
|
+
type ConversionJourneySummaryUpdateParams,
|
|
70
|
+
type ConversionJourneySummaryListResponsesCursor,
|
|
71
|
+
} from './conversion-journey-summaries';
|
|
48
72
|
export {
|
|
49
73
|
DataGovernance,
|
|
50
74
|
type DataGovernanceListResponse,
|
|
@@ -134,8 +158,13 @@ export {
|
|
|
134
158
|
export {
|
|
135
159
|
Funnels,
|
|
136
160
|
type FunnelListResponse,
|
|
161
|
+
type FunnelCreateResponse,
|
|
137
162
|
type FunnelRetrieveResponse,
|
|
163
|
+
type FunnelUpdateResponse,
|
|
164
|
+
type FunnelDeleteResponse,
|
|
138
165
|
type FunnelResultsResponse,
|
|
166
|
+
type FunnelCreateParams,
|
|
167
|
+
type FunnelUpdateParams,
|
|
139
168
|
type FunnelResultsParams,
|
|
140
169
|
} from './funnels';
|
|
141
170
|
export {
|
|
@@ -298,6 +327,44 @@ export {
|
|
|
298
327
|
type VersionRevertParams,
|
|
299
328
|
type VersionListResponsesCursor,
|
|
300
329
|
} from './versions';
|
|
330
|
+
export {
|
|
331
|
+
VideoChannels,
|
|
332
|
+
type VideoChannelListResponse,
|
|
333
|
+
type VideoChannelCreateResponse,
|
|
334
|
+
type VideoChannelRetrieveResponse,
|
|
335
|
+
type VideoChannelUpdateResponse,
|
|
336
|
+
type VideoChannelDeleteResponse,
|
|
337
|
+
type VideoChannelMediaResponse,
|
|
338
|
+
type VideoChannelAssignMediaResponse,
|
|
339
|
+
type VideoChannelRemoveMediaResponse,
|
|
340
|
+
type VideoChannelReorderResponse,
|
|
341
|
+
type VideoChannelListParams,
|
|
342
|
+
type VideoChannelCreateParams,
|
|
343
|
+
type VideoChannelUpdateParams,
|
|
344
|
+
type VideoChannelAssignMediaParams,
|
|
345
|
+
type VideoChannelRemoveMediaParams,
|
|
346
|
+
type VideoChannelReorderParams,
|
|
347
|
+
type VideoChannelListResponsesCursor,
|
|
348
|
+
} from './video-channels';
|
|
349
|
+
export {
|
|
350
|
+
Videos,
|
|
351
|
+
type VideoListResponse,
|
|
352
|
+
type VideoCreateResponse,
|
|
353
|
+
type VideoRetrieveResponse,
|
|
354
|
+
type VideoUpdateResponse,
|
|
355
|
+
type VideoDeleteResponse,
|
|
356
|
+
type VideoAnalyticsResponse,
|
|
357
|
+
type VideoAnalyticsTimeseriesResponse,
|
|
358
|
+
type VideoTranscriptResponse,
|
|
359
|
+
type VideoUpdateTranscriptResponse,
|
|
360
|
+
type VideoListParams,
|
|
361
|
+
type VideoCreateParams,
|
|
362
|
+
type VideoUpdateParams,
|
|
363
|
+
type VideoAnalyticsParams,
|
|
364
|
+
type VideoAnalyticsTimeseriesParams,
|
|
365
|
+
type VideoUpdateTranscriptParams,
|
|
366
|
+
type VideoListResponsesCursor,
|
|
367
|
+
} from './videos';
|
|
301
368
|
export {
|
|
302
369
|
WebScannerRules,
|
|
303
370
|
type WebScannerRuleListResponse,
|
|
@@ -169,6 +169,16 @@ export interface VersionListResponse {
|
|
|
169
169
|
* determine the current live version.
|
|
170
170
|
*/
|
|
171
171
|
publishedAt?: string | null;
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* Identifier of the user who most recently published this version.
|
|
175
|
+
*/
|
|
176
|
+
publishedByUserId?: string | null;
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* Display name of the user who most recently published this version.
|
|
180
|
+
*/
|
|
181
|
+
publishedByUserName?: string | null;
|
|
172
182
|
}
|
|
173
183
|
|
|
174
184
|
export interface VersionCreateResponse {
|
|
@@ -191,6 +201,16 @@ export interface VersionCreateResponse {
|
|
|
191
201
|
* determine the current live version.
|
|
192
202
|
*/
|
|
193
203
|
publishedAt?: string | null;
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* Identifier of the user who most recently published this version.
|
|
207
|
+
*/
|
|
208
|
+
publishedByUserId?: string | null;
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* Display name of the user who most recently published this version.
|
|
212
|
+
*/
|
|
213
|
+
publishedByUserName?: string | null;
|
|
194
214
|
}
|
|
195
215
|
|
|
196
216
|
export interface VersionRetrieveResponse {
|
|
@@ -213,6 +233,16 @@ export interface VersionRetrieveResponse {
|
|
|
213
233
|
* determine the current live version.
|
|
214
234
|
*/
|
|
215
235
|
publishedAt?: string | null;
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* Identifier of the user who most recently published this version.
|
|
239
|
+
*/
|
|
240
|
+
publishedByUserId?: string | null;
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* Display name of the user who most recently published this version.
|
|
244
|
+
*/
|
|
245
|
+
publishedByUserName?: string | null;
|
|
216
246
|
}
|
|
217
247
|
|
|
218
248
|
export interface VersionUpdateResponse {
|
|
@@ -235,6 +265,16 @@ export interface VersionUpdateResponse {
|
|
|
235
265
|
* determine the current live version.
|
|
236
266
|
*/
|
|
237
267
|
publishedAt?: string | null;
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* Identifier of the user who most recently published this version.
|
|
271
|
+
*/
|
|
272
|
+
publishedByUserId?: string | null;
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* Display name of the user who most recently published this version.
|
|
276
|
+
*/
|
|
277
|
+
publishedByUserName?: string | null;
|
|
238
278
|
}
|
|
239
279
|
|
|
240
280
|
export interface VersionPublishResponse {
|
|
@@ -257,6 +297,16 @@ export interface VersionPublishResponse {
|
|
|
257
297
|
* determine the current live version.
|
|
258
298
|
*/
|
|
259
299
|
publishedAt?: string | null;
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* Identifier of the user who most recently published this version.
|
|
303
|
+
*/
|
|
304
|
+
publishedByUserId?: string | null;
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
* Display name of the user who most recently published this version.
|
|
308
|
+
*/
|
|
309
|
+
publishedByUserName?: string | null;
|
|
260
310
|
}
|
|
261
311
|
|
|
262
312
|
export interface VersionSnapshotResponse {
|
|
@@ -0,0 +1,405 @@
|
|
|
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 { Cursor, type CursorParams, PagePromise } from '../core/pagination';
|
|
6
|
+
import { RequestOptions } from '../internal/request-options';
|
|
7
|
+
import { path } from '../internal/utils/path';
|
|
8
|
+
|
|
9
|
+
export class VideoChannels extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* List video channels for the account, sorted by name. Supports cursor pagination
|
|
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 video
|
|
14
|
+
* count and embed output. Requires scope: videoChannel:list
|
|
15
|
+
*/
|
|
16
|
+
list(
|
|
17
|
+
query: VideoChannelListParams | null | undefined = {},
|
|
18
|
+
options?: RequestOptions,
|
|
19
|
+
): PagePromise<VideoChannelListResponsesCursor, VideoChannelListResponse> {
|
|
20
|
+
return this._client.getAPIList('/rest/v1/video-channels', Cursor<VideoChannelListResponse>, {
|
|
21
|
+
query,
|
|
22
|
+
...options,
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Create a video channel. Only `name` is accepted here; set branding and publish it
|
|
28
|
+
* with PATCH, and add videos with `POST /rest/v1/video-channels/{id}/media`. New
|
|
29
|
+
* channels start unpublished, so the page is not reachable until you send
|
|
30
|
+
* `isPublished: true`. Requires scope: videoChannel:create
|
|
31
|
+
*/
|
|
32
|
+
create(body: VideoChannelCreateParams, options?: RequestOptions): APIPromise<VideoChannelCreateResponse> {
|
|
33
|
+
return this._client.post('/rest/v1/video-channels', { body, ...options });
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Fetch a channel with its branding, publish state, video count, shareable page
|
|
38
|
+
* URL, and paste-ready embed code. Requires scope: videoChannel:find
|
|
39
|
+
*/
|
|
40
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<VideoChannelRetrieveResponse> {
|
|
41
|
+
return this._client.get(path`/rest/v1/video-channels/${id}`, options);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Partially update a channel. Only fields included in the body change; send `null`
|
|
46
|
+
* to clear a nullable field. Sending `isPublished: true` makes the channel page
|
|
47
|
+
* reachable and renders it from the current videos and branding; `false` takes it
|
|
48
|
+
* offline. `logoMediaId` must reference an image in your media library. Requires
|
|
49
|
+
* scope: videoChannel:update
|
|
50
|
+
*/
|
|
51
|
+
update(
|
|
52
|
+
id: string,
|
|
53
|
+
body: VideoChannelUpdateParams,
|
|
54
|
+
options?: RequestOptions,
|
|
55
|
+
): APIPromise<VideoChannelUpdateResponse> {
|
|
56
|
+
return this._client.patch(path`/rest/v1/video-channels/${id}`, { body, ...options });
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Delete a channel and take its page offline. The videos it listed are not deleted
|
|
61
|
+
* — only their membership in this channel. Requires scope: videoChannel:delete
|
|
62
|
+
*/
|
|
63
|
+
delete(id: string, options?: RequestOptions): APIPromise<VideoChannelDeleteResponse> {
|
|
64
|
+
return this._client.delete(path`/rest/v1/video-channels/${id}`, options);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* List the videos in a channel, ordered by their position on the page. Not
|
|
69
|
+
* paginated: a channel holds a bounded set of videos, so the full ordered list is
|
|
70
|
+
* always returned. Videos whose media no longer resolves are omitted rather than
|
|
71
|
+
* returned as broken entries. Requires scope: videoChannel:find
|
|
72
|
+
*/
|
|
73
|
+
media(id: string, options?: RequestOptions): APIPromise<VideoChannelMediaResponse> {
|
|
74
|
+
return this._client.get(path`/rest/v1/video-channels/${id}/media`, options);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Add a video to a channel. Omit `position` to append it to the end. A video can
|
|
79
|
+
* belong to several channels, so adding it here does not remove it from any other.
|
|
80
|
+
* Calling this again for a video already in the channel updates its position
|
|
81
|
+
* instead of adding a duplicate, and keeps its current slot when `position` is
|
|
82
|
+
* omitted. The returned `id` is a composite membership key, not a UUID. Requires
|
|
83
|
+
* scope: videoChannel:update
|
|
84
|
+
*/
|
|
85
|
+
assignMedia(
|
|
86
|
+
id: string,
|
|
87
|
+
body: VideoChannelAssignMediaParams,
|
|
88
|
+
options?: RequestOptions,
|
|
89
|
+
): APIPromise<VideoChannelAssignMediaResponse> {
|
|
90
|
+
return this._client.post(path`/rest/v1/video-channels/${id}/media`, { body, ...options });
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Remove one video from a channel, identified by the `mediaId` query parameter. The
|
|
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 the
|
|
97
|
+
* channel unchanged. Requires scope: videoChannel:update
|
|
98
|
+
*/
|
|
99
|
+
removeMedia(
|
|
100
|
+
id: string,
|
|
101
|
+
query: VideoChannelRemoveMediaParams,
|
|
102
|
+
options?: RequestOptions,
|
|
103
|
+
): APIPromise<VideoChannelRemoveMediaResponse> {
|
|
104
|
+
return this._client.delete(path`/rest/v1/video-channels/${id}/media`, { query, ...options });
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Set the display order of a channel’s videos. Send every video id currently in the
|
|
109
|
+
* channel in the order you want them shown — index 0 appears first. A partial list,
|
|
110
|
+
* or an id that is not in the channel, returns 400 so a caller working from a stale
|
|
111
|
+
* view learns it is out of date instead of getting a partial write. Requires scope:
|
|
112
|
+
* videoChannel:update
|
|
113
|
+
*/
|
|
114
|
+
reorder(
|
|
115
|
+
id: string,
|
|
116
|
+
body: VideoChannelReorderParams,
|
|
117
|
+
options?: RequestOptions,
|
|
118
|
+
): APIPromise<VideoChannelReorderResponse> {
|
|
119
|
+
return this._client.post(path`/rest/v1/video-channels/${id}/reorder`, { body, ...options });
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export type VideoChannelListResponsesCursor = Cursor<VideoChannelListResponse>;
|
|
124
|
+
|
|
125
|
+
export interface VideoChannelListResponse {
|
|
126
|
+
id: string;
|
|
127
|
+
|
|
128
|
+
accountId: string;
|
|
129
|
+
|
|
130
|
+
name: string;
|
|
131
|
+
|
|
132
|
+
brandColor?: string | null;
|
|
133
|
+
|
|
134
|
+
createdAt?: string | null;
|
|
135
|
+
|
|
136
|
+
description?: string | null;
|
|
137
|
+
|
|
138
|
+
footerText?: string | null;
|
|
139
|
+
|
|
140
|
+
isPublished?: boolean | null;
|
|
141
|
+
|
|
142
|
+
logoMediaId?: string | null;
|
|
143
|
+
|
|
144
|
+
updatedAt?: string | null;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export interface VideoChannelCreateResponse {
|
|
148
|
+
id: string;
|
|
149
|
+
|
|
150
|
+
accountId: string;
|
|
151
|
+
|
|
152
|
+
name: string;
|
|
153
|
+
|
|
154
|
+
brandColor?: string | null;
|
|
155
|
+
|
|
156
|
+
createdAt?: string | null;
|
|
157
|
+
|
|
158
|
+
description?: string | null;
|
|
159
|
+
|
|
160
|
+
footerText?: string | null;
|
|
161
|
+
|
|
162
|
+
isPublished?: boolean | null;
|
|
163
|
+
|
|
164
|
+
logoMediaId?: string | null;
|
|
165
|
+
|
|
166
|
+
updatedAt?: string | null;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
export interface VideoChannelRetrieveResponse {
|
|
170
|
+
id: string;
|
|
171
|
+
|
|
172
|
+
accountId: string;
|
|
173
|
+
|
|
174
|
+
name: string;
|
|
175
|
+
|
|
176
|
+
brandColor?: string | null;
|
|
177
|
+
|
|
178
|
+
createdAt?: string | null;
|
|
179
|
+
|
|
180
|
+
description?: string | null;
|
|
181
|
+
|
|
182
|
+
footerText?: string | null;
|
|
183
|
+
|
|
184
|
+
isPublished?: boolean | null;
|
|
185
|
+
|
|
186
|
+
logoMediaId?: string | null;
|
|
187
|
+
|
|
188
|
+
resolvedValues?: unknown | null;
|
|
189
|
+
|
|
190
|
+
updatedAt?: string | null;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
export interface VideoChannelUpdateResponse {
|
|
194
|
+
id: string;
|
|
195
|
+
|
|
196
|
+
accountId: string;
|
|
197
|
+
|
|
198
|
+
name: string;
|
|
199
|
+
|
|
200
|
+
brandColor?: string | null;
|
|
201
|
+
|
|
202
|
+
createdAt?: string | null;
|
|
203
|
+
|
|
204
|
+
description?: string | null;
|
|
205
|
+
|
|
206
|
+
footerText?: string | null;
|
|
207
|
+
|
|
208
|
+
isPublished?: boolean | null;
|
|
209
|
+
|
|
210
|
+
logoMediaId?: string | null;
|
|
211
|
+
|
|
212
|
+
resolvedValues?: unknown | null;
|
|
213
|
+
|
|
214
|
+
updatedAt?: string | null;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
export interface VideoChannelDeleteResponse {
|
|
218
|
+
id: string;
|
|
219
|
+
|
|
220
|
+
deleted: true;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
export interface VideoChannelMediaResponse {
|
|
224
|
+
entities: Array<VideoChannelMediaResponse.Entity>;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
export namespace VideoChannelMediaResponse {
|
|
228
|
+
export interface Entity {
|
|
229
|
+
id: string;
|
|
230
|
+
|
|
231
|
+
accountId: string;
|
|
232
|
+
|
|
233
|
+
createdAt: string;
|
|
234
|
+
|
|
235
|
+
type: 'Video';
|
|
236
|
+
|
|
237
|
+
captionsUpdatedAt?: string | null;
|
|
238
|
+
|
|
239
|
+
captionsUpdatedByName?: string | null;
|
|
240
|
+
|
|
241
|
+
description?: string | null;
|
|
242
|
+
|
|
243
|
+
duration?: number | null;
|
|
244
|
+
|
|
245
|
+
hasVideoUpload?: boolean | null;
|
|
246
|
+
|
|
247
|
+
height?: number | null;
|
|
248
|
+
|
|
249
|
+
name?: string | null;
|
|
250
|
+
|
|
251
|
+
updatedAt?: string | null;
|
|
252
|
+
|
|
253
|
+
width?: number | null;
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
export interface VideoChannelAssignMediaResponse {
|
|
258
|
+
id: string;
|
|
259
|
+
|
|
260
|
+
accountId: string;
|
|
261
|
+
|
|
262
|
+
mediaId: string;
|
|
263
|
+
|
|
264
|
+
channelId?: string | null;
|
|
265
|
+
|
|
266
|
+
createdAt?: string | null;
|
|
267
|
+
|
|
268
|
+
position?: number | null;
|
|
269
|
+
|
|
270
|
+
updatedAt?: string | null;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
export interface VideoChannelRemoveMediaResponse {
|
|
274
|
+
id: string;
|
|
275
|
+
|
|
276
|
+
accountId: string;
|
|
277
|
+
|
|
278
|
+
name: string;
|
|
279
|
+
|
|
280
|
+
brandColor?: string | null;
|
|
281
|
+
|
|
282
|
+
createdAt?: string | null;
|
|
283
|
+
|
|
284
|
+
description?: string | null;
|
|
285
|
+
|
|
286
|
+
footerText?: string | null;
|
|
287
|
+
|
|
288
|
+
isPublished?: boolean | null;
|
|
289
|
+
|
|
290
|
+
logoMediaId?: string | null;
|
|
291
|
+
|
|
292
|
+
resolvedValues?: unknown | null;
|
|
293
|
+
|
|
294
|
+
updatedAt?: string | null;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
export interface VideoChannelReorderResponse {
|
|
298
|
+
id: string;
|
|
299
|
+
|
|
300
|
+
accountId: string;
|
|
301
|
+
|
|
302
|
+
name: string;
|
|
303
|
+
|
|
304
|
+
brandColor?: string | null;
|
|
305
|
+
|
|
306
|
+
createdAt?: string | null;
|
|
307
|
+
|
|
308
|
+
description?: string | null;
|
|
309
|
+
|
|
310
|
+
footerText?: string | null;
|
|
311
|
+
|
|
312
|
+
isPublished?: boolean | null;
|
|
313
|
+
|
|
314
|
+
logoMediaId?: string | null;
|
|
315
|
+
|
|
316
|
+
resolvedValues?: unknown | null;
|
|
317
|
+
|
|
318
|
+
updatedAt?: string | null;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
export interface VideoChannelListParams extends CursorParams {}
|
|
322
|
+
|
|
323
|
+
export interface VideoChannelCreateParams {
|
|
324
|
+
/**
|
|
325
|
+
* Channel name. Case-insensitively unique within the account.
|
|
326
|
+
*/
|
|
327
|
+
name: string;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
export interface VideoChannelUpdateParams {
|
|
331
|
+
/**
|
|
332
|
+
* Accent color used on the channel page. Any CSS color string.
|
|
333
|
+
*/
|
|
334
|
+
brandColor?: string | null;
|
|
335
|
+
|
|
336
|
+
description?: string | null;
|
|
337
|
+
|
|
338
|
+
footerText?: string | null;
|
|
339
|
+
|
|
340
|
+
/**
|
|
341
|
+
* Whether the channel page is publicly reachable. Publishing renders the page from
|
|
342
|
+
* the current videos and branding; unpublishing takes it offline.
|
|
343
|
+
*/
|
|
344
|
+
isPublished?: boolean | null;
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* Id of an image in your media library to show as the channel logo. Must be an
|
|
348
|
+
* image; send `null` to clear it.
|
|
349
|
+
*/
|
|
350
|
+
logoMediaId?: string | null;
|
|
351
|
+
|
|
352
|
+
/**
|
|
353
|
+
* New channel name. Must stay case-insensitively unique within the account.
|
|
354
|
+
*/
|
|
355
|
+
name?: string | null;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
export interface VideoChannelAssignMediaParams {
|
|
359
|
+
/**
|
|
360
|
+
* Id of the video to add to the channel. Must be a video, not an image.
|
|
361
|
+
*/
|
|
362
|
+
mediaId: string;
|
|
363
|
+
|
|
364
|
+
/**
|
|
365
|
+
* Zero-based slot in the channel order. Omit to append to the end; omitting it on a
|
|
366
|
+
* video that is already in the channel keeps its current slot.
|
|
367
|
+
*/
|
|
368
|
+
position?: number;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
export interface VideoChannelRemoveMediaParams {
|
|
372
|
+
/**
|
|
373
|
+
* Id of the video to remove from this channel.
|
|
374
|
+
*/
|
|
375
|
+
mediaId: string;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
export interface VideoChannelReorderParams {
|
|
379
|
+
/**
|
|
380
|
+
* Every video id currently in the channel, in the order you want them shown.
|
|
381
|
+
* Partial lists and ids that are not in the channel are rejected.
|
|
382
|
+
*/
|
|
383
|
+
mediaIds: Array<string>;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
export declare namespace VideoChannels {
|
|
387
|
+
export {
|
|
388
|
+
type VideoChannelListResponse as VideoChannelListResponse,
|
|
389
|
+
type VideoChannelCreateResponse as VideoChannelCreateResponse,
|
|
390
|
+
type VideoChannelRetrieveResponse as VideoChannelRetrieveResponse,
|
|
391
|
+
type VideoChannelUpdateResponse as VideoChannelUpdateResponse,
|
|
392
|
+
type VideoChannelDeleteResponse as VideoChannelDeleteResponse,
|
|
393
|
+
type VideoChannelMediaResponse as VideoChannelMediaResponse,
|
|
394
|
+
type VideoChannelAssignMediaResponse as VideoChannelAssignMediaResponse,
|
|
395
|
+
type VideoChannelRemoveMediaResponse as VideoChannelRemoveMediaResponse,
|
|
396
|
+
type VideoChannelReorderResponse as VideoChannelReorderResponse,
|
|
397
|
+
type VideoChannelListResponsesCursor as VideoChannelListResponsesCursor,
|
|
398
|
+
type VideoChannelListParams as VideoChannelListParams,
|
|
399
|
+
type VideoChannelCreateParams as VideoChannelCreateParams,
|
|
400
|
+
type VideoChannelUpdateParams as VideoChannelUpdateParams,
|
|
401
|
+
type VideoChannelAssignMediaParams as VideoChannelAssignMediaParams,
|
|
402
|
+
type VideoChannelRemoveMediaParams as VideoChannelRemoveMediaParams,
|
|
403
|
+
type VideoChannelReorderParams as VideoChannelReorderParams,
|
|
404
|
+
};
|
|
405
|
+
}
|