@rixl/sdk 0.1.0 → 0.2.2
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/README.md +163 -88
- package/dist/index.d.ts +1665 -5
- package/dist/index.js +1021 -5
- package/dist/index.js.map +1 -0
- package/package.json +34 -30
- package/dist/feeds/index.d.ts +0 -21
- package/dist/feeds/index.js +0 -21
- package/dist/feeds/item/creators/index.d.ts +0 -21
- package/dist/feeds/item/creators/index.js +0 -20
- package/dist/feeds/item/creators/item/index.d.ts +0 -42
- package/dist/feeds/item/creators/item/index.js +0 -28
- package/dist/feeds/item/index.d.ts +0 -58
- package/dist/feeds/item/index.js +0 -44
- package/dist/feeds/item/item/index.d.ts +0 -29
- package/dist/feeds/item/item/index.js +0 -28
- package/dist/images/index.d.ts +0 -68
- package/dist/images/index.js +0 -46
- package/dist/images/item/index.d.ts +0 -48
- package/dist/images/item/index.js +0 -43
- package/dist/images/upload/complete/index.d.ts +0 -35
- package/dist/images/upload/complete/index.js +0 -36
- package/dist/images/upload/index.d.ts +0 -24
- package/dist/images/upload/index.js +0 -24
- package/dist/images/upload/init/index.d.ts +0 -33
- package/dist/images/upload/init/index.js +0 -33
- package/dist/models/github_com_rixlhq_api_db_sqlc/index.d.ts +0 -13
- package/dist/models/github_com_rixlhq_api_db_sqlc/index.js +0 -16
- package/dist/models/github_com_rixlhq_api_internal_errors/index.d.ts +0 -37
- package/dist/models/github_com_rixlhq_api_internal_errors/index.js +0 -40
- package/dist/models/github_com_rixlhq_api_internal_videos/index.d.ts +0 -72
- package/dist/models/github_com_rixlhq_api_internal_videos/index.js +0 -65
- package/dist/models/github_com_rixlhq_api_internal_videos_handler_upload/index.d.ts +0 -70
- package/dist/models/github_com_rixlhq_api_internal_videos_handler_upload/index.js +0 -78
- package/dist/models/github_com_rixlhq_api_internal_videos_types/index.d.ts +0 -30
- package/dist/models/github_com_rixlhq_api_internal_videos_types/index.js +0 -38
- package/dist/models/index.d.ts +0 -548
- package/dist/models/index.js +0 -543
- package/dist/models/internal_images_handler/index.d.ts +0 -98
- package/dist/models/internal_images_handler/index.js +0 -112
- package/dist/models/internal_videos_handler_subtitles/index.d.ts +0 -30
- package/dist/models/internal_videos_handler_subtitles/index.js +0 -38
- package/dist/models/pagination/index.d.ts +0 -125
- package/dist/models/pagination/index.js +0 -153
- package/dist/rixlClient.d.ts +0 -34
- package/dist/rixlClient.js +0 -69
- package/dist/videos/index.d.ts +0 -73
- package/dist/videos/index.js +0 -52
- package/dist/videos/item/audioTracks/index.d.ts +0 -38
- package/dist/videos/item/audioTracks/index.js +0 -33
- package/dist/videos/item/audioTracks/item/index.d.ts +0 -70
- package/dist/videos/item/audioTracks/item/index.js +0 -67
- package/dist/videos/item/chapters/index.d.ts +0 -50
- package/dist/videos/item/chapters/index.js +0 -46
- package/dist/videos/item/delete/index.d.ts +0 -30
- package/dist/videos/item/delete/index.js +0 -28
- package/dist/videos/item/index.d.ts +0 -61
- package/dist/videos/item/index.js +0 -63
- package/dist/videos/item/subtitles/index.d.ts +0 -38
- package/dist/videos/item/subtitles/index.js +0 -33
- package/dist/videos/item/subtitles/item/index.d.ts +0 -70
- package/dist/videos/item/subtitles/item/index.js +0 -67
- package/dist/videos/item/thumbnail/index.d.ts +0 -59
- package/dist/videos/item/thumbnail/index.js +0 -68
- package/dist/videos/languages/index.d.ts +0 -27
- package/dist/videos/languages/index.js +0 -22
- package/dist/videos/upload/complete/index.d.ts +0 -35
- package/dist/videos/upload/complete/index.js +0 -36
- package/dist/videos/upload/index.d.ts +0 -24
- package/dist/videos/upload/index.js +0 -24
- package/dist/videos/upload/init/index.d.ts +0 -34
- package/dist/videos/upload/init/index.js +0 -35
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,1665 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
//#region src/core/auth.gen.d.ts
|
|
2
|
+
type AuthToken = string | undefined;
|
|
3
|
+
interface Auth {
|
|
4
|
+
/**
|
|
5
|
+
* Which part of the request do we use to send the auth?
|
|
6
|
+
*
|
|
7
|
+
* @default 'header'
|
|
8
|
+
*/
|
|
9
|
+
in?: "header" | "query" | "cookie";
|
|
10
|
+
/**
|
|
11
|
+
* Header or query parameter name.
|
|
12
|
+
*
|
|
13
|
+
* @default 'Authorization'
|
|
14
|
+
*/
|
|
15
|
+
name?: string;
|
|
16
|
+
scheme?: "basic" | "bearer";
|
|
17
|
+
type: "apiKey" | "http";
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
20
|
+
//#region src/core/pathSerializer.gen.d.ts
|
|
21
|
+
interface SerializerOptions<T> {
|
|
22
|
+
/**
|
|
23
|
+
* @default true
|
|
24
|
+
*/
|
|
25
|
+
explode: boolean;
|
|
26
|
+
style: T;
|
|
27
|
+
}
|
|
28
|
+
type ArrayStyle = "form" | "spaceDelimited" | "pipeDelimited";
|
|
29
|
+
type ObjectStyle = "form" | "deepObject";
|
|
30
|
+
//#endregion
|
|
31
|
+
//#region src/core/bodySerializer.gen.d.ts
|
|
32
|
+
type QuerySerializer = (query: Record<string, unknown>) => string;
|
|
33
|
+
type BodySerializer = (body: unknown) => unknown;
|
|
34
|
+
type QuerySerializerOptionsObject = {
|
|
35
|
+
allowReserved?: boolean;
|
|
36
|
+
array?: Partial<SerializerOptions<ArrayStyle>>;
|
|
37
|
+
object?: Partial<SerializerOptions<ObjectStyle>>;
|
|
38
|
+
};
|
|
39
|
+
type QuerySerializerOptions = QuerySerializerOptionsObject & {
|
|
40
|
+
/**
|
|
41
|
+
* Per-parameter serialization overrides. When provided, these settings
|
|
42
|
+
* override the global array/object settings for specific parameter names.
|
|
43
|
+
*/
|
|
44
|
+
parameters?: Record<string, QuerySerializerOptionsObject>;
|
|
45
|
+
};
|
|
46
|
+
//#endregion
|
|
47
|
+
//#region src/core/types.gen.d.ts
|
|
48
|
+
type HttpMethod = "connect" | "delete" | "get" | "head" | "options" | "patch" | "post" | "put" | "trace";
|
|
49
|
+
type Client$1<RequestFn = never, Config = unknown, MethodFn = never, BuildUrlFn = never, SseFn = never> = {
|
|
50
|
+
/**
|
|
51
|
+
* Returns the final request URL.
|
|
52
|
+
*/
|
|
53
|
+
buildUrl: BuildUrlFn;
|
|
54
|
+
getConfig: () => Config;
|
|
55
|
+
request: RequestFn;
|
|
56
|
+
setConfig: (config: Config) => Config;
|
|
57
|
+
} & { [K in HttpMethod]: MethodFn } & ([SseFn] extends [never] ? {
|
|
58
|
+
sse?: never;
|
|
59
|
+
} : {
|
|
60
|
+
sse: { [K in HttpMethod]: SseFn };
|
|
61
|
+
});
|
|
62
|
+
interface Config$1 {
|
|
63
|
+
/**
|
|
64
|
+
* Auth token or a function returning auth token. The resolved value will be
|
|
65
|
+
* added to the request payload as defined by its `security` array.
|
|
66
|
+
*/
|
|
67
|
+
auth?: ((auth: Auth) => Promise<AuthToken> | AuthToken) | AuthToken;
|
|
68
|
+
/**
|
|
69
|
+
* A function for serializing request body parameter. By default,
|
|
70
|
+
* {@link JSON.stringify()} will be used.
|
|
71
|
+
*/
|
|
72
|
+
bodySerializer?: BodySerializer | null;
|
|
73
|
+
/**
|
|
74
|
+
* An object containing any HTTP headers that you want to pre-populate your
|
|
75
|
+
* `Headers` object with.
|
|
76
|
+
*
|
|
77
|
+
* {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more}
|
|
78
|
+
*/
|
|
79
|
+
headers?: RequestInit["headers"] | Record<string, string | number | boolean | (string | number | boolean)[] | null | undefined | unknown>;
|
|
80
|
+
/**
|
|
81
|
+
* The request method.
|
|
82
|
+
*
|
|
83
|
+
* {@link https://developer.mozilla.org/docs/Web/API/fetch#method See more}
|
|
84
|
+
*/
|
|
85
|
+
method?: Uppercase<HttpMethod>;
|
|
86
|
+
/**
|
|
87
|
+
* A function for serializing request query parameters. By default, arrays
|
|
88
|
+
* will be exploded in form style, objects will be exploded in deepObject
|
|
89
|
+
* style, and reserved characters are percent-encoded.
|
|
90
|
+
*
|
|
91
|
+
* This method will have no effect if the native `paramsSerializer()` Axios
|
|
92
|
+
* API function is used.
|
|
93
|
+
*
|
|
94
|
+
* {@link https://swagger.io/docs/specification/serialization/#query View examples}
|
|
95
|
+
*/
|
|
96
|
+
querySerializer?: QuerySerializer | QuerySerializerOptions;
|
|
97
|
+
/**
|
|
98
|
+
* A function validating request data. This is useful if you want to ensure
|
|
99
|
+
* the request conforms to the desired shape, so it can be safely sent to
|
|
100
|
+
* the server.
|
|
101
|
+
*/
|
|
102
|
+
requestValidator?: (data: unknown) => Promise<unknown>;
|
|
103
|
+
/**
|
|
104
|
+
* A function transforming response data before it's returned. This is useful
|
|
105
|
+
* for post-processing data, e.g., converting ISO strings into Date objects.
|
|
106
|
+
*/
|
|
107
|
+
responseTransformer?: (data: unknown) => Promise<unknown>;
|
|
108
|
+
/**
|
|
109
|
+
* A function validating response data. This is useful if you want to ensure
|
|
110
|
+
* the response conforms to the desired shape, so it can be safely passed to
|
|
111
|
+
* the transformers and returned to the user.
|
|
112
|
+
*/
|
|
113
|
+
responseValidator?: (data: unknown) => Promise<unknown>;
|
|
114
|
+
}
|
|
115
|
+
//#endregion
|
|
116
|
+
//#region src/core/serverSentEvents.gen.d.ts
|
|
117
|
+
type ServerSentEventsOptions<TData = unknown> = Omit<RequestInit, "method"> & Pick<Config$1, "method" | "responseTransformer" | "responseValidator"> & {
|
|
118
|
+
/**
|
|
119
|
+
* Fetch API implementation. You can use this option to provide a custom
|
|
120
|
+
* fetch instance.
|
|
121
|
+
*
|
|
122
|
+
* @default globalThis.fetch
|
|
123
|
+
*/
|
|
124
|
+
fetch?: typeof fetch;
|
|
125
|
+
/**
|
|
126
|
+
* Implementing clients can call request interceptors inside this hook.
|
|
127
|
+
*/
|
|
128
|
+
onRequest?: (url: string, init: RequestInit) => Promise<Request>;
|
|
129
|
+
/**
|
|
130
|
+
* Callback invoked when a network or parsing error occurs during streaming.
|
|
131
|
+
*
|
|
132
|
+
* This option applies only if the endpoint returns a stream of events.
|
|
133
|
+
*
|
|
134
|
+
* @param error The error that occurred.
|
|
135
|
+
*/
|
|
136
|
+
onSseError?: (error: unknown) => void;
|
|
137
|
+
/**
|
|
138
|
+
* Callback invoked when an event is streamed from the server.
|
|
139
|
+
*
|
|
140
|
+
* This option applies only if the endpoint returns a stream of events.
|
|
141
|
+
*
|
|
142
|
+
* @param event Event streamed from the server.
|
|
143
|
+
* @returns Nothing (void).
|
|
144
|
+
*/
|
|
145
|
+
onSseEvent?: (event: StreamEvent<TData>) => void;
|
|
146
|
+
serializedBody?: RequestInit["body"];
|
|
147
|
+
/**
|
|
148
|
+
* Default retry delay in milliseconds.
|
|
149
|
+
*
|
|
150
|
+
* This option applies only if the endpoint returns a stream of events.
|
|
151
|
+
*
|
|
152
|
+
* @default 3000
|
|
153
|
+
*/
|
|
154
|
+
sseDefaultRetryDelay?: number;
|
|
155
|
+
/**
|
|
156
|
+
* Maximum number of retry attempts before giving up.
|
|
157
|
+
*/
|
|
158
|
+
sseMaxRetryAttempts?: number;
|
|
159
|
+
/**
|
|
160
|
+
* Maximum retry delay in milliseconds.
|
|
161
|
+
*
|
|
162
|
+
* Applies only when exponential backoff is used.
|
|
163
|
+
*
|
|
164
|
+
* This option applies only if the endpoint returns a stream of events.
|
|
165
|
+
*
|
|
166
|
+
* @default 30000
|
|
167
|
+
*/
|
|
168
|
+
sseMaxRetryDelay?: number;
|
|
169
|
+
/**
|
|
170
|
+
* Optional sleep function for retry backoff.
|
|
171
|
+
*
|
|
172
|
+
* Defaults to using `setTimeout`.
|
|
173
|
+
*/
|
|
174
|
+
sseSleepFn?: (ms: number) => Promise<void>;
|
|
175
|
+
url: string;
|
|
176
|
+
};
|
|
177
|
+
interface StreamEvent<TData = unknown> {
|
|
178
|
+
data: TData;
|
|
179
|
+
event?: string;
|
|
180
|
+
id?: string;
|
|
181
|
+
retry?: number;
|
|
182
|
+
}
|
|
183
|
+
type ServerSentEventsResult<TData = unknown, TReturn = void, TNext = unknown> = {
|
|
184
|
+
stream: AsyncGenerator<TData extends Record<string, unknown> ? TData[keyof TData] : TData, TReturn, TNext>;
|
|
185
|
+
};
|
|
186
|
+
//#endregion
|
|
187
|
+
//#region src/client/utils.gen.d.ts
|
|
188
|
+
type ErrInterceptor<Err, Res, Req, Options> = (error: Err, /** response may be undefined due to a network error where no response object is produced */
|
|
189
|
+
|
|
190
|
+
response: Res | undefined, /** request may be undefined, because error may be from building the request object itself */
|
|
191
|
+
|
|
192
|
+
request: Req | undefined, options: Options) => Err | Promise<Err>;
|
|
193
|
+
type ReqInterceptor<Req, Options> = (request: Req, options: Options) => Req | Promise<Req>;
|
|
194
|
+
type ResInterceptor<Res, Req, Options> = (response: Res, request: Req, options: Options) => Res | Promise<Res>;
|
|
195
|
+
declare class Interceptors<Interceptor> {
|
|
196
|
+
fns: Array<Interceptor | null>;
|
|
197
|
+
clear(): void;
|
|
198
|
+
eject(id: number | Interceptor): void;
|
|
199
|
+
exists(id: number | Interceptor): boolean;
|
|
200
|
+
getInterceptorIndex(id: number | Interceptor): number;
|
|
201
|
+
update(id: number | Interceptor, fn: Interceptor): number | Interceptor | false;
|
|
202
|
+
use(fn: Interceptor): number;
|
|
203
|
+
}
|
|
204
|
+
interface Middleware<Req, Res, Err, Options> {
|
|
205
|
+
error: Interceptors<ErrInterceptor<Err, Res, Req, Options>>;
|
|
206
|
+
request: Interceptors<ReqInterceptor<Req, Options>>;
|
|
207
|
+
response: Interceptors<ResInterceptor<Res, Req, Options>>;
|
|
208
|
+
}
|
|
209
|
+
//#endregion
|
|
210
|
+
//#region src/client/types.gen.d.ts
|
|
211
|
+
type ResponseStyle = "data" | "fields";
|
|
212
|
+
interface Config<T extends ClientOptions$1 = ClientOptions$1> extends Omit<RequestInit, "body" | "headers" | "method">, Config$1 {
|
|
213
|
+
/**
|
|
214
|
+
* Base URL for all requests made by this client.
|
|
215
|
+
*/
|
|
216
|
+
baseUrl?: T["baseUrl"];
|
|
217
|
+
/**
|
|
218
|
+
* Fetch API implementation. You can use this option to provide a custom
|
|
219
|
+
* fetch instance.
|
|
220
|
+
*
|
|
221
|
+
* @default globalThis.fetch
|
|
222
|
+
*/
|
|
223
|
+
fetch?: typeof fetch;
|
|
224
|
+
/**
|
|
225
|
+
* Please don't use the Fetch client for Next.js applications. The `next`
|
|
226
|
+
* options won't have any effect.
|
|
227
|
+
*
|
|
228
|
+
* Install {@link https://www.npmjs.com/package/@hey-api/client-next `@hey-api/client-next`} instead.
|
|
229
|
+
*/
|
|
230
|
+
next?: never;
|
|
231
|
+
/**
|
|
232
|
+
* Return the response data parsed in a specified format. By default, `auto`
|
|
233
|
+
* will infer the appropriate method from the `Content-Type` response header.
|
|
234
|
+
* You can override this behavior with any of the {@link Body} methods.
|
|
235
|
+
* Select `stream` if you don't want to parse response data at all.
|
|
236
|
+
*
|
|
237
|
+
* @default 'auto'
|
|
238
|
+
*/
|
|
239
|
+
parseAs?: "arrayBuffer" | "auto" | "blob" | "formData" | "json" | "stream" | "text";
|
|
240
|
+
/**
|
|
241
|
+
* Should we return only data or multiple fields (data, error, response, etc.)?
|
|
242
|
+
*
|
|
243
|
+
* @default 'fields'
|
|
244
|
+
*/
|
|
245
|
+
responseStyle?: ResponseStyle;
|
|
246
|
+
/**
|
|
247
|
+
* Throw an error instead of returning it in the response?
|
|
248
|
+
*
|
|
249
|
+
* @default false
|
|
250
|
+
*/
|
|
251
|
+
throwOnError?: T["throwOnError"];
|
|
252
|
+
}
|
|
253
|
+
interface RequestOptions<TData = unknown, TResponseStyle extends ResponseStyle = "fields", ThrowOnError extends boolean = boolean, Url extends string = string> extends Config<{
|
|
254
|
+
responseStyle: TResponseStyle;
|
|
255
|
+
throwOnError: ThrowOnError;
|
|
256
|
+
}>, Pick<ServerSentEventsOptions<TData>, "onRequest" | "onSseError" | "onSseEvent" | "sseDefaultRetryDelay" | "sseMaxRetryAttempts" | "sseMaxRetryDelay"> {
|
|
257
|
+
/**
|
|
258
|
+
* Any body that you want to add to your request.
|
|
259
|
+
*
|
|
260
|
+
* {@link https://developer.mozilla.org/docs/Web/API/fetch#body}
|
|
261
|
+
*/
|
|
262
|
+
body?: unknown;
|
|
263
|
+
path?: Record<string, unknown>;
|
|
264
|
+
query?: Record<string, unknown>;
|
|
265
|
+
/**
|
|
266
|
+
* Security mechanism(s) to use for the request.
|
|
267
|
+
*/
|
|
268
|
+
security?: ReadonlyArray<Auth>;
|
|
269
|
+
url: Url;
|
|
270
|
+
}
|
|
271
|
+
interface ResolvedRequestOptions<TResponseStyle extends ResponseStyle = "fields", ThrowOnError extends boolean = boolean, Url extends string = string> extends RequestOptions<unknown, TResponseStyle, ThrowOnError, Url> {
|
|
272
|
+
headers: Headers;
|
|
273
|
+
serializedBody?: string;
|
|
274
|
+
}
|
|
275
|
+
type RequestResult<TData = unknown, TError = unknown, ThrowOnError extends boolean = boolean, TResponseStyle extends ResponseStyle = "fields"> = ThrowOnError extends true ? Promise<TResponseStyle extends "data" ? TData extends Record<string, unknown> ? TData[keyof TData] : TData : {
|
|
276
|
+
data: TData extends Record<string, unknown> ? TData[keyof TData] : TData;
|
|
277
|
+
request: Request;
|
|
278
|
+
response: Response;
|
|
279
|
+
}> : Promise<TResponseStyle extends "data" ? (TData extends Record<string, unknown> ? TData[keyof TData] : TData) | undefined : ({
|
|
280
|
+
data: TData extends Record<string, unknown> ? TData[keyof TData] : TData;
|
|
281
|
+
error: undefined;
|
|
282
|
+
} | {
|
|
283
|
+
data: undefined;
|
|
284
|
+
error: TError extends Record<string, unknown> ? TError[keyof TError] : TError;
|
|
285
|
+
}) & {
|
|
286
|
+
/** request may be undefined, because error may be from building the request object itself */request?: Request; /** response may be undefined, because error may be from building the request object itself or from a network error */
|
|
287
|
+
response?: Response;
|
|
288
|
+
}>;
|
|
289
|
+
interface ClientOptions$1 {
|
|
290
|
+
baseUrl?: string;
|
|
291
|
+
responseStyle?: ResponseStyle;
|
|
292
|
+
throwOnError?: boolean;
|
|
293
|
+
}
|
|
294
|
+
type MethodFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = "fields">(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, "method">) => RequestResult<TData, TError, ThrowOnError, TResponseStyle>;
|
|
295
|
+
type SseFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = "fields">(options: Omit<RequestOptions<never, TResponseStyle, ThrowOnError>, "method">) => Promise<ServerSentEventsResult<TData, TError>>;
|
|
296
|
+
type RequestFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = "fields">(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, "method"> & Pick<Required<RequestOptions<TData, TResponseStyle, ThrowOnError>>, "method">) => RequestResult<TData, TError, ThrowOnError, TResponseStyle>;
|
|
297
|
+
type BuildUrlFn = <TData extends {
|
|
298
|
+
body?: unknown;
|
|
299
|
+
path?: Record<string, unknown>;
|
|
300
|
+
query?: Record<string, unknown>;
|
|
301
|
+
url: string;
|
|
302
|
+
}>(options: TData & Options$1<TData>) => string;
|
|
303
|
+
type Client = Client$1<RequestFn, Config, MethodFn, BuildUrlFn, SseFn> & {
|
|
304
|
+
interceptors: Middleware<Request, Response, unknown, ResolvedRequestOptions>;
|
|
305
|
+
};
|
|
306
|
+
interface TDataShape {
|
|
307
|
+
body?: unknown;
|
|
308
|
+
headers?: unknown;
|
|
309
|
+
path?: unknown;
|
|
310
|
+
query?: unknown;
|
|
311
|
+
url: string;
|
|
312
|
+
}
|
|
313
|
+
type OmitKeys<T, K> = Pick<T, Exclude<keyof T, K>>;
|
|
314
|
+
type Options$1<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown, TResponseStyle extends ResponseStyle = "fields"> = OmitKeys<RequestOptions<TResponse, TResponseStyle, ThrowOnError>, "body" | "path" | "query" | "url"> & ([TData] extends [never] ? unknown : Omit<TData, "url">);
|
|
315
|
+
//#endregion
|
|
316
|
+
//#region src/types.gen.d.ts
|
|
317
|
+
type ClientOptions = {
|
|
318
|
+
baseUrl: `${string}://${string}` | (string & {});
|
|
319
|
+
};
|
|
320
|
+
type AudioTrack = {
|
|
321
|
+
created_at?: string;
|
|
322
|
+
format?: string;
|
|
323
|
+
id?: string;
|
|
324
|
+
label?: string;
|
|
325
|
+
language_code?: string;
|
|
326
|
+
name?: string;
|
|
327
|
+
size?: number;
|
|
328
|
+
url?: string;
|
|
329
|
+
video_id?: string;
|
|
330
|
+
};
|
|
331
|
+
type AudioTrackDelete = {
|
|
332
|
+
message?: string;
|
|
333
|
+
status?: string;
|
|
334
|
+
};
|
|
335
|
+
type Chapter = {
|
|
336
|
+
duration_label?: string;
|
|
337
|
+
end_time_sec?: number;
|
|
338
|
+
start_time_sec?: number;
|
|
339
|
+
title?: string;
|
|
340
|
+
};
|
|
341
|
+
type File = {
|
|
342
|
+
created_at?: string;
|
|
343
|
+
format?: string;
|
|
344
|
+
id?: string;
|
|
345
|
+
name?: string;
|
|
346
|
+
project_id?: string;
|
|
347
|
+
size?: number;
|
|
348
|
+
status?: FileStatus;
|
|
349
|
+
updated_at?: string;
|
|
350
|
+
url?: string;
|
|
351
|
+
};
|
|
352
|
+
type FileStatus = "uploading" | "uploaded" | "processing" | "preparing" | "ready" | "error";
|
|
353
|
+
type Image = {
|
|
354
|
+
attached_to_video?: boolean;
|
|
355
|
+
file?: File;
|
|
356
|
+
height?: number;
|
|
357
|
+
id?: string;
|
|
358
|
+
thumbhash?: string;
|
|
359
|
+
width?: number;
|
|
360
|
+
};
|
|
361
|
+
type Post = {
|
|
362
|
+
created_at?: string;
|
|
363
|
+
creator_id?: string;
|
|
364
|
+
description?: string;
|
|
365
|
+
feed_id?: string;
|
|
366
|
+
id?: string;
|
|
367
|
+
image?: Image;
|
|
368
|
+
plan_type?: GithubComRixlhqApiDbSqlcPlanType;
|
|
369
|
+
type?: PostType;
|
|
370
|
+
updated_at?: string;
|
|
371
|
+
video?: GithubComRixlhqApiInternalVideosVideoResponse;
|
|
372
|
+
};
|
|
373
|
+
type PostType = "image" | "video";
|
|
374
|
+
type Subtitle = {
|
|
375
|
+
created_at?: string;
|
|
376
|
+
id?: string;
|
|
377
|
+
label?: string;
|
|
378
|
+
language_code?: string;
|
|
379
|
+
name?: string;
|
|
380
|
+
size?: number;
|
|
381
|
+
url?: string;
|
|
382
|
+
video_id?: string;
|
|
383
|
+
};
|
|
384
|
+
type SubtitleDelete = {
|
|
385
|
+
message?: string;
|
|
386
|
+
status?: string;
|
|
387
|
+
};
|
|
388
|
+
type UpdateChaptersRequest = {
|
|
389
|
+
chapters?: Array<GithubComRixlhqApiInternalVideosTypesChapterInput>;
|
|
390
|
+
};
|
|
391
|
+
type UpdateChaptersResponse = {
|
|
392
|
+
chapters?: Array<Chapter>;
|
|
393
|
+
video_id?: string;
|
|
394
|
+
};
|
|
395
|
+
type Video = {
|
|
396
|
+
bitrate?: number;
|
|
397
|
+
chapters?: Array<Chapter>;
|
|
398
|
+
codec?: string;
|
|
399
|
+
duration?: number;
|
|
400
|
+
file?: File;
|
|
401
|
+
framerate?: string;
|
|
402
|
+
hdr?: boolean;
|
|
403
|
+
height?: number;
|
|
404
|
+
id?: string;
|
|
405
|
+
plan_type?: GithubComRixlhqApiDbSqlcPlanType;
|
|
406
|
+
poster?: Image;
|
|
407
|
+
width?: number;
|
|
408
|
+
};
|
|
409
|
+
type VideoUploadInitRequest = {
|
|
410
|
+
file_name: string;
|
|
411
|
+
image_format?: string;
|
|
412
|
+
video_quality?: GithubComRixlhqApiDbSqlcVideoQuality;
|
|
413
|
+
};
|
|
414
|
+
type GithubComRixlhqApiDbSqlcPlanType = "free" | "pro" | "custom" | "pay_as_you_go";
|
|
415
|
+
type GithubComRixlhqApiDbSqlcVideoQuality = "basic" | "shorts" | "pro";
|
|
416
|
+
/**
|
|
417
|
+
* Standard error response returned by the API
|
|
418
|
+
*/
|
|
419
|
+
type GithubComRixlhqApiInternalErrorsErrorResponse = {
|
|
420
|
+
/**
|
|
421
|
+
* HTTP status code
|
|
422
|
+
*/
|
|
423
|
+
code?: number;
|
|
424
|
+
/**
|
|
425
|
+
* Optional details about the error
|
|
426
|
+
*/
|
|
427
|
+
details?: string;
|
|
428
|
+
/**
|
|
429
|
+
* Error message describing what went wrong
|
|
430
|
+
*/
|
|
431
|
+
error?: string;
|
|
432
|
+
};
|
|
433
|
+
type GithubComRixlhqApiInternalVideosVideoResponse = {
|
|
434
|
+
bitrate?: number;
|
|
435
|
+
chapters?: Array<Chapter>;
|
|
436
|
+
codec?: string;
|
|
437
|
+
duration?: number;
|
|
438
|
+
file?: File;
|
|
439
|
+
framerate?: string;
|
|
440
|
+
hdr?: boolean;
|
|
441
|
+
height?: number;
|
|
442
|
+
id?: string;
|
|
443
|
+
plan_type?: GithubComRixlhqApiDbSqlcPlanType;
|
|
444
|
+
poster?: Image;
|
|
445
|
+
width?: number;
|
|
446
|
+
};
|
|
447
|
+
type GithubComRixlhqApiInternalVideosHandlerUploadCompleteRequest = {
|
|
448
|
+
video_id?: string;
|
|
449
|
+
};
|
|
450
|
+
type GithubComRixlhqApiInternalVideosHandlerUploadInitResponse = {
|
|
451
|
+
poster_id?: string;
|
|
452
|
+
poster_presigned_url?: string;
|
|
453
|
+
upload_expires?: number;
|
|
454
|
+
video_id?: string;
|
|
455
|
+
video_presigned_url?: string;
|
|
456
|
+
};
|
|
457
|
+
type GithubComRixlhqApiInternalVideosTypesChapterInput = {
|
|
458
|
+
start_time_sec?: number;
|
|
459
|
+
title?: string;
|
|
460
|
+
};
|
|
461
|
+
type InternalImagesHandlerCompleteRequest = {
|
|
462
|
+
attached_to_video?: boolean;
|
|
463
|
+
image_id?: string;
|
|
464
|
+
};
|
|
465
|
+
type InternalImagesHandlerInitResponse = {
|
|
466
|
+
image_id?: string;
|
|
467
|
+
presigned_url?: string;
|
|
468
|
+
upload_expires?: number;
|
|
469
|
+
};
|
|
470
|
+
type InternalImagesHandlerUploadInitRequest = {
|
|
471
|
+
format?: string;
|
|
472
|
+
name?: string;
|
|
473
|
+
};
|
|
474
|
+
type InternalVideosHandlerSubtitlesLanguageResponse = {
|
|
475
|
+
code?: string;
|
|
476
|
+
name?: string;
|
|
477
|
+
};
|
|
478
|
+
type PaginationPaginatedResponseImage = {
|
|
479
|
+
/**
|
|
480
|
+
* Data contains the slice of items for the current request.
|
|
481
|
+
*/
|
|
482
|
+
data?: Array<Image>;
|
|
483
|
+
/**
|
|
484
|
+
* Pagination data for the request.
|
|
485
|
+
*/
|
|
486
|
+
pagination?: PaginationPagination;
|
|
487
|
+
};
|
|
488
|
+
type PaginationPaginatedResponsePost = {
|
|
489
|
+
/**
|
|
490
|
+
* Data contains the slice of items for the current request.
|
|
491
|
+
*/
|
|
492
|
+
data?: Array<Post>;
|
|
493
|
+
/**
|
|
494
|
+
* Pagination data for the request.
|
|
495
|
+
*/
|
|
496
|
+
pagination?: PaginationPagination;
|
|
497
|
+
};
|
|
498
|
+
type PaginationPaginatedResponseVideo = {
|
|
499
|
+
/**
|
|
500
|
+
* Data contains the slice of items for the current request.
|
|
501
|
+
*/
|
|
502
|
+
data?: Array<Video>;
|
|
503
|
+
/**
|
|
504
|
+
* Pagination data for the request.
|
|
505
|
+
*/
|
|
506
|
+
pagination?: PaginationPagination;
|
|
507
|
+
};
|
|
508
|
+
type PaginationPagination = {
|
|
509
|
+
/**
|
|
510
|
+
* Maximum number of items to return in a single request.
|
|
511
|
+
*/
|
|
512
|
+
limit?: number;
|
|
513
|
+
/**
|
|
514
|
+
* Starting point of the result set.
|
|
515
|
+
*/
|
|
516
|
+
offset?: number;
|
|
517
|
+
/**
|
|
518
|
+
* The total number of available items in the full list.
|
|
519
|
+
*/
|
|
520
|
+
total?: number;
|
|
521
|
+
};
|
|
522
|
+
type GetFeedsByFeedIdData = {
|
|
523
|
+
body?: never;
|
|
524
|
+
path: {
|
|
525
|
+
/**
|
|
526
|
+
* Feed ID
|
|
527
|
+
*/
|
|
528
|
+
feedId: string;
|
|
529
|
+
};
|
|
530
|
+
query?: {
|
|
531
|
+
/**
|
|
532
|
+
* Maximum number of items to return in a single request. <br> **Default:** `25`
|
|
533
|
+
*/
|
|
534
|
+
limit?: number;
|
|
535
|
+
/**
|
|
536
|
+
* Starting point of the result set. <br>To get page 2 with a limit of 25, set `offset` to `25`. <br> **Default:** `0`
|
|
537
|
+
*/
|
|
538
|
+
offset?: number;
|
|
539
|
+
};
|
|
540
|
+
url: "/feeds/{feedId}";
|
|
541
|
+
};
|
|
542
|
+
type GetFeedsByFeedIdErrors = {
|
|
543
|
+
/**
|
|
544
|
+
* Invalid feed ID or query parameters
|
|
545
|
+
*/
|
|
546
|
+
400: GithubComRixlhqApiInternalErrorsErrorResponse;
|
|
547
|
+
/**
|
|
548
|
+
* Internal server error
|
|
549
|
+
*/
|
|
550
|
+
500: GithubComRixlhqApiInternalErrorsErrorResponse;
|
|
551
|
+
};
|
|
552
|
+
type GetFeedsByFeedIdError = GetFeedsByFeedIdErrors[keyof GetFeedsByFeedIdErrors];
|
|
553
|
+
type GetFeedsByFeedIdResponses = {
|
|
554
|
+
/**
|
|
555
|
+
* OK
|
|
556
|
+
*/
|
|
557
|
+
200: PaginationPaginatedResponsePost;
|
|
558
|
+
};
|
|
559
|
+
type GetFeedsByFeedIdResponse = GetFeedsByFeedIdResponses[keyof GetFeedsByFeedIdResponses];
|
|
560
|
+
type GetFeedsByFeedIdByPostIdData = {
|
|
561
|
+
body?: never;
|
|
562
|
+
path: {
|
|
563
|
+
/**
|
|
564
|
+
* Feed ID
|
|
565
|
+
*/
|
|
566
|
+
feedId: string;
|
|
567
|
+
/**
|
|
568
|
+
* Post ID
|
|
569
|
+
*/
|
|
570
|
+
postId: string;
|
|
571
|
+
};
|
|
572
|
+
query?: never;
|
|
573
|
+
url: "/feeds/{feedId}/{postId}";
|
|
574
|
+
};
|
|
575
|
+
type GetFeedsByFeedIdByPostIdErrors = {
|
|
576
|
+
/**
|
|
577
|
+
* Bad Request
|
|
578
|
+
*/
|
|
579
|
+
400: GithubComRixlhqApiInternalErrorsErrorResponse;
|
|
580
|
+
/**
|
|
581
|
+
* Not Found
|
|
582
|
+
*/
|
|
583
|
+
404: GithubComRixlhqApiInternalErrorsErrorResponse;
|
|
584
|
+
};
|
|
585
|
+
type GetFeedsByFeedIdByPostIdError = GetFeedsByFeedIdByPostIdErrors[keyof GetFeedsByFeedIdByPostIdErrors];
|
|
586
|
+
type GetFeedsByFeedIdByPostIdResponses = {
|
|
587
|
+
/**
|
|
588
|
+
* OK
|
|
589
|
+
*/
|
|
590
|
+
200: Post;
|
|
591
|
+
};
|
|
592
|
+
type GetFeedsByFeedIdByPostIdResponse = GetFeedsByFeedIdByPostIdResponses[keyof GetFeedsByFeedIdByPostIdResponses];
|
|
593
|
+
type GetFeedsByFeedIdCreatorsByCreatorIdData = {
|
|
594
|
+
body?: never;
|
|
595
|
+
path: {
|
|
596
|
+
/**
|
|
597
|
+
* Feed ID
|
|
598
|
+
*/
|
|
599
|
+
feedId: string;
|
|
600
|
+
/**
|
|
601
|
+
* Creator ID
|
|
602
|
+
*/
|
|
603
|
+
creatorId: string;
|
|
604
|
+
};
|
|
605
|
+
query?: {
|
|
606
|
+
/**
|
|
607
|
+
* Maximum number of items to return in a single request. <br> **Default:** `25`
|
|
608
|
+
*/
|
|
609
|
+
limit?: number;
|
|
610
|
+
/**
|
|
611
|
+
* Starting point of the result set. <br>To get page 2 with a limit of 25, set `offset` to `25`. <br> **Default:** `0`
|
|
612
|
+
*/
|
|
613
|
+
offset?: number;
|
|
614
|
+
};
|
|
615
|
+
url: "/feeds/{feedId}/creators/{creatorId}";
|
|
616
|
+
};
|
|
617
|
+
type GetFeedsByFeedIdCreatorsByCreatorIdErrors = {
|
|
618
|
+
/**
|
|
619
|
+
* Invalid feed ID, creator ID, or query parameters
|
|
620
|
+
*/
|
|
621
|
+
400: GithubComRixlhqApiInternalErrorsErrorResponse;
|
|
622
|
+
/**
|
|
623
|
+
* Internal server error
|
|
624
|
+
*/
|
|
625
|
+
500: GithubComRixlhqApiInternalErrorsErrorResponse;
|
|
626
|
+
};
|
|
627
|
+
type GetFeedsByFeedIdCreatorsByCreatorIdError = GetFeedsByFeedIdCreatorsByCreatorIdErrors[keyof GetFeedsByFeedIdCreatorsByCreatorIdErrors];
|
|
628
|
+
type GetFeedsByFeedIdCreatorsByCreatorIdResponses = {
|
|
629
|
+
/**
|
|
630
|
+
* OK
|
|
631
|
+
*/
|
|
632
|
+
200: PaginationPaginatedResponsePost;
|
|
633
|
+
};
|
|
634
|
+
type GetFeedsByFeedIdCreatorsByCreatorIdResponse = GetFeedsByFeedIdCreatorsByCreatorIdResponses[keyof GetFeedsByFeedIdCreatorsByCreatorIdResponses];
|
|
635
|
+
type GetImagesData = {
|
|
636
|
+
body?: never;
|
|
637
|
+
path?: never;
|
|
638
|
+
query?: {
|
|
639
|
+
/**
|
|
640
|
+
* Maximum number of items to return in a single request. <br> **Default:** `25`
|
|
641
|
+
*/
|
|
642
|
+
limit?: number;
|
|
643
|
+
/**
|
|
644
|
+
* Starting point of the result set. <br>To get page 2 with a limit of 25, set `offset` to `25`. <br> **Default:** `0`
|
|
645
|
+
*/
|
|
646
|
+
offset?: number;
|
|
647
|
+
/**
|
|
648
|
+
* Field to sort by (created_at, name, size, updated_at)
|
|
649
|
+
*/
|
|
650
|
+
sort?: string;
|
|
651
|
+
/**
|
|
652
|
+
* Sort order (asc, desc)
|
|
653
|
+
*/
|
|
654
|
+
order?: string;
|
|
655
|
+
};
|
|
656
|
+
url: "/images";
|
|
657
|
+
};
|
|
658
|
+
type GetImagesErrors = {
|
|
659
|
+
/**
|
|
660
|
+
* Invalid query parameters
|
|
661
|
+
*/
|
|
662
|
+
400: GithubComRixlhqApiInternalErrorsErrorResponse;
|
|
663
|
+
/**
|
|
664
|
+
* Unauthorized
|
|
665
|
+
*/
|
|
666
|
+
401: GithubComRixlhqApiInternalErrorsErrorResponse;
|
|
667
|
+
/**
|
|
668
|
+
* Forbidden
|
|
669
|
+
*/
|
|
670
|
+
403: GithubComRixlhqApiInternalErrorsErrorResponse;
|
|
671
|
+
/**
|
|
672
|
+
* Internal server error
|
|
673
|
+
*/
|
|
674
|
+
500: GithubComRixlhqApiInternalErrorsErrorResponse;
|
|
675
|
+
};
|
|
676
|
+
type GetImagesError = GetImagesErrors[keyof GetImagesErrors];
|
|
677
|
+
type GetImagesResponses = {
|
|
678
|
+
/**
|
|
679
|
+
* OK
|
|
680
|
+
*/
|
|
681
|
+
200: PaginationPaginatedResponseImage;
|
|
682
|
+
};
|
|
683
|
+
type GetImagesResponse = GetImagesResponses[keyof GetImagesResponses];
|
|
684
|
+
type DeleteImagesByImageIdData = {
|
|
685
|
+
body?: never;
|
|
686
|
+
path: {
|
|
687
|
+
/**
|
|
688
|
+
* Image ID
|
|
689
|
+
*/
|
|
690
|
+
imageId: string;
|
|
691
|
+
};
|
|
692
|
+
query?: never;
|
|
693
|
+
url: "/images/{imageId}";
|
|
694
|
+
};
|
|
695
|
+
type DeleteImagesByImageIdErrors = {
|
|
696
|
+
/**
|
|
697
|
+
* Invalid project ID or image ID
|
|
698
|
+
*/
|
|
699
|
+
400: GithubComRixlhqApiInternalErrorsErrorResponse;
|
|
700
|
+
/**
|
|
701
|
+
* Unauthorized
|
|
702
|
+
*/
|
|
703
|
+
401: GithubComRixlhqApiInternalErrorsErrorResponse;
|
|
704
|
+
/**
|
|
705
|
+
* Access denied
|
|
706
|
+
*/
|
|
707
|
+
403: GithubComRixlhqApiInternalErrorsErrorResponse;
|
|
708
|
+
/**
|
|
709
|
+
* Image not found
|
|
710
|
+
*/
|
|
711
|
+
404: GithubComRixlhqApiInternalErrorsErrorResponse;
|
|
712
|
+
/**
|
|
713
|
+
* Failed to delete image
|
|
714
|
+
*/
|
|
715
|
+
500: GithubComRixlhqApiInternalErrorsErrorResponse;
|
|
716
|
+
};
|
|
717
|
+
type DeleteImagesByImageIdError = DeleteImagesByImageIdErrors[keyof DeleteImagesByImageIdErrors];
|
|
718
|
+
type DeleteImagesByImageIdResponses = {
|
|
719
|
+
/**
|
|
720
|
+
* Image deleted successfully
|
|
721
|
+
*/
|
|
722
|
+
204: void;
|
|
723
|
+
};
|
|
724
|
+
type DeleteImagesByImageIdResponse = DeleteImagesByImageIdResponses[keyof DeleteImagesByImageIdResponses];
|
|
725
|
+
type GetImagesByImageIdData = {
|
|
726
|
+
body?: never;
|
|
727
|
+
path: {
|
|
728
|
+
/**
|
|
729
|
+
* Image ID
|
|
730
|
+
*/
|
|
731
|
+
imageId: string;
|
|
732
|
+
};
|
|
733
|
+
query?: never;
|
|
734
|
+
url: "/images/{imageId}";
|
|
735
|
+
};
|
|
736
|
+
type GetImagesByImageIdErrors = {
|
|
737
|
+
/**
|
|
738
|
+
* Invalid image ID
|
|
739
|
+
*/
|
|
740
|
+
400: GithubComRixlhqApiInternalErrorsErrorResponse;
|
|
741
|
+
/**
|
|
742
|
+
* Unauthorized
|
|
743
|
+
*/
|
|
744
|
+
401: GithubComRixlhqApiInternalErrorsErrorResponse;
|
|
745
|
+
/**
|
|
746
|
+
* Forbidden
|
|
747
|
+
*/
|
|
748
|
+
403: GithubComRixlhqApiInternalErrorsErrorResponse;
|
|
749
|
+
/**
|
|
750
|
+
* Image not found
|
|
751
|
+
*/
|
|
752
|
+
404: GithubComRixlhqApiInternalErrorsErrorResponse;
|
|
753
|
+
/**
|
|
754
|
+
* Internal server error
|
|
755
|
+
*/
|
|
756
|
+
500: GithubComRixlhqApiInternalErrorsErrorResponse;
|
|
757
|
+
};
|
|
758
|
+
type GetImagesByImageIdError = GetImagesByImageIdErrors[keyof GetImagesByImageIdErrors];
|
|
759
|
+
type GetImagesByImageIdResponses = {
|
|
760
|
+
/**
|
|
761
|
+
* OK
|
|
762
|
+
*/
|
|
763
|
+
200: Image;
|
|
764
|
+
};
|
|
765
|
+
type GetImagesByImageIdResponse = GetImagesByImageIdResponses[keyof GetImagesByImageIdResponses];
|
|
766
|
+
type PostImagesUploadCompleteData = {
|
|
767
|
+
/**
|
|
768
|
+
* Upload completion request
|
|
769
|
+
*/
|
|
770
|
+
body: InternalImagesHandlerCompleteRequest;
|
|
771
|
+
path?: never;
|
|
772
|
+
query?: never;
|
|
773
|
+
url: "/images/upload/complete";
|
|
774
|
+
};
|
|
775
|
+
type PostImagesUploadCompleteErrors = {
|
|
776
|
+
/**
|
|
777
|
+
* Invalid request body
|
|
778
|
+
*/
|
|
779
|
+
400: GithubComRixlhqApiInternalErrorsErrorResponse;
|
|
780
|
+
/**
|
|
781
|
+
* Unauthorized - Invalid API key
|
|
782
|
+
*/
|
|
783
|
+
401: GithubComRixlhqApiInternalErrorsErrorResponse;
|
|
784
|
+
/**
|
|
785
|
+
* Access denied
|
|
786
|
+
*/
|
|
787
|
+
403: GithubComRixlhqApiInternalErrorsErrorResponse;
|
|
788
|
+
/**
|
|
789
|
+
* File not found
|
|
790
|
+
*/
|
|
791
|
+
404: GithubComRixlhqApiInternalErrorsErrorResponse;
|
|
792
|
+
/**
|
|
793
|
+
* Failed to complete upload or create image
|
|
794
|
+
*/
|
|
795
|
+
500: GithubComRixlhqApiInternalErrorsErrorResponse;
|
|
796
|
+
};
|
|
797
|
+
type PostImagesUploadCompleteError = PostImagesUploadCompleteErrors[keyof PostImagesUploadCompleteErrors];
|
|
798
|
+
type PostImagesUploadCompleteResponses = {
|
|
799
|
+
/**
|
|
800
|
+
* OK
|
|
801
|
+
*/
|
|
802
|
+
200: Image;
|
|
803
|
+
};
|
|
804
|
+
type PostImagesUploadCompleteResponse = PostImagesUploadCompleteResponses[keyof PostImagesUploadCompleteResponses];
|
|
805
|
+
type PostImagesUploadInitData = {
|
|
806
|
+
/**
|
|
807
|
+
* Upload initialization request
|
|
808
|
+
*/
|
|
809
|
+
body: InternalImagesHandlerUploadInitRequest;
|
|
810
|
+
path?: never;
|
|
811
|
+
query?: never;
|
|
812
|
+
url: "/images/upload/init";
|
|
813
|
+
};
|
|
814
|
+
type PostImagesUploadInitErrors = {
|
|
815
|
+
/**
|
|
816
|
+
* Invalid request body
|
|
817
|
+
*/
|
|
818
|
+
400: GithubComRixlhqApiInternalErrorsErrorResponse;
|
|
819
|
+
/**
|
|
820
|
+
* Unauthorized - Invalid API key
|
|
821
|
+
*/
|
|
822
|
+
401: GithubComRixlhqApiInternalErrorsErrorResponse;
|
|
823
|
+
/**
|
|
824
|
+
* Access denied
|
|
825
|
+
*/
|
|
826
|
+
403: GithubComRixlhqApiInternalErrorsErrorResponse;
|
|
827
|
+
/**
|
|
828
|
+
* Failed to initialize upload
|
|
829
|
+
*/
|
|
830
|
+
500: GithubComRixlhqApiInternalErrorsErrorResponse;
|
|
831
|
+
};
|
|
832
|
+
type PostImagesUploadInitError = PostImagesUploadInitErrors[keyof PostImagesUploadInitErrors];
|
|
833
|
+
type PostImagesUploadInitResponses = {
|
|
834
|
+
/**
|
|
835
|
+
* OK
|
|
836
|
+
*/
|
|
837
|
+
200: InternalImagesHandlerInitResponse;
|
|
838
|
+
};
|
|
839
|
+
type PostImagesUploadInitResponse = PostImagesUploadInitResponses[keyof PostImagesUploadInitResponses];
|
|
840
|
+
type GetVideosData = {
|
|
841
|
+
body?: never;
|
|
842
|
+
path?: never;
|
|
843
|
+
query?: {
|
|
844
|
+
/**
|
|
845
|
+
* Maximum number of items to return in a single request. <br> **Default:** `25`
|
|
846
|
+
*/
|
|
847
|
+
limit?: number;
|
|
848
|
+
/**
|
|
849
|
+
* Starting point of the result set. <br>To get page 2 with a limit of 25, set `offset` to `25`. <br> **Default:** `0`
|
|
850
|
+
*/
|
|
851
|
+
offset?: number;
|
|
852
|
+
/**
|
|
853
|
+
* Field to sort by (created_at, name, size, updated_at, duration)
|
|
854
|
+
*/
|
|
855
|
+
sort?: string;
|
|
856
|
+
/**
|
|
857
|
+
* Sort order (asc, desc)
|
|
858
|
+
*/
|
|
859
|
+
order?: string;
|
|
860
|
+
};
|
|
861
|
+
url: "/videos";
|
|
862
|
+
};
|
|
863
|
+
type GetVideosErrors = {
|
|
864
|
+
/**
|
|
865
|
+
* Invalid query parameters
|
|
866
|
+
*/
|
|
867
|
+
400: GithubComRixlhqApiInternalErrorsErrorResponse;
|
|
868
|
+
/**
|
|
869
|
+
* Unauthorized
|
|
870
|
+
*/
|
|
871
|
+
401: GithubComRixlhqApiInternalErrorsErrorResponse;
|
|
872
|
+
/**
|
|
873
|
+
* Forbidden
|
|
874
|
+
*/
|
|
875
|
+
403: GithubComRixlhqApiInternalErrorsErrorResponse;
|
|
876
|
+
/**
|
|
877
|
+
* Internal server error
|
|
878
|
+
*/
|
|
879
|
+
500: GithubComRixlhqApiInternalErrorsErrorResponse;
|
|
880
|
+
};
|
|
881
|
+
type GetVideosError = GetVideosErrors[keyof GetVideosErrors];
|
|
882
|
+
type GetVideosResponses = {
|
|
883
|
+
/**
|
|
884
|
+
* OK
|
|
885
|
+
*/
|
|
886
|
+
200: PaginationPaginatedResponseVideo;
|
|
887
|
+
};
|
|
888
|
+
type GetVideosResponse = GetVideosResponses[keyof GetVideosResponses];
|
|
889
|
+
type GetVideosByVideoIdData = {
|
|
890
|
+
body?: never;
|
|
891
|
+
path: {
|
|
892
|
+
/**
|
|
893
|
+
* Video ID
|
|
894
|
+
*/
|
|
895
|
+
videoId: string;
|
|
896
|
+
};
|
|
897
|
+
query?: never;
|
|
898
|
+
url: "/videos/{videoId}";
|
|
899
|
+
};
|
|
900
|
+
type GetVideosByVideoIdErrors = {
|
|
901
|
+
/**
|
|
902
|
+
* Invalid video ID
|
|
903
|
+
*/
|
|
904
|
+
400: GithubComRixlhqApiInternalErrorsErrorResponse;
|
|
905
|
+
/**
|
|
906
|
+
* Unauthorized
|
|
907
|
+
*/
|
|
908
|
+
401: GithubComRixlhqApiInternalErrorsErrorResponse;
|
|
909
|
+
/**
|
|
910
|
+
* Forbidden
|
|
911
|
+
*/
|
|
912
|
+
403: GithubComRixlhqApiInternalErrorsErrorResponse;
|
|
913
|
+
/**
|
|
914
|
+
* Video not found
|
|
915
|
+
*/
|
|
916
|
+
404: GithubComRixlhqApiInternalErrorsErrorResponse;
|
|
917
|
+
/**
|
|
918
|
+
* Internal server error
|
|
919
|
+
*/
|
|
920
|
+
500: GithubComRixlhqApiInternalErrorsErrorResponse;
|
|
921
|
+
};
|
|
922
|
+
type GetVideosByVideoIdError = GetVideosByVideoIdErrors[keyof GetVideosByVideoIdErrors];
|
|
923
|
+
type GetVideosByVideoIdResponses = {
|
|
924
|
+
/**
|
|
925
|
+
* OK
|
|
926
|
+
*/
|
|
927
|
+
200: Video;
|
|
928
|
+
};
|
|
929
|
+
type GetVideosByVideoIdResponse = GetVideosByVideoIdResponses[keyof GetVideosByVideoIdResponses];
|
|
930
|
+
type DeleteVideosByVideoIdAudioTracksData = {
|
|
931
|
+
body?: never;
|
|
932
|
+
path: {
|
|
933
|
+
/**
|
|
934
|
+
* Video ID
|
|
935
|
+
*/
|
|
936
|
+
videoId: string;
|
|
937
|
+
};
|
|
938
|
+
query?: never;
|
|
939
|
+
url: "/videos/{videoId}/audio-tracks";
|
|
940
|
+
};
|
|
941
|
+
type DeleteVideosByVideoIdAudioTracksResponses = {
|
|
942
|
+
/**
|
|
943
|
+
* OK
|
|
944
|
+
*/
|
|
945
|
+
200: AudioTrackDelete;
|
|
946
|
+
};
|
|
947
|
+
type DeleteVideosByVideoIdAudioTracksResponse = DeleteVideosByVideoIdAudioTracksResponses[keyof DeleteVideosByVideoIdAudioTracksResponses];
|
|
948
|
+
type PostVideosByVideoIdAudioTracksData = {
|
|
949
|
+
/**
|
|
950
|
+
* files | Comma-separated language codes | Comma-separated labels
|
|
951
|
+
*/
|
|
952
|
+
body: {
|
|
953
|
+
/**
|
|
954
|
+
* files
|
|
955
|
+
*/
|
|
956
|
+
files: Array<string>;
|
|
957
|
+
/**
|
|
958
|
+
* Comma-separated labels
|
|
959
|
+
*/
|
|
960
|
+
labels: string;
|
|
961
|
+
/**
|
|
962
|
+
* Comma-separated language codes
|
|
963
|
+
*/
|
|
964
|
+
language_codes: string;
|
|
965
|
+
};
|
|
966
|
+
path: {
|
|
967
|
+
/**
|
|
968
|
+
* Video ID
|
|
969
|
+
*/
|
|
970
|
+
videoId: string;
|
|
971
|
+
};
|
|
972
|
+
query?: never;
|
|
973
|
+
url: "/videos/{videoId}/audio-tracks";
|
|
974
|
+
};
|
|
975
|
+
type PostVideosByVideoIdAudioTracksResponses = {
|
|
976
|
+
/**
|
|
977
|
+
* OK
|
|
978
|
+
*/
|
|
979
|
+
200: Array<AudioTrack>;
|
|
980
|
+
};
|
|
981
|
+
type PostVideosByVideoIdAudioTracksResponse = PostVideosByVideoIdAudioTracksResponses[keyof PostVideosByVideoIdAudioTracksResponses];
|
|
982
|
+
type DeleteVideosByVideoIdAudioTracksByTrackIdData = {
|
|
983
|
+
body?: never;
|
|
984
|
+
path: {
|
|
985
|
+
/**
|
|
986
|
+
* Video ID
|
|
987
|
+
*/
|
|
988
|
+
videoId: string;
|
|
989
|
+
/**
|
|
990
|
+
* Audio Track ID
|
|
991
|
+
*/
|
|
992
|
+
trackId: string;
|
|
993
|
+
};
|
|
994
|
+
query?: never;
|
|
995
|
+
url: "/videos/{videoId}/audio-tracks/{trackId}";
|
|
996
|
+
};
|
|
997
|
+
type DeleteVideosByVideoIdAudioTracksByTrackIdErrors = {
|
|
998
|
+
/**
|
|
999
|
+
* Unauthorized
|
|
1000
|
+
*/
|
|
1001
|
+
401: GithubComRixlhqApiInternalErrorsErrorResponse;
|
|
1002
|
+
/**
|
|
1003
|
+
* Forbidden
|
|
1004
|
+
*/
|
|
1005
|
+
403: GithubComRixlhqApiInternalErrorsErrorResponse;
|
|
1006
|
+
/**
|
|
1007
|
+
* Not Found
|
|
1008
|
+
*/
|
|
1009
|
+
404: GithubComRixlhqApiInternalErrorsErrorResponse;
|
|
1010
|
+
/**
|
|
1011
|
+
* Internal Server Error
|
|
1012
|
+
*/
|
|
1013
|
+
500: GithubComRixlhqApiInternalErrorsErrorResponse;
|
|
1014
|
+
};
|
|
1015
|
+
type DeleteVideosByVideoIdAudioTracksByTrackIdError = DeleteVideosByVideoIdAudioTracksByTrackIdErrors[keyof DeleteVideosByVideoIdAudioTracksByTrackIdErrors];
|
|
1016
|
+
type DeleteVideosByVideoIdAudioTracksByTrackIdResponses = {
|
|
1017
|
+
/**
|
|
1018
|
+
* OK
|
|
1019
|
+
*/
|
|
1020
|
+
200: AudioTrackDelete;
|
|
1021
|
+
};
|
|
1022
|
+
type DeleteVideosByVideoIdAudioTracksByTrackIdResponse = DeleteVideosByVideoIdAudioTracksByTrackIdResponses[keyof DeleteVideosByVideoIdAudioTracksByTrackIdResponses];
|
|
1023
|
+
type DeleteVideosByVideoIdAudioTracksLanguageByLangCodeData = {
|
|
1024
|
+
body?: never;
|
|
1025
|
+
path: {
|
|
1026
|
+
/**
|
|
1027
|
+
* Video ID
|
|
1028
|
+
*/
|
|
1029
|
+
videoId: string;
|
|
1030
|
+
/**
|
|
1031
|
+
* Language Code (BCP 47)
|
|
1032
|
+
*/
|
|
1033
|
+
lang_code: string;
|
|
1034
|
+
};
|
|
1035
|
+
query?: never;
|
|
1036
|
+
url: "/videos/{videoId}/audio-tracks/language/{lang_code}";
|
|
1037
|
+
};
|
|
1038
|
+
type DeleteVideosByVideoIdAudioTracksLanguageByLangCodeResponses = {
|
|
1039
|
+
/**
|
|
1040
|
+
* OK
|
|
1041
|
+
*/
|
|
1042
|
+
200: AudioTrackDelete;
|
|
1043
|
+
};
|
|
1044
|
+
type DeleteVideosByVideoIdAudioTracksLanguageByLangCodeResponse = DeleteVideosByVideoIdAudioTracksLanguageByLangCodeResponses[keyof DeleteVideosByVideoIdAudioTracksLanguageByLangCodeResponses];
|
|
1045
|
+
type PutVideosByVideoIdAudioTracksLanguageByLangCodeData = {
|
|
1046
|
+
/**
|
|
1047
|
+
* file | Label (e.g. English)
|
|
1048
|
+
*/
|
|
1049
|
+
body: {
|
|
1050
|
+
/**
|
|
1051
|
+
* file
|
|
1052
|
+
*/
|
|
1053
|
+
file: Blob | File;
|
|
1054
|
+
/**
|
|
1055
|
+
* Label (e.g. English)
|
|
1056
|
+
*/
|
|
1057
|
+
label?: string;
|
|
1058
|
+
};
|
|
1059
|
+
path: {
|
|
1060
|
+
/**
|
|
1061
|
+
* Video ID
|
|
1062
|
+
*/
|
|
1063
|
+
videoId: string;
|
|
1064
|
+
/**
|
|
1065
|
+
* Language Code (BCP 47)
|
|
1066
|
+
*/
|
|
1067
|
+
lang_code: string;
|
|
1068
|
+
};
|
|
1069
|
+
query?: never;
|
|
1070
|
+
url: "/videos/{videoId}/audio-tracks/language/{lang_code}";
|
|
1071
|
+
};
|
|
1072
|
+
type PutVideosByVideoIdAudioTracksLanguageByLangCodeResponses = {
|
|
1073
|
+
/**
|
|
1074
|
+
* OK
|
|
1075
|
+
*/
|
|
1076
|
+
200: AudioTrack;
|
|
1077
|
+
};
|
|
1078
|
+
type PutVideosByVideoIdAudioTracksLanguageByLangCodeResponse = PutVideosByVideoIdAudioTracksLanguageByLangCodeResponses[keyof PutVideosByVideoIdAudioTracksLanguageByLangCodeResponses];
|
|
1079
|
+
type DeleteVideosByVideoIdChaptersData = {
|
|
1080
|
+
body?: never;
|
|
1081
|
+
path: {
|
|
1082
|
+
/**
|
|
1083
|
+
* Video ID
|
|
1084
|
+
*/
|
|
1085
|
+
videoId: string;
|
|
1086
|
+
};
|
|
1087
|
+
query?: never;
|
|
1088
|
+
url: "/videos/{videoId}/chapters";
|
|
1089
|
+
};
|
|
1090
|
+
type DeleteVideosByVideoIdChaptersErrors = {
|
|
1091
|
+
/**
|
|
1092
|
+
* Unauthorized - Invalid API key
|
|
1093
|
+
*/
|
|
1094
|
+
401: GithubComRixlhqApiInternalErrorsErrorResponse;
|
|
1095
|
+
/**
|
|
1096
|
+
* Access denied
|
|
1097
|
+
*/
|
|
1098
|
+
403: GithubComRixlhqApiInternalErrorsErrorResponse;
|
|
1099
|
+
/**
|
|
1100
|
+
* Video not found
|
|
1101
|
+
*/
|
|
1102
|
+
404: GithubComRixlhqApiInternalErrorsErrorResponse;
|
|
1103
|
+
/**
|
|
1104
|
+
* Failed to delete chapters
|
|
1105
|
+
*/
|
|
1106
|
+
500: GithubComRixlhqApiInternalErrorsErrorResponse;
|
|
1107
|
+
};
|
|
1108
|
+
type DeleteVideosByVideoIdChaptersError = DeleteVideosByVideoIdChaptersErrors[keyof DeleteVideosByVideoIdChaptersErrors];
|
|
1109
|
+
type DeleteVideosByVideoIdChaptersResponses = {
|
|
1110
|
+
/**
|
|
1111
|
+
* OK
|
|
1112
|
+
*/
|
|
1113
|
+
200: UpdateChaptersResponse;
|
|
1114
|
+
};
|
|
1115
|
+
type DeleteVideosByVideoIdChaptersResponse = DeleteVideosByVideoIdChaptersResponses[keyof DeleteVideosByVideoIdChaptersResponses];
|
|
1116
|
+
type PutVideosByVideoIdChaptersData = {
|
|
1117
|
+
/**
|
|
1118
|
+
* Chapters array
|
|
1119
|
+
*/
|
|
1120
|
+
body: UpdateChaptersRequest;
|
|
1121
|
+
path: {
|
|
1122
|
+
/**
|
|
1123
|
+
* Video ID
|
|
1124
|
+
*/
|
|
1125
|
+
videoId: string;
|
|
1126
|
+
};
|
|
1127
|
+
query?: never;
|
|
1128
|
+
url: "/videos/{videoId}/chapters";
|
|
1129
|
+
};
|
|
1130
|
+
type PutVideosByVideoIdChaptersErrors = {
|
|
1131
|
+
/**
|
|
1132
|
+
* Invalid request body or video duration not available
|
|
1133
|
+
*/
|
|
1134
|
+
400: GithubComRixlhqApiInternalErrorsErrorResponse;
|
|
1135
|
+
/**
|
|
1136
|
+
* Unauthorized - Invalid API key
|
|
1137
|
+
*/
|
|
1138
|
+
401: GithubComRixlhqApiInternalErrorsErrorResponse;
|
|
1139
|
+
/**
|
|
1140
|
+
* Access denied
|
|
1141
|
+
*/
|
|
1142
|
+
403: GithubComRixlhqApiInternalErrorsErrorResponse;
|
|
1143
|
+
/**
|
|
1144
|
+
* Video not found
|
|
1145
|
+
*/
|
|
1146
|
+
404: GithubComRixlhqApiInternalErrorsErrorResponse;
|
|
1147
|
+
/**
|
|
1148
|
+
* Failed to update chapters
|
|
1149
|
+
*/
|
|
1150
|
+
500: GithubComRixlhqApiInternalErrorsErrorResponse;
|
|
1151
|
+
};
|
|
1152
|
+
type PutVideosByVideoIdChaptersError = PutVideosByVideoIdChaptersErrors[keyof PutVideosByVideoIdChaptersErrors];
|
|
1153
|
+
type PutVideosByVideoIdChaptersResponses = {
|
|
1154
|
+
/**
|
|
1155
|
+
* OK
|
|
1156
|
+
*/
|
|
1157
|
+
200: UpdateChaptersResponse;
|
|
1158
|
+
};
|
|
1159
|
+
type PutVideosByVideoIdChaptersResponse = PutVideosByVideoIdChaptersResponses[keyof PutVideosByVideoIdChaptersResponses];
|
|
1160
|
+
type DeleteVideosByVideoIdDeleteData = {
|
|
1161
|
+
body?: never;
|
|
1162
|
+
path: {
|
|
1163
|
+
/**
|
|
1164
|
+
* Video ID
|
|
1165
|
+
*/
|
|
1166
|
+
videoId: string;
|
|
1167
|
+
};
|
|
1168
|
+
query?: never;
|
|
1169
|
+
url: "/videos/{videoId}/delete";
|
|
1170
|
+
};
|
|
1171
|
+
type DeleteVideosByVideoIdDeleteErrors = {
|
|
1172
|
+
/**
|
|
1173
|
+
* Invalid project ID or video ID
|
|
1174
|
+
*/
|
|
1175
|
+
400: GithubComRixlhqApiInternalErrorsErrorResponse;
|
|
1176
|
+
/**
|
|
1177
|
+
* Unauthorized
|
|
1178
|
+
*/
|
|
1179
|
+
401: GithubComRixlhqApiInternalErrorsErrorResponse;
|
|
1180
|
+
/**
|
|
1181
|
+
* Access denied
|
|
1182
|
+
*/
|
|
1183
|
+
403: GithubComRixlhqApiInternalErrorsErrorResponse;
|
|
1184
|
+
/**
|
|
1185
|
+
* Video not found
|
|
1186
|
+
*/
|
|
1187
|
+
404: GithubComRixlhqApiInternalErrorsErrorResponse;
|
|
1188
|
+
/**
|
|
1189
|
+
* Failed to delete video
|
|
1190
|
+
*/
|
|
1191
|
+
500: GithubComRixlhqApiInternalErrorsErrorResponse;
|
|
1192
|
+
};
|
|
1193
|
+
type DeleteVideosByVideoIdDeleteError = DeleteVideosByVideoIdDeleteErrors[keyof DeleteVideosByVideoIdDeleteErrors];
|
|
1194
|
+
type DeleteVideosByVideoIdDeleteResponses = {
|
|
1195
|
+
/**
|
|
1196
|
+
* Video deleted successfully
|
|
1197
|
+
*/
|
|
1198
|
+
204: void;
|
|
1199
|
+
};
|
|
1200
|
+
type DeleteVideosByVideoIdDeleteResponse = DeleteVideosByVideoIdDeleteResponses[keyof DeleteVideosByVideoIdDeleteResponses];
|
|
1201
|
+
type DeleteVideosByVideoIdSubtitlesData = {
|
|
1202
|
+
body?: never;
|
|
1203
|
+
path: {
|
|
1204
|
+
/**
|
|
1205
|
+
* Video ID
|
|
1206
|
+
*/
|
|
1207
|
+
videoId: string;
|
|
1208
|
+
};
|
|
1209
|
+
query?: never;
|
|
1210
|
+
url: "/videos/{videoId}/subtitles";
|
|
1211
|
+
};
|
|
1212
|
+
type DeleteVideosByVideoIdSubtitlesResponses = {
|
|
1213
|
+
/**
|
|
1214
|
+
* OK
|
|
1215
|
+
*/
|
|
1216
|
+
200: SubtitleDelete;
|
|
1217
|
+
};
|
|
1218
|
+
type DeleteVideosByVideoIdSubtitlesResponse = DeleteVideosByVideoIdSubtitlesResponses[keyof DeleteVideosByVideoIdSubtitlesResponses];
|
|
1219
|
+
type PostVideosByVideoIdSubtitlesData = {
|
|
1220
|
+
/**
|
|
1221
|
+
* files | Comma-separated language codes | Comma-separated labels
|
|
1222
|
+
*/
|
|
1223
|
+
body: {
|
|
1224
|
+
/**
|
|
1225
|
+
* files
|
|
1226
|
+
*/
|
|
1227
|
+
files: Array<string>;
|
|
1228
|
+
/**
|
|
1229
|
+
* Comma-separated labels
|
|
1230
|
+
*/
|
|
1231
|
+
labels: string;
|
|
1232
|
+
/**
|
|
1233
|
+
* Comma-separated language codes
|
|
1234
|
+
*/
|
|
1235
|
+
language_codes: string;
|
|
1236
|
+
};
|
|
1237
|
+
path: {
|
|
1238
|
+
/**
|
|
1239
|
+
* Video ID
|
|
1240
|
+
*/
|
|
1241
|
+
videoId: string;
|
|
1242
|
+
};
|
|
1243
|
+
query?: never;
|
|
1244
|
+
url: "/videos/{videoId}/subtitles";
|
|
1245
|
+
};
|
|
1246
|
+
type PostVideosByVideoIdSubtitlesResponses = {
|
|
1247
|
+
/**
|
|
1248
|
+
* OK
|
|
1249
|
+
*/
|
|
1250
|
+
200: Array<Subtitle>;
|
|
1251
|
+
};
|
|
1252
|
+
type PostVideosByVideoIdSubtitlesResponse = PostVideosByVideoIdSubtitlesResponses[keyof PostVideosByVideoIdSubtitlesResponses];
|
|
1253
|
+
type DeleteVideosByVideoIdSubtitlesBySubtitleIdData = {
|
|
1254
|
+
body?: never;
|
|
1255
|
+
path: {
|
|
1256
|
+
/**
|
|
1257
|
+
* Video ID
|
|
1258
|
+
*/
|
|
1259
|
+
videoId: string;
|
|
1260
|
+
/**
|
|
1261
|
+
* Subtitle ID
|
|
1262
|
+
*/
|
|
1263
|
+
subtitleId: string;
|
|
1264
|
+
};
|
|
1265
|
+
query?: never;
|
|
1266
|
+
url: "/videos/{videoId}/subtitles/{subtitleId}";
|
|
1267
|
+
};
|
|
1268
|
+
type DeleteVideosByVideoIdSubtitlesBySubtitleIdErrors = {
|
|
1269
|
+
/**
|
|
1270
|
+
* Unauthorized
|
|
1271
|
+
*/
|
|
1272
|
+
401: GithubComRixlhqApiInternalErrorsErrorResponse;
|
|
1273
|
+
/**
|
|
1274
|
+
* Forbidden
|
|
1275
|
+
*/
|
|
1276
|
+
403: GithubComRixlhqApiInternalErrorsErrorResponse;
|
|
1277
|
+
/**
|
|
1278
|
+
* Not Found
|
|
1279
|
+
*/
|
|
1280
|
+
404: GithubComRixlhqApiInternalErrorsErrorResponse;
|
|
1281
|
+
/**
|
|
1282
|
+
* Internal Server Error
|
|
1283
|
+
*/
|
|
1284
|
+
500: GithubComRixlhqApiInternalErrorsErrorResponse;
|
|
1285
|
+
};
|
|
1286
|
+
type DeleteVideosByVideoIdSubtitlesBySubtitleIdError = DeleteVideosByVideoIdSubtitlesBySubtitleIdErrors[keyof DeleteVideosByVideoIdSubtitlesBySubtitleIdErrors];
|
|
1287
|
+
type DeleteVideosByVideoIdSubtitlesBySubtitleIdResponses = {
|
|
1288
|
+
/**
|
|
1289
|
+
* OK
|
|
1290
|
+
*/
|
|
1291
|
+
200: SubtitleDelete;
|
|
1292
|
+
};
|
|
1293
|
+
type DeleteVideosByVideoIdSubtitlesBySubtitleIdResponse = DeleteVideosByVideoIdSubtitlesBySubtitleIdResponses[keyof DeleteVideosByVideoIdSubtitlesBySubtitleIdResponses];
|
|
1294
|
+
type DeleteVideosByVideoIdSubtitlesLanguageByLangCodeData = {
|
|
1295
|
+
body?: never;
|
|
1296
|
+
path: {
|
|
1297
|
+
/**
|
|
1298
|
+
* Video ID
|
|
1299
|
+
*/
|
|
1300
|
+
videoId: string;
|
|
1301
|
+
/**
|
|
1302
|
+
* Language Code (BCP 47)
|
|
1303
|
+
*/
|
|
1304
|
+
lang_code: string;
|
|
1305
|
+
};
|
|
1306
|
+
query?: never;
|
|
1307
|
+
url: "/videos/{videoId}/subtitles/language/{lang_code}";
|
|
1308
|
+
};
|
|
1309
|
+
type DeleteVideosByVideoIdSubtitlesLanguageByLangCodeResponses = {
|
|
1310
|
+
/**
|
|
1311
|
+
* OK
|
|
1312
|
+
*/
|
|
1313
|
+
200: SubtitleDelete;
|
|
1314
|
+
};
|
|
1315
|
+
type DeleteVideosByVideoIdSubtitlesLanguageByLangCodeResponse = DeleteVideosByVideoIdSubtitlesLanguageByLangCodeResponses[keyof DeleteVideosByVideoIdSubtitlesLanguageByLangCodeResponses];
|
|
1316
|
+
type PutVideosByVideoIdSubtitlesLanguageByLangCodeData = {
|
|
1317
|
+
/**
|
|
1318
|
+
* file | Label (e.g. English)
|
|
1319
|
+
*/
|
|
1320
|
+
body: {
|
|
1321
|
+
/**
|
|
1322
|
+
* file
|
|
1323
|
+
*/
|
|
1324
|
+
file: Blob | File;
|
|
1325
|
+
/**
|
|
1326
|
+
* Label (e.g. English)
|
|
1327
|
+
*/
|
|
1328
|
+
label?: string;
|
|
1329
|
+
};
|
|
1330
|
+
path: {
|
|
1331
|
+
/**
|
|
1332
|
+
* Video ID
|
|
1333
|
+
*/
|
|
1334
|
+
videoId: string;
|
|
1335
|
+
/**
|
|
1336
|
+
* Language Code (BCP 47)
|
|
1337
|
+
*/
|
|
1338
|
+
lang_code: string;
|
|
1339
|
+
};
|
|
1340
|
+
query?: never;
|
|
1341
|
+
url: "/videos/{videoId}/subtitles/language/{lang_code}";
|
|
1342
|
+
};
|
|
1343
|
+
type PutVideosByVideoIdSubtitlesLanguageByLangCodeResponses = {
|
|
1344
|
+
/**
|
|
1345
|
+
* OK
|
|
1346
|
+
*/
|
|
1347
|
+
200: Subtitle;
|
|
1348
|
+
};
|
|
1349
|
+
type PutVideosByVideoIdSubtitlesLanguageByLangCodeResponse = PutVideosByVideoIdSubtitlesLanguageByLangCodeResponses[keyof PutVideosByVideoIdSubtitlesLanguageByLangCodeResponses];
|
|
1350
|
+
type PutVideosByVideoIdThumbnailData = {
|
|
1351
|
+
/**
|
|
1352
|
+
* file
|
|
1353
|
+
*/
|
|
1354
|
+
body: {
|
|
1355
|
+
/**
|
|
1356
|
+
* file
|
|
1357
|
+
*/
|
|
1358
|
+
thumbnail: Blob | File;
|
|
1359
|
+
};
|
|
1360
|
+
path: {
|
|
1361
|
+
/**
|
|
1362
|
+
* Video ID
|
|
1363
|
+
*/
|
|
1364
|
+
videoId: string;
|
|
1365
|
+
};
|
|
1366
|
+
query?: never;
|
|
1367
|
+
url: "/videos/{videoId}/thumbnail";
|
|
1368
|
+
};
|
|
1369
|
+
type PutVideosByVideoIdThumbnailErrors = {
|
|
1370
|
+
/**
|
|
1371
|
+
* Invalid file or request
|
|
1372
|
+
*/
|
|
1373
|
+
400: GithubComRixlhqApiInternalErrorsErrorResponse;
|
|
1374
|
+
/**
|
|
1375
|
+
* Unauthorized - Invalid API key
|
|
1376
|
+
*/
|
|
1377
|
+
401: GithubComRixlhqApiInternalErrorsErrorResponse;
|
|
1378
|
+
/**
|
|
1379
|
+
* Access denied
|
|
1380
|
+
*/
|
|
1381
|
+
403: GithubComRixlhqApiInternalErrorsErrorResponse;
|
|
1382
|
+
/**
|
|
1383
|
+
* Video not found
|
|
1384
|
+
*/
|
|
1385
|
+
404: GithubComRixlhqApiInternalErrorsErrorResponse;
|
|
1386
|
+
/**
|
|
1387
|
+
* Upload or update failed
|
|
1388
|
+
*/
|
|
1389
|
+
500: GithubComRixlhqApiInternalErrorsErrorResponse;
|
|
1390
|
+
};
|
|
1391
|
+
type PutVideosByVideoIdThumbnailError = PutVideosByVideoIdThumbnailErrors[keyof PutVideosByVideoIdThumbnailErrors];
|
|
1392
|
+
type PutVideosByVideoIdThumbnailResponses = {
|
|
1393
|
+
/**
|
|
1394
|
+
* Video with updated thumbnail
|
|
1395
|
+
*/
|
|
1396
|
+
200: Video;
|
|
1397
|
+
};
|
|
1398
|
+
type PutVideosByVideoIdThumbnailResponse = PutVideosByVideoIdThumbnailResponses[keyof PutVideosByVideoIdThumbnailResponses];
|
|
1399
|
+
type GetVideosLanguagesData = {
|
|
1400
|
+
body?: never;
|
|
1401
|
+
path?: never;
|
|
1402
|
+
query?: never;
|
|
1403
|
+
url: "/videos/languages";
|
|
1404
|
+
};
|
|
1405
|
+
type GetVideosLanguagesResponses = {
|
|
1406
|
+
/**
|
|
1407
|
+
* OK
|
|
1408
|
+
*/
|
|
1409
|
+
200: Array<InternalVideosHandlerSubtitlesLanguageResponse>;
|
|
1410
|
+
};
|
|
1411
|
+
type GetVideosLanguagesResponse = GetVideosLanguagesResponses[keyof GetVideosLanguagesResponses];
|
|
1412
|
+
type PostVideosUploadCompleteData = {
|
|
1413
|
+
/**
|
|
1414
|
+
* Video upload completion request
|
|
1415
|
+
*/
|
|
1416
|
+
body: GithubComRixlhqApiInternalVideosHandlerUploadCompleteRequest;
|
|
1417
|
+
path?: never;
|
|
1418
|
+
query?: never;
|
|
1419
|
+
url: "/videos/upload/complete";
|
|
1420
|
+
};
|
|
1421
|
+
type PostVideosUploadCompleteErrors = {
|
|
1422
|
+
/**
|
|
1423
|
+
* Invalid request body
|
|
1424
|
+
*/
|
|
1425
|
+
400: GithubComRixlhqApiInternalErrorsErrorResponse;
|
|
1426
|
+
/**
|
|
1427
|
+
* Unauthorized - Invalid API key
|
|
1428
|
+
*/
|
|
1429
|
+
401: GithubComRixlhqApiInternalErrorsErrorResponse;
|
|
1430
|
+
/**
|
|
1431
|
+
* Access denied
|
|
1432
|
+
*/
|
|
1433
|
+
403: GithubComRixlhqApiInternalErrorsErrorResponse;
|
|
1434
|
+
/**
|
|
1435
|
+
* File not found
|
|
1436
|
+
*/
|
|
1437
|
+
404: GithubComRixlhqApiInternalErrorsErrorResponse;
|
|
1438
|
+
/**
|
|
1439
|
+
* Failed to complete upload
|
|
1440
|
+
*/
|
|
1441
|
+
500: GithubComRixlhqApiInternalErrorsErrorResponse;
|
|
1442
|
+
};
|
|
1443
|
+
type PostVideosUploadCompleteError = PostVideosUploadCompleteErrors[keyof PostVideosUploadCompleteErrors];
|
|
1444
|
+
type PostVideosUploadCompleteResponses = {
|
|
1445
|
+
/**
|
|
1446
|
+
* OK
|
|
1447
|
+
*/
|
|
1448
|
+
200: Video;
|
|
1449
|
+
};
|
|
1450
|
+
type PostVideosUploadCompleteResponse = PostVideosUploadCompleteResponses[keyof PostVideosUploadCompleteResponses];
|
|
1451
|
+
type PostVideosUploadInitData = {
|
|
1452
|
+
/**
|
|
1453
|
+
* Video upload initialization request
|
|
1454
|
+
*/
|
|
1455
|
+
body: VideoUploadInitRequest;
|
|
1456
|
+
path?: never;
|
|
1457
|
+
query?: never;
|
|
1458
|
+
url: "/videos/upload/init";
|
|
1459
|
+
};
|
|
1460
|
+
type PostVideosUploadInitErrors = {
|
|
1461
|
+
/**
|
|
1462
|
+
* Invalid request body
|
|
1463
|
+
*/
|
|
1464
|
+
400: GithubComRixlhqApiInternalErrorsErrorResponse;
|
|
1465
|
+
/**
|
|
1466
|
+
* Unauthorized - Invalid API key
|
|
1467
|
+
*/
|
|
1468
|
+
401: GithubComRixlhqApiInternalErrorsErrorResponse;
|
|
1469
|
+
/**
|
|
1470
|
+
* Access denied
|
|
1471
|
+
*/
|
|
1472
|
+
403: GithubComRixlhqApiInternalErrorsErrorResponse;
|
|
1473
|
+
/**
|
|
1474
|
+
* Failed to initialize upload
|
|
1475
|
+
*/
|
|
1476
|
+
500: GithubComRixlhqApiInternalErrorsErrorResponse;
|
|
1477
|
+
};
|
|
1478
|
+
type PostVideosUploadInitError = PostVideosUploadInitErrors[keyof PostVideosUploadInitErrors];
|
|
1479
|
+
type PostVideosUploadInitResponses = {
|
|
1480
|
+
/**
|
|
1481
|
+
* OK
|
|
1482
|
+
*/
|
|
1483
|
+
200: GithubComRixlhqApiInternalVideosHandlerUploadInitResponse;
|
|
1484
|
+
};
|
|
1485
|
+
type PostVideosUploadInitResponse = PostVideosUploadInitResponses[keyof PostVideosUploadInitResponses];
|
|
1486
|
+
//#endregion
|
|
1487
|
+
//#region src/sdk.gen.d.ts
|
|
1488
|
+
type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options$1<TData, ThrowOnError, TResponse> & {
|
|
1489
|
+
/**
|
|
1490
|
+
* You can provide a client instance returned by `createClient()` instead of
|
|
1491
|
+
* individual options. This might be also useful if you want to implement a
|
|
1492
|
+
* custom client.
|
|
1493
|
+
*/
|
|
1494
|
+
client?: Client;
|
|
1495
|
+
/**
|
|
1496
|
+
* You can pass arbitrary values through the `meta` object. This can be
|
|
1497
|
+
* used to access values that aren't defined as part of the SDK function.
|
|
1498
|
+
*/
|
|
1499
|
+
meta?: Record<string, unknown>;
|
|
1500
|
+
};
|
|
1501
|
+
/**
|
|
1502
|
+
* List posts in a feed
|
|
1503
|
+
*
|
|
1504
|
+
* Retrieve posts in a feed, with pagination.
|
|
1505
|
+
*/
|
|
1506
|
+
declare const getFeedsByFeedId: <ThrowOnError extends boolean = false>(options: Options<GetFeedsByFeedIdData, ThrowOnError>) => RequestResult<GetFeedsByFeedIdResponses, GetFeedsByFeedIdErrors, ThrowOnError, "fields">;
|
|
1507
|
+
/**
|
|
1508
|
+
* Get a post
|
|
1509
|
+
*
|
|
1510
|
+
* Retrieve a post from feed by its ID
|
|
1511
|
+
*/
|
|
1512
|
+
declare const getFeedsByFeedIdByPostId: <ThrowOnError extends boolean = false>(options: Options<GetFeedsByFeedIdByPostIdData, ThrowOnError>) => RequestResult<GetFeedsByFeedIdByPostIdResponses, GetFeedsByFeedIdByPostIdErrors, ThrowOnError, "fields">;
|
|
1513
|
+
/**
|
|
1514
|
+
* List posts by creator
|
|
1515
|
+
*
|
|
1516
|
+
* Retrieve posts in a feed by a specific creator, with pagination.
|
|
1517
|
+
*/
|
|
1518
|
+
declare const getFeedsByFeedIdCreatorsByCreatorId: <ThrowOnError extends boolean = false>(options: Options<GetFeedsByFeedIdCreatorsByCreatorIdData, ThrowOnError>) => RequestResult<GetFeedsByFeedIdCreatorsByCreatorIdResponses, GetFeedsByFeedIdCreatorsByCreatorIdErrors, ThrowOnError, "fields">;
|
|
1519
|
+
/**
|
|
1520
|
+
* List images for a project
|
|
1521
|
+
*
|
|
1522
|
+
* Retrieve all images for a specific project, with pagination and sorting.
|
|
1523
|
+
*/
|
|
1524
|
+
declare const getImages: <ThrowOnError extends boolean = false>(options?: Options<GetImagesData, ThrowOnError>) => RequestResult<GetImagesResponses, GetImagesErrors, ThrowOnError, "fields">;
|
|
1525
|
+
/**
|
|
1526
|
+
* Delete image
|
|
1527
|
+
*
|
|
1528
|
+
* delete an image by marking it as deleted
|
|
1529
|
+
*/
|
|
1530
|
+
declare const deleteImagesByImageId: <ThrowOnError extends boolean = false>(options: Options<DeleteImagesByImageIdData, ThrowOnError>) => RequestResult<DeleteImagesByImageIdResponses, DeleteImagesByImageIdErrors, ThrowOnError, "fields">;
|
|
1531
|
+
/**
|
|
1532
|
+
* Get image
|
|
1533
|
+
*
|
|
1534
|
+
* Retrieve an image by its ID for a specific project.
|
|
1535
|
+
*/
|
|
1536
|
+
declare const getImagesByImageId: <ThrowOnError extends boolean = false>(options: Options<GetImagesByImageIdData, ThrowOnError>) => RequestResult<GetImagesByImageIdResponses, GetImagesByImageIdErrors, ThrowOnError, "fields">;
|
|
1537
|
+
/**
|
|
1538
|
+
* Upload: Mark as complete
|
|
1539
|
+
*
|
|
1540
|
+
* Complete the upload process and create the image record using API key authentication
|
|
1541
|
+
*/
|
|
1542
|
+
declare const postImagesUploadComplete: <ThrowOnError extends boolean = false>(options: Options<PostImagesUploadCompleteData, ThrowOnError>) => RequestResult<PostImagesUploadCompleteResponses, PostImagesUploadCompleteErrors, ThrowOnError, "fields">;
|
|
1543
|
+
/**
|
|
1544
|
+
* Upload: Init
|
|
1545
|
+
*
|
|
1546
|
+
* Initialize a presigned URL upload for an image file using API key authentication
|
|
1547
|
+
*/
|
|
1548
|
+
declare const postImagesUploadInit: <ThrowOnError extends boolean = false>(options: Options<PostImagesUploadInitData, ThrowOnError>) => RequestResult<PostImagesUploadInitResponses, PostImagesUploadInitErrors, ThrowOnError, "fields">;
|
|
1549
|
+
/**
|
|
1550
|
+
* List videos for a project
|
|
1551
|
+
*
|
|
1552
|
+
* Retrieve all videos for a specific project, with pagination and sorting.
|
|
1553
|
+
*/
|
|
1554
|
+
declare const getVideos: <ThrowOnError extends boolean = false>(options?: Options<GetVideosData, ThrowOnError>) => RequestResult<GetVideosResponses, GetVideosErrors, ThrowOnError, "fields">;
|
|
1555
|
+
/**
|
|
1556
|
+
* Get a video
|
|
1557
|
+
*
|
|
1558
|
+
* Retrieve a video by its ID for a specific project.
|
|
1559
|
+
*/
|
|
1560
|
+
declare const getVideosByVideoId: <ThrowOnError extends boolean = false>(options: Options<GetVideosByVideoIdData, ThrowOnError>) => RequestResult<GetVideosByVideoIdResponses, GetVideosByVideoIdErrors, ThrowOnError, "fields">;
|
|
1561
|
+
/**
|
|
1562
|
+
* Delete all audio tracks
|
|
1563
|
+
*
|
|
1564
|
+
* Remove all additional audio tracks from a video using API key authentication
|
|
1565
|
+
*/
|
|
1566
|
+
declare const deleteVideosByVideoIdAudioTracks: <ThrowOnError extends boolean = false>(options: Options<DeleteVideosByVideoIdAudioTracksData, ThrowOnError>) => RequestResult<DeleteVideosByVideoIdAudioTracksResponses, unknown, ThrowOnError, "fields">;
|
|
1567
|
+
/**
|
|
1568
|
+
* Bulk upsert video audio tracks
|
|
1569
|
+
*
|
|
1570
|
+
* Replace all audio tracks with the provided ones using API key authentication
|
|
1571
|
+
*/
|
|
1572
|
+
declare const postVideosByVideoIdAudioTracks: <ThrowOnError extends boolean = false>(options: Options<PostVideosByVideoIdAudioTracksData, ThrowOnError>) => RequestResult<PostVideosByVideoIdAudioTracksResponses, unknown, ThrowOnError, "fields">;
|
|
1573
|
+
/**
|
|
1574
|
+
* Delete audio track
|
|
1575
|
+
*
|
|
1576
|
+
* Remove an additional audio track from a video using API key authentication
|
|
1577
|
+
*/
|
|
1578
|
+
declare const deleteVideosByVideoIdAudioTracksByTrackId: <ThrowOnError extends boolean = false>(options: Options<DeleteVideosByVideoIdAudioTracksByTrackIdData, ThrowOnError>) => RequestResult<DeleteVideosByVideoIdAudioTracksByTrackIdResponses, DeleteVideosByVideoIdAudioTracksByTrackIdErrors, ThrowOnError, "fields">;
|
|
1579
|
+
/**
|
|
1580
|
+
* Delete audio track by language
|
|
1581
|
+
*
|
|
1582
|
+
* Remove an audio track for a specific language using API key authentication
|
|
1583
|
+
*/
|
|
1584
|
+
declare const deleteVideosByVideoIdAudioTracksLanguageByLangCode: <ThrowOnError extends boolean = false>(options: Options<DeleteVideosByVideoIdAudioTracksLanguageByLangCodeData, ThrowOnError>) => RequestResult<DeleteVideosByVideoIdAudioTracksLanguageByLangCodeResponses, unknown, ThrowOnError, "fields">;
|
|
1585
|
+
/**
|
|
1586
|
+
* Upsert video audio track
|
|
1587
|
+
*
|
|
1588
|
+
* Add or replace an audio track for a specific language using API key authentication
|
|
1589
|
+
*/
|
|
1590
|
+
declare const putVideosByVideoIdAudioTracksLanguageByLangCode: <ThrowOnError extends boolean = false>(options: Options<PutVideosByVideoIdAudioTracksLanguageByLangCodeData, ThrowOnError>) => RequestResult<PutVideosByVideoIdAudioTracksLanguageByLangCodeResponses, unknown, ThrowOnError, "fields">;
|
|
1591
|
+
/**
|
|
1592
|
+
* Delete video chapters
|
|
1593
|
+
*
|
|
1594
|
+
* Remove all chapters from a video using API key authentication
|
|
1595
|
+
*/
|
|
1596
|
+
declare const deleteVideosByVideoIdChapters: <ThrowOnError extends boolean = false>(options: Options<DeleteVideosByVideoIdChaptersData, ThrowOnError>) => RequestResult<DeleteVideosByVideoIdChaptersResponses, DeleteVideosByVideoIdChaptersErrors, ThrowOnError, "fields">;
|
|
1597
|
+
/**
|
|
1598
|
+
* Update video chapters
|
|
1599
|
+
*
|
|
1600
|
+
* Replace all chapters for a video (atomic PUT operation) using API key authentication
|
|
1601
|
+
*/
|
|
1602
|
+
declare const putVideosByVideoIdChapters: <ThrowOnError extends boolean = false>(options: Options<PutVideosByVideoIdChaptersData, ThrowOnError>) => RequestResult<PutVideosByVideoIdChaptersResponses, PutVideosByVideoIdChaptersErrors, ThrowOnError, "fields">;
|
|
1603
|
+
/**
|
|
1604
|
+
* Delete video
|
|
1605
|
+
*
|
|
1606
|
+
* Delete a video by its ID within a project
|
|
1607
|
+
*/
|
|
1608
|
+
declare const deleteVideosByVideoIdDelete: <ThrowOnError extends boolean = false>(options: Options<DeleteVideosByVideoIdDeleteData, ThrowOnError>) => RequestResult<DeleteVideosByVideoIdDeleteResponses, DeleteVideosByVideoIdDeleteErrors, ThrowOnError, "fields">;
|
|
1609
|
+
/**
|
|
1610
|
+
* Delete all subtitles
|
|
1611
|
+
*
|
|
1612
|
+
* Remove all subtitles from a video using API key authentication
|
|
1613
|
+
*/
|
|
1614
|
+
declare const deleteVideosByVideoIdSubtitles: <ThrowOnError extends boolean = false>(options: Options<DeleteVideosByVideoIdSubtitlesData, ThrowOnError>) => RequestResult<DeleteVideosByVideoIdSubtitlesResponses, unknown, ThrowOnError, "fields">;
|
|
1615
|
+
/**
|
|
1616
|
+
* Bulk upsert video subtitles
|
|
1617
|
+
*
|
|
1618
|
+
* Replace all subtitles with the provided ones using API key authentication
|
|
1619
|
+
*/
|
|
1620
|
+
declare const postVideosByVideoIdSubtitles: <ThrowOnError extends boolean = false>(options: Options<PostVideosByVideoIdSubtitlesData, ThrowOnError>) => RequestResult<PostVideosByVideoIdSubtitlesResponses, unknown, ThrowOnError, "fields">;
|
|
1621
|
+
/**
|
|
1622
|
+
* Delete subtitle
|
|
1623
|
+
*
|
|
1624
|
+
* Remove a subtitle from a video using API key authentication
|
|
1625
|
+
*/
|
|
1626
|
+
declare const deleteVideosByVideoIdSubtitlesBySubtitleId: <ThrowOnError extends boolean = false>(options: Options<DeleteVideosByVideoIdSubtitlesBySubtitleIdData, ThrowOnError>) => RequestResult<DeleteVideosByVideoIdSubtitlesBySubtitleIdResponses, DeleteVideosByVideoIdSubtitlesBySubtitleIdErrors, ThrowOnError, "fields">;
|
|
1627
|
+
/**
|
|
1628
|
+
* Delete subtitle by language
|
|
1629
|
+
*
|
|
1630
|
+
* Remove a subtitle for a specific language using API key authentication
|
|
1631
|
+
*/
|
|
1632
|
+
declare const deleteVideosByVideoIdSubtitlesLanguageByLangCode: <ThrowOnError extends boolean = false>(options: Options<DeleteVideosByVideoIdSubtitlesLanguageByLangCodeData, ThrowOnError>) => RequestResult<DeleteVideosByVideoIdSubtitlesLanguageByLangCodeResponses, unknown, ThrowOnError, "fields">;
|
|
1633
|
+
/**
|
|
1634
|
+
* Upsert video subtitle
|
|
1635
|
+
*
|
|
1636
|
+
* Add or replace a subtitle for a specific language using API key authentication
|
|
1637
|
+
*/
|
|
1638
|
+
declare const putVideosByVideoIdSubtitlesLanguageByLangCode: <ThrowOnError extends boolean = false>(options: Options<PutVideosByVideoIdSubtitlesLanguageByLangCodeData, ThrowOnError>) => RequestResult<PutVideosByVideoIdSubtitlesLanguageByLangCodeResponses, unknown, ThrowOnError, "fields">;
|
|
1639
|
+
/**
|
|
1640
|
+
* Update video thumbnail
|
|
1641
|
+
*
|
|
1642
|
+
* Update the thumbnail image for an existing video using API key authentication
|
|
1643
|
+
*/
|
|
1644
|
+
declare const putVideosByVideoIdThumbnail: <ThrowOnError extends boolean = false>(options: Options<PutVideosByVideoIdThumbnailData, ThrowOnError>) => RequestResult<PutVideosByVideoIdThumbnailResponses, PutVideosByVideoIdThumbnailErrors, ThrowOnError, "fields">;
|
|
1645
|
+
/**
|
|
1646
|
+
* List available subtitle languages
|
|
1647
|
+
*
|
|
1648
|
+
* Get list of supported languages for subtitles
|
|
1649
|
+
*/
|
|
1650
|
+
declare const getVideosLanguages: <ThrowOnError extends boolean = false>(options?: Options<GetVideosLanguagesData, ThrowOnError>) => RequestResult<GetVideosLanguagesResponses, unknown, ThrowOnError, "fields">;
|
|
1651
|
+
/**
|
|
1652
|
+
* Upload: Mark as complete
|
|
1653
|
+
*
|
|
1654
|
+
* Mark a video upload as complete after successful upload to storage using API key authentication
|
|
1655
|
+
*/
|
|
1656
|
+
declare const postVideosUploadComplete: <ThrowOnError extends boolean = false>(options: Options<PostVideosUploadCompleteData, ThrowOnError>) => RequestResult<PostVideosUploadCompleteResponses, PostVideosUploadCompleteErrors, ThrowOnError, "fields">;
|
|
1657
|
+
/**
|
|
1658
|
+
* Upload: Init
|
|
1659
|
+
*
|
|
1660
|
+
* Initialize a video upload and get presigned URLs for video and poster using API key authentication
|
|
1661
|
+
*/
|
|
1662
|
+
declare const postVideosUploadInit: <ThrowOnError extends boolean = false>(options: Options<PostVideosUploadInitData, ThrowOnError>) => RequestResult<PostVideosUploadInitResponses, PostVideosUploadInitErrors, ThrowOnError, "fields">;
|
|
1663
|
+
//#endregion
|
|
1664
|
+
export { type AudioTrack, type AudioTrackDelete, type Chapter, type ClientOptions, type DeleteImagesByImageIdData, type DeleteImagesByImageIdError, type DeleteImagesByImageIdErrors, type DeleteImagesByImageIdResponse, type DeleteImagesByImageIdResponses, type DeleteVideosByVideoIdAudioTracksByTrackIdData, type DeleteVideosByVideoIdAudioTracksByTrackIdError, type DeleteVideosByVideoIdAudioTracksByTrackIdErrors, type DeleteVideosByVideoIdAudioTracksByTrackIdResponse, type DeleteVideosByVideoIdAudioTracksByTrackIdResponses, type DeleteVideosByVideoIdAudioTracksData, type DeleteVideosByVideoIdAudioTracksLanguageByLangCodeData, type DeleteVideosByVideoIdAudioTracksLanguageByLangCodeResponse, type DeleteVideosByVideoIdAudioTracksLanguageByLangCodeResponses, type DeleteVideosByVideoIdAudioTracksResponse, type DeleteVideosByVideoIdAudioTracksResponses, type DeleteVideosByVideoIdChaptersData, type DeleteVideosByVideoIdChaptersError, type DeleteVideosByVideoIdChaptersErrors, type DeleteVideosByVideoIdChaptersResponse, type DeleteVideosByVideoIdChaptersResponses, type DeleteVideosByVideoIdDeleteData, type DeleteVideosByVideoIdDeleteError, type DeleteVideosByVideoIdDeleteErrors, type DeleteVideosByVideoIdDeleteResponse, type DeleteVideosByVideoIdDeleteResponses, type DeleteVideosByVideoIdSubtitlesBySubtitleIdData, type DeleteVideosByVideoIdSubtitlesBySubtitleIdError, type DeleteVideosByVideoIdSubtitlesBySubtitleIdErrors, type DeleteVideosByVideoIdSubtitlesBySubtitleIdResponse, type DeleteVideosByVideoIdSubtitlesBySubtitleIdResponses, type DeleteVideosByVideoIdSubtitlesData, type DeleteVideosByVideoIdSubtitlesLanguageByLangCodeData, type DeleteVideosByVideoIdSubtitlesLanguageByLangCodeResponse, type DeleteVideosByVideoIdSubtitlesLanguageByLangCodeResponses, type DeleteVideosByVideoIdSubtitlesResponse, type DeleteVideosByVideoIdSubtitlesResponses, type File, type FileStatus, type GetFeedsByFeedIdByPostIdData, type GetFeedsByFeedIdByPostIdError, type GetFeedsByFeedIdByPostIdErrors, type GetFeedsByFeedIdByPostIdResponse, type GetFeedsByFeedIdByPostIdResponses, type GetFeedsByFeedIdCreatorsByCreatorIdData, type GetFeedsByFeedIdCreatorsByCreatorIdError, type GetFeedsByFeedIdCreatorsByCreatorIdErrors, type GetFeedsByFeedIdCreatorsByCreatorIdResponse, type GetFeedsByFeedIdCreatorsByCreatorIdResponses, type GetFeedsByFeedIdData, type GetFeedsByFeedIdError, type GetFeedsByFeedIdErrors, type GetFeedsByFeedIdResponse, type GetFeedsByFeedIdResponses, type GetImagesByImageIdData, type GetImagesByImageIdError, type GetImagesByImageIdErrors, type GetImagesByImageIdResponse, type GetImagesByImageIdResponses, type GetImagesData, type GetImagesError, type GetImagesErrors, type GetImagesResponse, type GetImagesResponses, type GetVideosByVideoIdData, type GetVideosByVideoIdError, type GetVideosByVideoIdErrors, type GetVideosByVideoIdResponse, type GetVideosByVideoIdResponses, type GetVideosData, type GetVideosError, type GetVideosErrors, type GetVideosLanguagesData, type GetVideosLanguagesResponse, type GetVideosLanguagesResponses, type GetVideosResponse, type GetVideosResponses, type GithubComRixlhqApiDbSqlcPlanType, type GithubComRixlhqApiDbSqlcVideoQuality, type GithubComRixlhqApiInternalErrorsErrorResponse, type GithubComRixlhqApiInternalVideosHandlerUploadCompleteRequest, type GithubComRixlhqApiInternalVideosHandlerUploadInitResponse, type GithubComRixlhqApiInternalVideosTypesChapterInput, type GithubComRixlhqApiInternalVideosVideoResponse, type Image, type InternalImagesHandlerCompleteRequest, type InternalImagesHandlerInitResponse, type InternalImagesHandlerUploadInitRequest, type InternalVideosHandlerSubtitlesLanguageResponse, type Options, type PaginationPaginatedResponseImage, type PaginationPaginatedResponsePost, type PaginationPaginatedResponseVideo, type PaginationPagination, type Post, type PostImagesUploadCompleteData, type PostImagesUploadCompleteError, type PostImagesUploadCompleteErrors, type PostImagesUploadCompleteResponse, type PostImagesUploadCompleteResponses, type PostImagesUploadInitData, type PostImagesUploadInitError, type PostImagesUploadInitErrors, type PostImagesUploadInitResponse, type PostImagesUploadInitResponses, type PostType, type PostVideosByVideoIdAudioTracksData, type PostVideosByVideoIdAudioTracksResponse, type PostVideosByVideoIdAudioTracksResponses, type PostVideosByVideoIdSubtitlesData, type PostVideosByVideoIdSubtitlesResponse, type PostVideosByVideoIdSubtitlesResponses, type PostVideosUploadCompleteData, type PostVideosUploadCompleteError, type PostVideosUploadCompleteErrors, type PostVideosUploadCompleteResponse, type PostVideosUploadCompleteResponses, type PostVideosUploadInitData, type PostVideosUploadInitError, type PostVideosUploadInitErrors, type PostVideosUploadInitResponse, type PostVideosUploadInitResponses, type PutVideosByVideoIdAudioTracksLanguageByLangCodeData, type PutVideosByVideoIdAudioTracksLanguageByLangCodeResponse, type PutVideosByVideoIdAudioTracksLanguageByLangCodeResponses, type PutVideosByVideoIdChaptersData, type PutVideosByVideoIdChaptersError, type PutVideosByVideoIdChaptersErrors, type PutVideosByVideoIdChaptersResponse, type PutVideosByVideoIdChaptersResponses, type PutVideosByVideoIdSubtitlesLanguageByLangCodeData, type PutVideosByVideoIdSubtitlesLanguageByLangCodeResponse, type PutVideosByVideoIdSubtitlesLanguageByLangCodeResponses, type PutVideosByVideoIdThumbnailData, type PutVideosByVideoIdThumbnailError, type PutVideosByVideoIdThumbnailErrors, type PutVideosByVideoIdThumbnailResponse, type PutVideosByVideoIdThumbnailResponses, type Subtitle, type SubtitleDelete, type UpdateChaptersRequest, type UpdateChaptersResponse, type Video, type VideoUploadInitRequest, deleteImagesByImageId, deleteVideosByVideoIdAudioTracks, deleteVideosByVideoIdAudioTracksByTrackId, deleteVideosByVideoIdAudioTracksLanguageByLangCode, deleteVideosByVideoIdChapters, deleteVideosByVideoIdDelete, deleteVideosByVideoIdSubtitles, deleteVideosByVideoIdSubtitlesBySubtitleId, deleteVideosByVideoIdSubtitlesLanguageByLangCode, getFeedsByFeedId, getFeedsByFeedIdByPostId, getFeedsByFeedIdCreatorsByCreatorId, getImages, getImagesByImageId, getVideos, getVideosByVideoId, getVideosLanguages, postImagesUploadComplete, postImagesUploadInit, postVideosByVideoIdAudioTracks, postVideosByVideoIdSubtitles, postVideosUploadComplete, postVideosUploadInit, putVideosByVideoIdAudioTracksLanguageByLangCode, putVideosByVideoIdChapters, putVideosByVideoIdSubtitlesLanguageByLangCode, putVideosByVideoIdThumbnail };
|
|
1665
|
+
//# sourceMappingURL=index.d.ts.map
|