@rixl/sdk 0.1.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/LICENSE +21 -0
- package/README.md +153 -0
- package/dist/feeds/index.d.ts +21 -0
- package/dist/feeds/index.js +21 -0
- package/dist/feeds/item/creators/index.d.ts +21 -0
- package/dist/feeds/item/creators/index.js +20 -0
- package/dist/feeds/item/creators/item/index.d.ts +42 -0
- package/dist/feeds/item/creators/item/index.js +28 -0
- package/dist/feeds/item/index.d.ts +58 -0
- package/dist/feeds/item/index.js +44 -0
- package/dist/feeds/item/item/index.d.ts +29 -0
- package/dist/feeds/item/item/index.js +28 -0
- package/dist/images/index.d.ts +68 -0
- package/dist/images/index.js +46 -0
- package/dist/images/item/index.d.ts +48 -0
- package/dist/images/item/index.js +43 -0
- package/dist/images/upload/complete/index.d.ts +35 -0
- package/dist/images/upload/complete/index.js +36 -0
- package/dist/images/upload/index.d.ts +24 -0
- package/dist/images/upload/index.js +24 -0
- package/dist/images/upload/init/index.d.ts +33 -0
- package/dist/images/upload/init/index.js +33 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +5 -0
- package/dist/models/github_com_rixlhq_api_db_sqlc/index.d.ts +13 -0
- package/dist/models/github_com_rixlhq_api_db_sqlc/index.js +16 -0
- package/dist/models/github_com_rixlhq_api_internal_errors/index.d.ts +37 -0
- package/dist/models/github_com_rixlhq_api_internal_errors/index.js +40 -0
- package/dist/models/github_com_rixlhq_api_internal_videos/index.d.ts +72 -0
- package/dist/models/github_com_rixlhq_api_internal_videos/index.js +65 -0
- package/dist/models/github_com_rixlhq_api_internal_videos_handler_upload/index.d.ts +70 -0
- package/dist/models/github_com_rixlhq_api_internal_videos_handler_upload/index.js +78 -0
- package/dist/models/github_com_rixlhq_api_internal_videos_types/index.d.ts +30 -0
- package/dist/models/github_com_rixlhq_api_internal_videos_types/index.js +38 -0
- package/dist/models/index.d.ts +548 -0
- package/dist/models/index.js +543 -0
- package/dist/models/internal_images_handler/index.d.ts +98 -0
- package/dist/models/internal_images_handler/index.js +112 -0
- package/dist/models/internal_videos_handler_subtitles/index.d.ts +30 -0
- package/dist/models/internal_videos_handler_subtitles/index.js +38 -0
- package/dist/models/pagination/index.d.ts +125 -0
- package/dist/models/pagination/index.js +153 -0
- package/dist/rixlClient.d.ts +34 -0
- package/dist/rixlClient.js +69 -0
- package/dist/videos/index.d.ts +73 -0
- package/dist/videos/index.js +52 -0
- package/dist/videos/item/audioTracks/index.d.ts +38 -0
- package/dist/videos/item/audioTracks/index.js +33 -0
- package/dist/videos/item/audioTracks/item/index.d.ts +70 -0
- package/dist/videos/item/audioTracks/item/index.js +67 -0
- package/dist/videos/item/chapters/index.d.ts +50 -0
- package/dist/videos/item/chapters/index.js +46 -0
- package/dist/videos/item/delete/index.d.ts +30 -0
- package/dist/videos/item/delete/index.js +28 -0
- package/dist/videos/item/index.d.ts +61 -0
- package/dist/videos/item/index.js +63 -0
- package/dist/videos/item/subtitles/index.d.ts +38 -0
- package/dist/videos/item/subtitles/index.js +33 -0
- package/dist/videos/item/subtitles/item/index.d.ts +70 -0
- package/dist/videos/item/subtitles/item/index.js +67 -0
- package/dist/videos/item/thumbnail/index.d.ts +59 -0
- package/dist/videos/item/thumbnail/index.js +68 -0
- package/dist/videos/languages/index.d.ts +27 -0
- package/dist/videos/languages/index.js +22 -0
- package/dist/videos/upload/complete/index.d.ts +35 -0
- package/dist/videos/upload/complete/index.js +36 -0
- package/dist/videos/upload/index.d.ts +24 -0
- package/dist/videos/upload/index.js +24 -0
- package/dist/videos/upload/init/index.d.ts +34 -0
- package/dist/videos/upload/init/index.js +35 -0
- package/package.json +47 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions';
|
|
2
|
+
export interface ChapterInput extends AdditionalDataHolder, Parsable {
|
|
3
|
+
/**
|
|
4
|
+
* The start_time_sec property
|
|
5
|
+
*/
|
|
6
|
+
startTimeSec?: number | null;
|
|
7
|
+
/**
|
|
8
|
+
* The title property
|
|
9
|
+
*/
|
|
10
|
+
title?: string | null;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
14
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
15
|
+
* @returns {ChapterInput}
|
|
16
|
+
*/
|
|
17
|
+
export declare function createChapterInputFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
18
|
+
/**
|
|
19
|
+
* The deserialization information for the current model
|
|
20
|
+
* @param ChapterInput The instance to deserialize into.
|
|
21
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
22
|
+
*/
|
|
23
|
+
export declare function deserializeIntoChapterInput(chapterInput?: Partial<ChapterInput> | undefined): Record<string, (node: ParseNode) => void>;
|
|
24
|
+
/**
|
|
25
|
+
* Serializes information the current object
|
|
26
|
+
* @param ChapterInput The instance to serialize from.
|
|
27
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
28
|
+
* @param writer Serialization writer to use to serialize this model
|
|
29
|
+
*/
|
|
30
|
+
export declare function serializeChapterInput(writer: SerializationWriter, chapterInput?: Partial<ChapterInput> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
3
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
4
|
+
* @returns {ChapterInput}
|
|
5
|
+
*/
|
|
6
|
+
// @ts-ignore
|
|
7
|
+
export function createChapterInputFromDiscriminatorValue(parseNode) {
|
|
8
|
+
return deserializeIntoChapterInput;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* The deserialization information for the current model
|
|
12
|
+
* @param ChapterInput The instance to deserialize into.
|
|
13
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
14
|
+
*/
|
|
15
|
+
// @ts-ignore
|
|
16
|
+
export function deserializeIntoChapterInput(chapterInput = {}) {
|
|
17
|
+
return {
|
|
18
|
+
"start_time_sec": n => { chapterInput.startTimeSec = n.getNumberValue(); },
|
|
19
|
+
"title": n => { chapterInput.title = n.getStringValue(); },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Serializes information the current object
|
|
24
|
+
* @param ChapterInput The instance to serialize from.
|
|
25
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
26
|
+
* @param writer Serialization writer to use to serialize this model
|
|
27
|
+
*/
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
export function serializeChapterInput(writer, chapterInput = {}, isSerializingDerivedType = false) {
|
|
30
|
+
if (!chapterInput || isSerializingDerivedType) {
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
writer.writeNumberValue("start_time_sec", chapterInput.startTimeSec);
|
|
34
|
+
writer.writeStringValue("title", chapterInput.title);
|
|
35
|
+
writer.writeAdditionalData(chapterInput.additionalData);
|
|
36
|
+
}
|
|
37
|
+
/* tslint:enable */
|
|
38
|
+
/* eslint-enable */
|
|
@@ -0,0 +1,548 @@
|
|
|
1
|
+
import { PlanType, VideoQuality } from './github_com_rixlhq_api_db_sqlc/index.js';
|
|
2
|
+
import { type ChapterInput } from './github_com_rixlhq_api_internal_videos_types/index.js';
|
|
3
|
+
import { type VideoResponse } from './github_com_rixlhq_api_internal_videos/index.js';
|
|
4
|
+
import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions';
|
|
5
|
+
export interface AudioTrack extends AdditionalDataHolder, Parsable {
|
|
6
|
+
/**
|
|
7
|
+
* The created_at property
|
|
8
|
+
*/
|
|
9
|
+
createdAt?: string | null;
|
|
10
|
+
/**
|
|
11
|
+
* The format property
|
|
12
|
+
*/
|
|
13
|
+
format?: string | null;
|
|
14
|
+
/**
|
|
15
|
+
* The id property
|
|
16
|
+
*/
|
|
17
|
+
id?: string | null;
|
|
18
|
+
/**
|
|
19
|
+
* The label property
|
|
20
|
+
*/
|
|
21
|
+
label?: string | null;
|
|
22
|
+
/**
|
|
23
|
+
* The language_code property
|
|
24
|
+
*/
|
|
25
|
+
languageCode?: string | null;
|
|
26
|
+
/**
|
|
27
|
+
* The name property
|
|
28
|
+
*/
|
|
29
|
+
name?: string | null;
|
|
30
|
+
/**
|
|
31
|
+
* The size property
|
|
32
|
+
*/
|
|
33
|
+
size?: number | null;
|
|
34
|
+
/**
|
|
35
|
+
* The url property
|
|
36
|
+
*/
|
|
37
|
+
url?: string | null;
|
|
38
|
+
/**
|
|
39
|
+
* The video_id property
|
|
40
|
+
*/
|
|
41
|
+
videoId?: string | null;
|
|
42
|
+
}
|
|
43
|
+
export interface AudioTrackDelete extends AdditionalDataHolder, Parsable {
|
|
44
|
+
/**
|
|
45
|
+
* The message property
|
|
46
|
+
*/
|
|
47
|
+
message?: string | null;
|
|
48
|
+
/**
|
|
49
|
+
* The status property
|
|
50
|
+
*/
|
|
51
|
+
status?: string | null;
|
|
52
|
+
}
|
|
53
|
+
export interface Chapter extends AdditionalDataHolder, Parsable {
|
|
54
|
+
/**
|
|
55
|
+
* The duration_label property
|
|
56
|
+
*/
|
|
57
|
+
durationLabel?: string | null;
|
|
58
|
+
/**
|
|
59
|
+
* The end_time_sec property
|
|
60
|
+
*/
|
|
61
|
+
endTimeSec?: number | null;
|
|
62
|
+
/**
|
|
63
|
+
* The start_time_sec property
|
|
64
|
+
*/
|
|
65
|
+
startTimeSec?: number | null;
|
|
66
|
+
/**
|
|
67
|
+
* The title property
|
|
68
|
+
*/
|
|
69
|
+
title?: string | null;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
73
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
74
|
+
* @returns {AudioTrackDelete}
|
|
75
|
+
*/
|
|
76
|
+
export declare function createAudioTrackDeleteFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
77
|
+
/**
|
|
78
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
79
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
80
|
+
* @returns {AudioTrack}
|
|
81
|
+
*/
|
|
82
|
+
export declare function createAudioTrackFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
83
|
+
/**
|
|
84
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
85
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
86
|
+
* @returns {Chapter}
|
|
87
|
+
*/
|
|
88
|
+
export declare function createChapterFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
89
|
+
/**
|
|
90
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
91
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
92
|
+
* @returns {File}
|
|
93
|
+
*/
|
|
94
|
+
export declare function createFileFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
95
|
+
/**
|
|
96
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
97
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
98
|
+
* @returns {Image}
|
|
99
|
+
*/
|
|
100
|
+
export declare function createImageFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
101
|
+
/**
|
|
102
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
103
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
104
|
+
* @returns {Post}
|
|
105
|
+
*/
|
|
106
|
+
export declare function createPostFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
107
|
+
/**
|
|
108
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
109
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
110
|
+
* @returns {SubtitleDelete}
|
|
111
|
+
*/
|
|
112
|
+
export declare function createSubtitleDeleteFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
113
|
+
/**
|
|
114
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
115
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
116
|
+
* @returns {Subtitle}
|
|
117
|
+
*/
|
|
118
|
+
export declare function createSubtitleFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
119
|
+
/**
|
|
120
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
121
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
122
|
+
* @returns {UpdateChaptersRequest}
|
|
123
|
+
*/
|
|
124
|
+
export declare function createUpdateChaptersRequestFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
125
|
+
/**
|
|
126
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
127
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
128
|
+
* @returns {UpdateChaptersResponse}
|
|
129
|
+
*/
|
|
130
|
+
export declare function createUpdateChaptersResponseFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
131
|
+
/**
|
|
132
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
133
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
134
|
+
* @returns {Video}
|
|
135
|
+
*/
|
|
136
|
+
export declare function createVideoFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
137
|
+
/**
|
|
138
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
139
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
140
|
+
* @returns {VideoUploadInitRequest}
|
|
141
|
+
*/
|
|
142
|
+
export declare function createVideoUploadInitRequestFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
143
|
+
/**
|
|
144
|
+
* The deserialization information for the current model
|
|
145
|
+
* @param AudioTrack The instance to deserialize into.
|
|
146
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
147
|
+
*/
|
|
148
|
+
export declare function deserializeIntoAudioTrack(audioTrack?: Partial<AudioTrack> | undefined): Record<string, (node: ParseNode) => void>;
|
|
149
|
+
/**
|
|
150
|
+
* The deserialization information for the current model
|
|
151
|
+
* @param AudioTrackDelete The instance to deserialize into.
|
|
152
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
153
|
+
*/
|
|
154
|
+
export declare function deserializeIntoAudioTrackDelete(audioTrackDelete?: Partial<AudioTrackDelete> | undefined): Record<string, (node: ParseNode) => void>;
|
|
155
|
+
/**
|
|
156
|
+
* The deserialization information for the current model
|
|
157
|
+
* @param Chapter The instance to deserialize into.
|
|
158
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
159
|
+
*/
|
|
160
|
+
export declare function deserializeIntoChapter(chapter?: Partial<Chapter> | undefined): Record<string, (node: ParseNode) => void>;
|
|
161
|
+
/**
|
|
162
|
+
* The deserialization information for the current model
|
|
163
|
+
* @param File The instance to deserialize into.
|
|
164
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
165
|
+
*/
|
|
166
|
+
export declare function deserializeIntoFile(file?: Partial<File> | undefined): Record<string, (node: ParseNode) => void>;
|
|
167
|
+
/**
|
|
168
|
+
* The deserialization information for the current model
|
|
169
|
+
* @param Image The instance to deserialize into.
|
|
170
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
171
|
+
*/
|
|
172
|
+
export declare function deserializeIntoImage(image?: Partial<Image> | undefined): Record<string, (node: ParseNode) => void>;
|
|
173
|
+
/**
|
|
174
|
+
* The deserialization information for the current model
|
|
175
|
+
* @param Post The instance to deserialize into.
|
|
176
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
177
|
+
*/
|
|
178
|
+
export declare function deserializeIntoPost(post?: Partial<Post> | undefined): Record<string, (node: ParseNode) => void>;
|
|
179
|
+
/**
|
|
180
|
+
* The deserialization information for the current model
|
|
181
|
+
* @param Subtitle The instance to deserialize into.
|
|
182
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
183
|
+
*/
|
|
184
|
+
export declare function deserializeIntoSubtitle(subtitle?: Partial<Subtitle> | undefined): Record<string, (node: ParseNode) => void>;
|
|
185
|
+
/**
|
|
186
|
+
* The deserialization information for the current model
|
|
187
|
+
* @param SubtitleDelete The instance to deserialize into.
|
|
188
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
189
|
+
*/
|
|
190
|
+
export declare function deserializeIntoSubtitleDelete(subtitleDelete?: Partial<SubtitleDelete> | undefined): Record<string, (node: ParseNode) => void>;
|
|
191
|
+
/**
|
|
192
|
+
* The deserialization information for the current model
|
|
193
|
+
* @param UpdateChaptersRequest The instance to deserialize into.
|
|
194
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
195
|
+
*/
|
|
196
|
+
export declare function deserializeIntoUpdateChaptersRequest(updateChaptersRequest?: Partial<UpdateChaptersRequest> | undefined): Record<string, (node: ParseNode) => void>;
|
|
197
|
+
/**
|
|
198
|
+
* The deserialization information for the current model
|
|
199
|
+
* @param UpdateChaptersResponse The instance to deserialize into.
|
|
200
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
201
|
+
*/
|
|
202
|
+
export declare function deserializeIntoUpdateChaptersResponse(updateChaptersResponse?: Partial<UpdateChaptersResponse> | undefined): Record<string, (node: ParseNode) => void>;
|
|
203
|
+
/**
|
|
204
|
+
* The deserialization information for the current model
|
|
205
|
+
* @param Video The instance to deserialize into.
|
|
206
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
207
|
+
*/
|
|
208
|
+
export declare function deserializeIntoVideo(video?: Partial<Video> | undefined): Record<string, (node: ParseNode) => void>;
|
|
209
|
+
/**
|
|
210
|
+
* The deserialization information for the current model
|
|
211
|
+
* @param VideoUploadInitRequest The instance to deserialize into.
|
|
212
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
213
|
+
*/
|
|
214
|
+
export declare function deserializeIntoVideoUploadInitRequest(videoUploadInitRequest?: Partial<VideoUploadInitRequest> | undefined): Record<string, (node: ParseNode) => void>;
|
|
215
|
+
export interface File extends AdditionalDataHolder, Parsable {
|
|
216
|
+
/**
|
|
217
|
+
* The created_at property
|
|
218
|
+
*/
|
|
219
|
+
createdAt?: string | null;
|
|
220
|
+
/**
|
|
221
|
+
* The format property
|
|
222
|
+
*/
|
|
223
|
+
format?: string | null;
|
|
224
|
+
/**
|
|
225
|
+
* The id property
|
|
226
|
+
*/
|
|
227
|
+
id?: string | null;
|
|
228
|
+
/**
|
|
229
|
+
* The name property
|
|
230
|
+
*/
|
|
231
|
+
name?: string | null;
|
|
232
|
+
/**
|
|
233
|
+
* The project_id property
|
|
234
|
+
*/
|
|
235
|
+
projectId?: string | null;
|
|
236
|
+
/**
|
|
237
|
+
* The size property
|
|
238
|
+
*/
|
|
239
|
+
size?: number | null;
|
|
240
|
+
/**
|
|
241
|
+
* The status property
|
|
242
|
+
*/
|
|
243
|
+
status?: FileStatus | null;
|
|
244
|
+
/**
|
|
245
|
+
* The updated_at property
|
|
246
|
+
*/
|
|
247
|
+
updatedAt?: string | null;
|
|
248
|
+
/**
|
|
249
|
+
* The url property
|
|
250
|
+
*/
|
|
251
|
+
url?: string | null;
|
|
252
|
+
}
|
|
253
|
+
export type FileStatus = (typeof FileStatusObject)[keyof typeof FileStatusObject];
|
|
254
|
+
export interface Image extends AdditionalDataHolder, Parsable {
|
|
255
|
+
/**
|
|
256
|
+
* The attached_to_video property
|
|
257
|
+
*/
|
|
258
|
+
attachedToVideo?: boolean | null;
|
|
259
|
+
/**
|
|
260
|
+
* The file property
|
|
261
|
+
*/
|
|
262
|
+
file?: File | null;
|
|
263
|
+
/**
|
|
264
|
+
* The height property
|
|
265
|
+
*/
|
|
266
|
+
height?: number | null;
|
|
267
|
+
/**
|
|
268
|
+
* The id property
|
|
269
|
+
*/
|
|
270
|
+
id?: string | null;
|
|
271
|
+
/**
|
|
272
|
+
* The thumbhash property
|
|
273
|
+
*/
|
|
274
|
+
thumbhash?: string | null;
|
|
275
|
+
/**
|
|
276
|
+
* The width property
|
|
277
|
+
*/
|
|
278
|
+
width?: number | null;
|
|
279
|
+
}
|
|
280
|
+
export interface Post extends AdditionalDataHolder, Parsable {
|
|
281
|
+
/**
|
|
282
|
+
* The created_at property
|
|
283
|
+
*/
|
|
284
|
+
createdAt?: string | null;
|
|
285
|
+
/**
|
|
286
|
+
* The creator_id property
|
|
287
|
+
*/
|
|
288
|
+
creatorId?: string | null;
|
|
289
|
+
/**
|
|
290
|
+
* The description property
|
|
291
|
+
*/
|
|
292
|
+
description?: string | null;
|
|
293
|
+
/**
|
|
294
|
+
* The feed_id property
|
|
295
|
+
*/
|
|
296
|
+
feedId?: string | null;
|
|
297
|
+
/**
|
|
298
|
+
* The id property
|
|
299
|
+
*/
|
|
300
|
+
id?: string | null;
|
|
301
|
+
/**
|
|
302
|
+
* The image property
|
|
303
|
+
*/
|
|
304
|
+
image?: Image | null;
|
|
305
|
+
/**
|
|
306
|
+
* The plan_type property
|
|
307
|
+
*/
|
|
308
|
+
planType?: PlanType | null;
|
|
309
|
+
/**
|
|
310
|
+
* The type property
|
|
311
|
+
*/
|
|
312
|
+
type?: PostType | null;
|
|
313
|
+
/**
|
|
314
|
+
* The updated_at property
|
|
315
|
+
*/
|
|
316
|
+
updatedAt?: string | null;
|
|
317
|
+
/**
|
|
318
|
+
* The video property
|
|
319
|
+
*/
|
|
320
|
+
video?: VideoResponse | null;
|
|
321
|
+
}
|
|
322
|
+
export type PostType = (typeof PostTypeObject)[keyof typeof PostTypeObject];
|
|
323
|
+
/**
|
|
324
|
+
* Serializes information the current object
|
|
325
|
+
* @param AudioTrack The instance to serialize from.
|
|
326
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
327
|
+
* @param writer Serialization writer to use to serialize this model
|
|
328
|
+
*/
|
|
329
|
+
export declare function serializeAudioTrack(writer: SerializationWriter, audioTrack?: Partial<AudioTrack> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
330
|
+
/**
|
|
331
|
+
* Serializes information the current object
|
|
332
|
+
* @param AudioTrackDelete The instance to serialize from.
|
|
333
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
334
|
+
* @param writer Serialization writer to use to serialize this model
|
|
335
|
+
*/
|
|
336
|
+
export declare function serializeAudioTrackDelete(writer: SerializationWriter, audioTrackDelete?: Partial<AudioTrackDelete> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
337
|
+
/**
|
|
338
|
+
* Serializes information the current object
|
|
339
|
+
* @param Chapter The instance to serialize from.
|
|
340
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
341
|
+
* @param writer Serialization writer to use to serialize this model
|
|
342
|
+
*/
|
|
343
|
+
export declare function serializeChapter(writer: SerializationWriter, chapter?: Partial<Chapter> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
344
|
+
/**
|
|
345
|
+
* Serializes information the current object
|
|
346
|
+
* @param File The instance to serialize from.
|
|
347
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
348
|
+
* @param writer Serialization writer to use to serialize this model
|
|
349
|
+
*/
|
|
350
|
+
export declare function serializeFile(writer: SerializationWriter, file?: Partial<File> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
351
|
+
/**
|
|
352
|
+
* Serializes information the current object
|
|
353
|
+
* @param Image The instance to serialize from.
|
|
354
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
355
|
+
* @param writer Serialization writer to use to serialize this model
|
|
356
|
+
*/
|
|
357
|
+
export declare function serializeImage(writer: SerializationWriter, image?: Partial<Image> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
358
|
+
/**
|
|
359
|
+
* Serializes information the current object
|
|
360
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
361
|
+
* @param Post The instance to serialize from.
|
|
362
|
+
* @param writer Serialization writer to use to serialize this model
|
|
363
|
+
*/
|
|
364
|
+
export declare function serializePost(writer: SerializationWriter, post?: Partial<Post> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
365
|
+
/**
|
|
366
|
+
* Serializes information the current object
|
|
367
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
368
|
+
* @param Subtitle The instance to serialize from.
|
|
369
|
+
* @param writer Serialization writer to use to serialize this model
|
|
370
|
+
*/
|
|
371
|
+
export declare function serializeSubtitle(writer: SerializationWriter, subtitle?: Partial<Subtitle> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
372
|
+
/**
|
|
373
|
+
* Serializes information the current object
|
|
374
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
375
|
+
* @param SubtitleDelete The instance to serialize from.
|
|
376
|
+
* @param writer Serialization writer to use to serialize this model
|
|
377
|
+
*/
|
|
378
|
+
export declare function serializeSubtitleDelete(writer: SerializationWriter, subtitleDelete?: Partial<SubtitleDelete> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
379
|
+
/**
|
|
380
|
+
* Serializes information the current object
|
|
381
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
382
|
+
* @param UpdateChaptersRequest The instance to serialize from.
|
|
383
|
+
* @param writer Serialization writer to use to serialize this model
|
|
384
|
+
*/
|
|
385
|
+
export declare function serializeUpdateChaptersRequest(writer: SerializationWriter, updateChaptersRequest?: Partial<UpdateChaptersRequest> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
386
|
+
/**
|
|
387
|
+
* Serializes information the current object
|
|
388
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
389
|
+
* @param UpdateChaptersResponse The instance to serialize from.
|
|
390
|
+
* @param writer Serialization writer to use to serialize this model
|
|
391
|
+
*/
|
|
392
|
+
export declare function serializeUpdateChaptersResponse(writer: SerializationWriter, updateChaptersResponse?: Partial<UpdateChaptersResponse> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
393
|
+
/**
|
|
394
|
+
* Serializes information the current object
|
|
395
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
396
|
+
* @param Video The instance to serialize from.
|
|
397
|
+
* @param writer Serialization writer to use to serialize this model
|
|
398
|
+
*/
|
|
399
|
+
export declare function serializeVideo(writer: SerializationWriter, video?: Partial<Video> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
400
|
+
/**
|
|
401
|
+
* Serializes information the current object
|
|
402
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
403
|
+
* @param VideoUploadInitRequest The instance to serialize from.
|
|
404
|
+
* @param writer Serialization writer to use to serialize this model
|
|
405
|
+
*/
|
|
406
|
+
export declare function serializeVideoUploadInitRequest(writer: SerializationWriter, videoUploadInitRequest?: Partial<VideoUploadInitRequest> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
407
|
+
export interface Subtitle extends AdditionalDataHolder, Parsable {
|
|
408
|
+
/**
|
|
409
|
+
* The created_at property
|
|
410
|
+
*/
|
|
411
|
+
createdAt?: string | null;
|
|
412
|
+
/**
|
|
413
|
+
* The id property
|
|
414
|
+
*/
|
|
415
|
+
id?: string | null;
|
|
416
|
+
/**
|
|
417
|
+
* The label property
|
|
418
|
+
*/
|
|
419
|
+
label?: string | null;
|
|
420
|
+
/**
|
|
421
|
+
* The language_code property
|
|
422
|
+
*/
|
|
423
|
+
languageCode?: string | null;
|
|
424
|
+
/**
|
|
425
|
+
* The name property
|
|
426
|
+
*/
|
|
427
|
+
name?: string | null;
|
|
428
|
+
/**
|
|
429
|
+
* The size property
|
|
430
|
+
*/
|
|
431
|
+
size?: number | null;
|
|
432
|
+
/**
|
|
433
|
+
* The url property
|
|
434
|
+
*/
|
|
435
|
+
url?: string | null;
|
|
436
|
+
/**
|
|
437
|
+
* The video_id property
|
|
438
|
+
*/
|
|
439
|
+
videoId?: string | null;
|
|
440
|
+
}
|
|
441
|
+
export interface SubtitleDelete extends AdditionalDataHolder, Parsable {
|
|
442
|
+
/**
|
|
443
|
+
* The message property
|
|
444
|
+
*/
|
|
445
|
+
message?: string | null;
|
|
446
|
+
/**
|
|
447
|
+
* The status property
|
|
448
|
+
*/
|
|
449
|
+
status?: string | null;
|
|
450
|
+
}
|
|
451
|
+
/**
|
|
452
|
+
* Chapters array
|
|
453
|
+
*/
|
|
454
|
+
export interface UpdateChaptersRequest extends AdditionalDataHolder, Parsable {
|
|
455
|
+
/**
|
|
456
|
+
* The chapters property
|
|
457
|
+
*/
|
|
458
|
+
chapters?: ChapterInput[] | null;
|
|
459
|
+
}
|
|
460
|
+
export interface UpdateChaptersResponse extends AdditionalDataHolder, Parsable {
|
|
461
|
+
/**
|
|
462
|
+
* The chapters property
|
|
463
|
+
*/
|
|
464
|
+
chapters?: Chapter[] | null;
|
|
465
|
+
/**
|
|
466
|
+
* The video_id property
|
|
467
|
+
*/
|
|
468
|
+
videoId?: string | null;
|
|
469
|
+
}
|
|
470
|
+
export interface Video extends AdditionalDataHolder, Parsable {
|
|
471
|
+
/**
|
|
472
|
+
* The bitrate property
|
|
473
|
+
*/
|
|
474
|
+
bitrate?: number | null;
|
|
475
|
+
/**
|
|
476
|
+
* The chapters property
|
|
477
|
+
*/
|
|
478
|
+
chapters?: Chapter[] | null;
|
|
479
|
+
/**
|
|
480
|
+
* The codec property
|
|
481
|
+
*/
|
|
482
|
+
codec?: string | null;
|
|
483
|
+
/**
|
|
484
|
+
* The duration property
|
|
485
|
+
*/
|
|
486
|
+
duration?: number | null;
|
|
487
|
+
/**
|
|
488
|
+
* The file property
|
|
489
|
+
*/
|
|
490
|
+
file?: File | null;
|
|
491
|
+
/**
|
|
492
|
+
* The framerate property
|
|
493
|
+
*/
|
|
494
|
+
framerate?: string | null;
|
|
495
|
+
/**
|
|
496
|
+
* The hdr property
|
|
497
|
+
*/
|
|
498
|
+
hdr?: boolean | null;
|
|
499
|
+
/**
|
|
500
|
+
* The height property
|
|
501
|
+
*/
|
|
502
|
+
height?: number | null;
|
|
503
|
+
/**
|
|
504
|
+
* The id property
|
|
505
|
+
*/
|
|
506
|
+
id?: string | null;
|
|
507
|
+
/**
|
|
508
|
+
* The plan_type property
|
|
509
|
+
*/
|
|
510
|
+
planType?: PlanType | null;
|
|
511
|
+
/**
|
|
512
|
+
* The poster property
|
|
513
|
+
*/
|
|
514
|
+
poster?: Image | null;
|
|
515
|
+
/**
|
|
516
|
+
* The width property
|
|
517
|
+
*/
|
|
518
|
+
width?: number | null;
|
|
519
|
+
}
|
|
520
|
+
/**
|
|
521
|
+
* Video upload initialization request
|
|
522
|
+
*/
|
|
523
|
+
export interface VideoUploadInitRequest extends AdditionalDataHolder, Parsable {
|
|
524
|
+
/**
|
|
525
|
+
* The file_name property
|
|
526
|
+
*/
|
|
527
|
+
fileName?: string | null;
|
|
528
|
+
/**
|
|
529
|
+
* The image_format property
|
|
530
|
+
*/
|
|
531
|
+
imageFormat?: string | null;
|
|
532
|
+
/**
|
|
533
|
+
* The video_quality property
|
|
534
|
+
*/
|
|
535
|
+
videoQuality?: VideoQuality | null;
|
|
536
|
+
}
|
|
537
|
+
export declare const FileStatusObject: {
|
|
538
|
+
readonly Uploading: "uploading";
|
|
539
|
+
readonly Uploaded: "uploaded";
|
|
540
|
+
readonly Processing: "processing";
|
|
541
|
+
readonly Preparing: "preparing";
|
|
542
|
+
readonly Ready: "ready";
|
|
543
|
+
readonly ErrorEscaped: "error";
|
|
544
|
+
};
|
|
545
|
+
export declare const PostTypeObject: {
|
|
546
|
+
readonly Image: "image";
|
|
547
|
+
readonly Video: "video";
|
|
548
|
+
};
|