@portalshq/capability-queue-broadcast 0.1.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 +131 -0
- package/dist/client.d.ts +174 -0
- package/dist/client.js +312 -0
- package/dist/generated/api.d.ts +500 -0
- package/dist/generated/api.js +246 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +7 -0
- package/dist/monitoring/metrics.d.ts +90 -0
- package/dist/monitoring/metrics.js +190 -0
- package/dist/streaming/frame-buffer.d.ts +34 -0
- package/dist/streaming/frame-buffer.js +61 -0
- package/dist/streaming/index.d.ts +2 -0
- package/dist/streaming/index.js +2 -0
- package/dist/streaming/rtmp/rtmp-streamer.d.ts +75 -0
- package/dist/streaming/rtmp/rtmp-streamer.js +299 -0
- package/package.json +34 -0
|
@@ -0,0 +1,500 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.22.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Queue Broadcast Server
|
|
5
|
+
* OpenAPI spec version: 0.3.0
|
|
6
|
+
*/
|
|
7
|
+
export type BodyUploadQueueItemMediaType = typeof BodyUploadQueueItemMediaType[keyof typeof BodyUploadQueueItemMediaType];
|
|
8
|
+
export declare const BodyUploadQueueItemMediaType: {
|
|
9
|
+
readonly video: "video";
|
|
10
|
+
readonly image: "image";
|
|
11
|
+
readonly audio: "audio";
|
|
12
|
+
};
|
|
13
|
+
export interface BodyUploadQueueItem {
|
|
14
|
+
duration?: number | null;
|
|
15
|
+
file: Blob;
|
|
16
|
+
media_type?: BodyUploadQueueItemMediaType;
|
|
17
|
+
sha256?: string | null;
|
|
18
|
+
slot_key?: string | null;
|
|
19
|
+
staged?: boolean;
|
|
20
|
+
}
|
|
21
|
+
export interface BodyUploadQueuePair {
|
|
22
|
+
audio: Blob;
|
|
23
|
+
/**
|
|
24
|
+
* @minLength 64
|
|
25
|
+
* @maxLength 64
|
|
26
|
+
*/
|
|
27
|
+
audio_sha256: string;
|
|
28
|
+
image: Blob;
|
|
29
|
+
/**
|
|
30
|
+
* @minimum 1
|
|
31
|
+
* @maximum 30
|
|
32
|
+
*/
|
|
33
|
+
image_duration: number;
|
|
34
|
+
/**
|
|
35
|
+
* @minLength 64
|
|
36
|
+
* @maxLength 64
|
|
37
|
+
*/
|
|
38
|
+
image_sha256: string;
|
|
39
|
+
staged?: boolean;
|
|
40
|
+
}
|
|
41
|
+
export interface ErrorResponse {
|
|
42
|
+
detail: string;
|
|
43
|
+
}
|
|
44
|
+
export type ValidationErrorCtx = {
|
|
45
|
+
[key: string]: unknown;
|
|
46
|
+
};
|
|
47
|
+
export interface ValidationError {
|
|
48
|
+
ctx?: ValidationErrorCtx;
|
|
49
|
+
input?: unknown;
|
|
50
|
+
loc: (string | number)[];
|
|
51
|
+
msg: string;
|
|
52
|
+
type: string;
|
|
53
|
+
}
|
|
54
|
+
export interface HTTPValidationError {
|
|
55
|
+
detail?: ValidationError[];
|
|
56
|
+
}
|
|
57
|
+
export type HealthResponseJobs = {
|
|
58
|
+
[key: string]: number;
|
|
59
|
+
};
|
|
60
|
+
export type HealthResponseMediaServer = typeof HealthResponseMediaServer[keyof typeof HealthResponseMediaServer];
|
|
61
|
+
export declare const HealthResponseMediaServer: {
|
|
62
|
+
readonly up: "up";
|
|
63
|
+
readonly down: "down";
|
|
64
|
+
};
|
|
65
|
+
export interface HealthResponse {
|
|
66
|
+
jobs: HealthResponseJobs;
|
|
67
|
+
last_playout_error: string | null;
|
|
68
|
+
media_server: HealthResponseMediaServer;
|
|
69
|
+
ok: boolean;
|
|
70
|
+
}
|
|
71
|
+
export type JobResponseMediaType = typeof JobResponseMediaType[keyof typeof JobResponseMediaType];
|
|
72
|
+
export declare const JobResponseMediaType: {
|
|
73
|
+
readonly video: "video";
|
|
74
|
+
readonly image: "image";
|
|
75
|
+
readonly audio: "audio";
|
|
76
|
+
};
|
|
77
|
+
export type JobResponseStatus = typeof JobResponseStatus[keyof typeof JobResponseStatus];
|
|
78
|
+
export declare const JobResponseStatus: {
|
|
79
|
+
readonly ingesting: "ingesting";
|
|
80
|
+
readonly staged: "staged";
|
|
81
|
+
readonly queued: "queued";
|
|
82
|
+
readonly generating: "generating";
|
|
83
|
+
readonly ready: "ready";
|
|
84
|
+
readonly playing: "playing";
|
|
85
|
+
readonly done: "done";
|
|
86
|
+
readonly failed: "failed";
|
|
87
|
+
};
|
|
88
|
+
export interface JobResponse {
|
|
89
|
+
created_at: number;
|
|
90
|
+
duration: number | null;
|
|
91
|
+
error: string | null;
|
|
92
|
+
id: string;
|
|
93
|
+
media_type: JobResponseMediaType;
|
|
94
|
+
pair_id: string | null;
|
|
95
|
+
prompt: string;
|
|
96
|
+
slot_key: string | null;
|
|
97
|
+
source_url: string | null;
|
|
98
|
+
status: JobResponseStatus;
|
|
99
|
+
updated_at: number;
|
|
100
|
+
}
|
|
101
|
+
export interface PromptInput {
|
|
102
|
+
/**
|
|
103
|
+
* @minLength 1
|
|
104
|
+
* @maxLength 20000
|
|
105
|
+
*/
|
|
106
|
+
prompt: string;
|
|
107
|
+
}
|
|
108
|
+
export type QueueItemJsonMediaType = typeof QueueItemJsonMediaType[keyof typeof QueueItemJsonMediaType];
|
|
109
|
+
export declare const QueueItemJsonMediaType: {
|
|
110
|
+
readonly video: "video";
|
|
111
|
+
readonly image: "image";
|
|
112
|
+
readonly audio: "audio";
|
|
113
|
+
};
|
|
114
|
+
export interface QueueItemJson {
|
|
115
|
+
duration?: number | null;
|
|
116
|
+
media_type?: QueueItemJsonMediaType;
|
|
117
|
+
prompt?: string | null;
|
|
118
|
+
url?: string | null;
|
|
119
|
+
}
|
|
120
|
+
export interface QueuePairResponse {
|
|
121
|
+
audio: JobResponse;
|
|
122
|
+
image: JobResponse;
|
|
123
|
+
pair_id: string;
|
|
124
|
+
}
|
|
125
|
+
export interface QueueSlotResponse {
|
|
126
|
+
jobs: JobResponse[];
|
|
127
|
+
released: boolean;
|
|
128
|
+
slot_key: string;
|
|
129
|
+
}
|
|
130
|
+
export interface StreamFormatResponse {
|
|
131
|
+
audio: string;
|
|
132
|
+
fade_duration: number;
|
|
133
|
+
fps: number;
|
|
134
|
+
gop_seconds: number;
|
|
135
|
+
image_duration: number;
|
|
136
|
+
resolution: string;
|
|
137
|
+
video: string;
|
|
138
|
+
}
|
|
139
|
+
export interface StreamInfoResponse {
|
|
140
|
+
destination_count: number;
|
|
141
|
+
format: StreamFormatResponse;
|
|
142
|
+
hls: string;
|
|
143
|
+
}
|
|
144
|
+
export type getHealthResponse200 = {
|
|
145
|
+
data: HealthResponse;
|
|
146
|
+
status: 200;
|
|
147
|
+
};
|
|
148
|
+
export type getHealthResponse503 = {
|
|
149
|
+
data: HealthResponse;
|
|
150
|
+
status: 503;
|
|
151
|
+
};
|
|
152
|
+
export type getHealthResponseSuccess = (getHealthResponse200) & {
|
|
153
|
+
headers: Headers;
|
|
154
|
+
};
|
|
155
|
+
export type getHealthResponseError = (getHealthResponse503) & {
|
|
156
|
+
headers: Headers;
|
|
157
|
+
};
|
|
158
|
+
export type getHealthResponse = (getHealthResponseSuccess | getHealthResponseError);
|
|
159
|
+
export declare const getGetHealthUrl: () => string;
|
|
160
|
+
/**
|
|
161
|
+
* @summary Health
|
|
162
|
+
*/
|
|
163
|
+
export declare const getHealth: (options?: RequestInit) => Promise<getHealthResponse>;
|
|
164
|
+
export type enqueueLegacyPromptResponse200 = {
|
|
165
|
+
data: JobResponse;
|
|
166
|
+
status: 200;
|
|
167
|
+
};
|
|
168
|
+
export type enqueueLegacyPromptResponse401 = {
|
|
169
|
+
data: ErrorResponse;
|
|
170
|
+
status: 401;
|
|
171
|
+
};
|
|
172
|
+
export type enqueueLegacyPromptResponse410 = {
|
|
173
|
+
data: ErrorResponse;
|
|
174
|
+
status: 410;
|
|
175
|
+
};
|
|
176
|
+
export type enqueueLegacyPromptResponse422 = {
|
|
177
|
+
data: ErrorResponse;
|
|
178
|
+
status: 422;
|
|
179
|
+
};
|
|
180
|
+
export type enqueueLegacyPromptResponseSuccess = (enqueueLegacyPromptResponse200) & {
|
|
181
|
+
headers: Headers;
|
|
182
|
+
};
|
|
183
|
+
export type enqueueLegacyPromptResponseError = (enqueueLegacyPromptResponse401 | enqueueLegacyPromptResponse410 | enqueueLegacyPromptResponse422) & {
|
|
184
|
+
headers: Headers;
|
|
185
|
+
};
|
|
186
|
+
export type enqueueLegacyPromptResponse = (enqueueLegacyPromptResponseSuccess | enqueueLegacyPromptResponseError);
|
|
187
|
+
export declare const getEnqueueLegacyPromptUrl: () => string;
|
|
188
|
+
/**
|
|
189
|
+
* @summary Submit Prompt Compat
|
|
190
|
+
*/
|
|
191
|
+
export declare const enqueueLegacyPrompt: (promptInput: PromptInput, options?: RequestInit) => Promise<enqueueLegacyPromptResponse>;
|
|
192
|
+
export type getLegacyPromptResponse200 = {
|
|
193
|
+
data: JobResponse;
|
|
194
|
+
status: 200;
|
|
195
|
+
};
|
|
196
|
+
export type getLegacyPromptResponse401 = {
|
|
197
|
+
data: ErrorResponse;
|
|
198
|
+
status: 401;
|
|
199
|
+
};
|
|
200
|
+
export type getLegacyPromptResponse404 = {
|
|
201
|
+
data: ErrorResponse;
|
|
202
|
+
status: 404;
|
|
203
|
+
};
|
|
204
|
+
export type getLegacyPromptResponse422 = {
|
|
205
|
+
data: HTTPValidationError;
|
|
206
|
+
status: 422;
|
|
207
|
+
};
|
|
208
|
+
export type getLegacyPromptResponseSuccess = (getLegacyPromptResponse200) & {
|
|
209
|
+
headers: Headers;
|
|
210
|
+
};
|
|
211
|
+
export type getLegacyPromptResponseError = (getLegacyPromptResponse401 | getLegacyPromptResponse404 | getLegacyPromptResponse422) & {
|
|
212
|
+
headers: Headers;
|
|
213
|
+
};
|
|
214
|
+
export type getLegacyPromptResponse = (getLegacyPromptResponseSuccess | getLegacyPromptResponseError);
|
|
215
|
+
export declare const getGetLegacyPromptUrl: (jobId: string) => string;
|
|
216
|
+
/**
|
|
217
|
+
* @summary Prompt Status
|
|
218
|
+
*/
|
|
219
|
+
export declare const getLegacyPrompt: (jobId: string, options?: RequestInit) => Promise<getLegacyPromptResponse>;
|
|
220
|
+
export type enqueueQueueItemResponse200 = {
|
|
221
|
+
data: JobResponse;
|
|
222
|
+
status: 200;
|
|
223
|
+
};
|
|
224
|
+
export type enqueueQueueItemResponse401 = {
|
|
225
|
+
data: ErrorResponse;
|
|
226
|
+
status: 401;
|
|
227
|
+
};
|
|
228
|
+
export type enqueueQueueItemResponse409 = {
|
|
229
|
+
data: ErrorResponse;
|
|
230
|
+
status: 409;
|
|
231
|
+
};
|
|
232
|
+
export type enqueueQueueItemResponse413 = {
|
|
233
|
+
data: ErrorResponse;
|
|
234
|
+
status: 413;
|
|
235
|
+
};
|
|
236
|
+
export type enqueueQueueItemResponse422 = {
|
|
237
|
+
data: ErrorResponse;
|
|
238
|
+
status: 422;
|
|
239
|
+
};
|
|
240
|
+
export type enqueueQueueItemResponse429 = {
|
|
241
|
+
data: ErrorResponse;
|
|
242
|
+
status: 429;
|
|
243
|
+
};
|
|
244
|
+
export type enqueueQueueItemResponseSuccess = (enqueueQueueItemResponse200) & {
|
|
245
|
+
headers: Headers;
|
|
246
|
+
};
|
|
247
|
+
export type enqueueQueueItemResponseError = (enqueueQueueItemResponse401 | enqueueQueueItemResponse409 | enqueueQueueItemResponse413 | enqueueQueueItemResponse422 | enqueueQueueItemResponse429) & {
|
|
248
|
+
headers: Headers;
|
|
249
|
+
};
|
|
250
|
+
export type enqueueQueueItemResponse = (enqueueQueueItemResponseSuccess | enqueueQueueItemResponseError);
|
|
251
|
+
export declare const getEnqueueQueueItemUrl: () => string;
|
|
252
|
+
/**
|
|
253
|
+
* @summary Queue Json
|
|
254
|
+
*/
|
|
255
|
+
export declare const enqueueQueueItem: (queueItemJson: QueueItemJson, options?: RequestInit) => Promise<enqueueQueueItemResponse>;
|
|
256
|
+
export type uploadQueuePairResponse200 = {
|
|
257
|
+
data: QueuePairResponse;
|
|
258
|
+
status: 200;
|
|
259
|
+
};
|
|
260
|
+
export type uploadQueuePairResponse401 = {
|
|
261
|
+
data: ErrorResponse;
|
|
262
|
+
status: 401;
|
|
263
|
+
};
|
|
264
|
+
export type uploadQueuePairResponse409 = {
|
|
265
|
+
data: ErrorResponse;
|
|
266
|
+
status: 409;
|
|
267
|
+
};
|
|
268
|
+
export type uploadQueuePairResponse413 = {
|
|
269
|
+
data: ErrorResponse;
|
|
270
|
+
status: 413;
|
|
271
|
+
};
|
|
272
|
+
export type uploadQueuePairResponse422 = {
|
|
273
|
+
data: ErrorResponse;
|
|
274
|
+
status: 422;
|
|
275
|
+
};
|
|
276
|
+
export type uploadQueuePairResponse429 = {
|
|
277
|
+
data: ErrorResponse;
|
|
278
|
+
status: 429;
|
|
279
|
+
};
|
|
280
|
+
export type uploadQueuePairResponseSuccess = (uploadQueuePairResponse200) & {
|
|
281
|
+
headers: Headers;
|
|
282
|
+
};
|
|
283
|
+
export type uploadQueuePairResponseError = (uploadQueuePairResponse401 | uploadQueuePairResponse409 | uploadQueuePairResponse413 | uploadQueuePairResponse422 | uploadQueuePairResponse429) & {
|
|
284
|
+
headers: Headers;
|
|
285
|
+
};
|
|
286
|
+
export type uploadQueuePairResponse = (uploadQueuePairResponseSuccess | uploadQueuePairResponseError);
|
|
287
|
+
export declare const getUploadQueuePairUrl: () => string;
|
|
288
|
+
/**
|
|
289
|
+
* Atomically receive finished image and audio bytes from a remote producer.
|
|
290
|
+
*
|
|
291
|
+
* The two jobs stay `ingesting` until both files are checksum-verified and
|
|
292
|
+
* committed. `staged=true` persists the pair without making it eligible for
|
|
293
|
+
* playout; the authenticated release endpoint activates it later.
|
|
294
|
+
* @summary Queue Pair Upload
|
|
295
|
+
*/
|
|
296
|
+
export declare const uploadQueuePair: (bodyUploadQueuePair: BodyUploadQueuePair, options?: RequestInit) => Promise<uploadQueuePairResponse>;
|
|
297
|
+
export type getQueuePairResponse200 = {
|
|
298
|
+
data: QueuePairResponse;
|
|
299
|
+
status: 200;
|
|
300
|
+
};
|
|
301
|
+
export type getQueuePairResponse401 = {
|
|
302
|
+
data: ErrorResponse;
|
|
303
|
+
status: 401;
|
|
304
|
+
};
|
|
305
|
+
export type getQueuePairResponse404 = {
|
|
306
|
+
data: ErrorResponse;
|
|
307
|
+
status: 404;
|
|
308
|
+
};
|
|
309
|
+
export type getQueuePairResponse422 = {
|
|
310
|
+
data: HTTPValidationError;
|
|
311
|
+
status: 422;
|
|
312
|
+
};
|
|
313
|
+
export type getQueuePairResponseSuccess = (getQueuePairResponse200) & {
|
|
314
|
+
headers: Headers;
|
|
315
|
+
};
|
|
316
|
+
export type getQueuePairResponseError = (getQueuePairResponse401 | getQueuePairResponse404 | getQueuePairResponse422) & {
|
|
317
|
+
headers: Headers;
|
|
318
|
+
};
|
|
319
|
+
export type getQueuePairResponse = (getQueuePairResponseSuccess | getQueuePairResponseError);
|
|
320
|
+
export declare const getGetQueuePairUrl: (pairId: string) => string;
|
|
321
|
+
/**
|
|
322
|
+
* @summary Queue Pair Status
|
|
323
|
+
*/
|
|
324
|
+
export declare const getQueuePair: (pairId: string, options?: RequestInit) => Promise<getQueuePairResponse>;
|
|
325
|
+
export type releaseQueuePairResponse200 = {
|
|
326
|
+
data: QueuePairResponse;
|
|
327
|
+
status: 200;
|
|
328
|
+
};
|
|
329
|
+
export type releaseQueuePairResponse401 = {
|
|
330
|
+
data: ErrorResponse;
|
|
331
|
+
status: 401;
|
|
332
|
+
};
|
|
333
|
+
export type releaseQueuePairResponse404 = {
|
|
334
|
+
data: ErrorResponse;
|
|
335
|
+
status: 404;
|
|
336
|
+
};
|
|
337
|
+
export type releaseQueuePairResponse409 = {
|
|
338
|
+
data: ErrorResponse;
|
|
339
|
+
status: 409;
|
|
340
|
+
};
|
|
341
|
+
export type releaseQueuePairResponse422 = {
|
|
342
|
+
data: HTTPValidationError;
|
|
343
|
+
status: 422;
|
|
344
|
+
};
|
|
345
|
+
export type releaseQueuePairResponseSuccess = (releaseQueuePairResponse200) & {
|
|
346
|
+
headers: Headers;
|
|
347
|
+
};
|
|
348
|
+
export type releaseQueuePairResponseError = (releaseQueuePairResponse401 | releaseQueuePairResponse404 | releaseQueuePairResponse409 | releaseQueuePairResponse422) & {
|
|
349
|
+
headers: Headers;
|
|
350
|
+
};
|
|
351
|
+
export type releaseQueuePairResponse = (releaseQueuePairResponseSuccess | releaseQueuePairResponseError);
|
|
352
|
+
export declare const getReleaseQueuePairUrl: (pairId: string) => string;
|
|
353
|
+
/**
|
|
354
|
+
* @summary Release Queue Pair
|
|
355
|
+
*/
|
|
356
|
+
export declare const releaseQueuePair: (pairId: string, options?: RequestInit) => Promise<releaseQueuePairResponse>;
|
|
357
|
+
export type getQueueSlotResponse200 = {
|
|
358
|
+
data: QueueSlotResponse;
|
|
359
|
+
status: 200;
|
|
360
|
+
};
|
|
361
|
+
export type getQueueSlotResponse401 = {
|
|
362
|
+
data: ErrorResponse;
|
|
363
|
+
status: 401;
|
|
364
|
+
};
|
|
365
|
+
export type getQueueSlotResponse404 = {
|
|
366
|
+
data: ErrorResponse;
|
|
367
|
+
status: 404;
|
|
368
|
+
};
|
|
369
|
+
export type getQueueSlotResponse422 = {
|
|
370
|
+
data: HTTPValidationError;
|
|
371
|
+
status: 422;
|
|
372
|
+
};
|
|
373
|
+
export type getQueueSlotResponseSuccess = (getQueueSlotResponse200) & {
|
|
374
|
+
headers: Headers;
|
|
375
|
+
};
|
|
376
|
+
export type getQueueSlotResponseError = (getQueueSlotResponse401 | getQueueSlotResponse404 | getQueueSlotResponse422) & {
|
|
377
|
+
headers: Headers;
|
|
378
|
+
};
|
|
379
|
+
export type getQueueSlotResponse = (getQueueSlotResponseSuccess | getQueueSlotResponseError);
|
|
380
|
+
export declare const getGetQueueSlotUrl: (slotKey: string) => string;
|
|
381
|
+
/**
|
|
382
|
+
* @summary Queue Slot Status
|
|
383
|
+
*/
|
|
384
|
+
export declare const getQueueSlot: (slotKey: string, options?: RequestInit) => Promise<getQueueSlotResponse>;
|
|
385
|
+
export type releaseQueueSlotResponse200 = {
|
|
386
|
+
data: QueueSlotResponse;
|
|
387
|
+
status: 200;
|
|
388
|
+
};
|
|
389
|
+
export type releaseQueueSlotResponse401 = {
|
|
390
|
+
data: ErrorResponse;
|
|
391
|
+
status: 401;
|
|
392
|
+
};
|
|
393
|
+
export type releaseQueueSlotResponse404 = {
|
|
394
|
+
data: ErrorResponse;
|
|
395
|
+
status: 404;
|
|
396
|
+
};
|
|
397
|
+
export type releaseQueueSlotResponse409 = {
|
|
398
|
+
data: ErrorResponse;
|
|
399
|
+
status: 409;
|
|
400
|
+
};
|
|
401
|
+
export type releaseQueueSlotResponse422 = {
|
|
402
|
+
data: HTTPValidationError;
|
|
403
|
+
status: 422;
|
|
404
|
+
};
|
|
405
|
+
export type releaseQueueSlotResponseSuccess = (releaseQueueSlotResponse200) & {
|
|
406
|
+
headers: Headers;
|
|
407
|
+
};
|
|
408
|
+
export type releaseQueueSlotResponseError = (releaseQueueSlotResponse401 | releaseQueueSlotResponse404 | releaseQueueSlotResponse409 | releaseQueueSlotResponse422) & {
|
|
409
|
+
headers: Headers;
|
|
410
|
+
};
|
|
411
|
+
export type releaseQueueSlotResponse = (releaseQueueSlotResponseSuccess | releaseQueueSlotResponseError);
|
|
412
|
+
export declare const getReleaseQueueSlotUrl: (slotKey: string) => string;
|
|
413
|
+
/**
|
|
414
|
+
* @summary Release Queue Slot
|
|
415
|
+
*/
|
|
416
|
+
export declare const releaseQueueSlot: (slotKey: string, options?: RequestInit) => Promise<releaseQueueSlotResponse>;
|
|
417
|
+
export type uploadQueueItemResponse200 = {
|
|
418
|
+
data: JobResponse;
|
|
419
|
+
status: 200;
|
|
420
|
+
};
|
|
421
|
+
export type uploadQueueItemResponse401 = {
|
|
422
|
+
data: ErrorResponse;
|
|
423
|
+
status: 401;
|
|
424
|
+
};
|
|
425
|
+
export type uploadQueueItemResponse413 = {
|
|
426
|
+
data: ErrorResponse;
|
|
427
|
+
status: 413;
|
|
428
|
+
};
|
|
429
|
+
export type uploadQueueItemResponse422 = {
|
|
430
|
+
data: ErrorResponse;
|
|
431
|
+
status: 422;
|
|
432
|
+
};
|
|
433
|
+
export type uploadQueueItemResponse429 = {
|
|
434
|
+
data: ErrorResponse;
|
|
435
|
+
status: 429;
|
|
436
|
+
};
|
|
437
|
+
export type uploadQueueItemResponseSuccess = (uploadQueueItemResponse200) & {
|
|
438
|
+
headers: Headers;
|
|
439
|
+
};
|
|
440
|
+
export type uploadQueueItemResponseError = (uploadQueueItemResponse401 | uploadQueueItemResponse413 | uploadQueueItemResponse422 | uploadQueueItemResponse429) & {
|
|
441
|
+
headers: Headers;
|
|
442
|
+
};
|
|
443
|
+
export type uploadQueueItemResponse = (uploadQueueItemResponseSuccess | uploadQueueItemResponseError);
|
|
444
|
+
export declare const getUploadQueueItemUrl: () => string;
|
|
445
|
+
/**
|
|
446
|
+
* @summary Queue Upload
|
|
447
|
+
*/
|
|
448
|
+
export declare const uploadQueueItem: (bodyUploadQueueItem: BodyUploadQueueItem, options?: RequestInit) => Promise<uploadQueueItemResponse>;
|
|
449
|
+
export type getQueueItemResponse200 = {
|
|
450
|
+
data: JobResponse;
|
|
451
|
+
status: 200;
|
|
452
|
+
};
|
|
453
|
+
export type getQueueItemResponse401 = {
|
|
454
|
+
data: ErrorResponse;
|
|
455
|
+
status: 401;
|
|
456
|
+
};
|
|
457
|
+
export type getQueueItemResponse404 = {
|
|
458
|
+
data: ErrorResponse;
|
|
459
|
+
status: 404;
|
|
460
|
+
};
|
|
461
|
+
export type getQueueItemResponse422 = {
|
|
462
|
+
data: HTTPValidationError;
|
|
463
|
+
status: 422;
|
|
464
|
+
};
|
|
465
|
+
export type getQueueItemResponseSuccess = (getQueueItemResponse200) & {
|
|
466
|
+
headers: Headers;
|
|
467
|
+
};
|
|
468
|
+
export type getQueueItemResponseError = (getQueueItemResponse401 | getQueueItemResponse404 | getQueueItemResponse422) & {
|
|
469
|
+
headers: Headers;
|
|
470
|
+
};
|
|
471
|
+
export type getQueueItemResponse = (getQueueItemResponseSuccess | getQueueItemResponseError);
|
|
472
|
+
export declare const getGetQueueItemUrl: (jobId: string) => string;
|
|
473
|
+
/**
|
|
474
|
+
* @summary Queue Status
|
|
475
|
+
*/
|
|
476
|
+
export declare const getQueueItem: (jobId: string, options?: RequestInit) => Promise<getQueueItemResponse>;
|
|
477
|
+
export type getStreamInfoResponse200 = {
|
|
478
|
+
data: StreamInfoResponse;
|
|
479
|
+
status: 200;
|
|
480
|
+
};
|
|
481
|
+
export type getStreamInfoResponse401 = {
|
|
482
|
+
data: ErrorResponse;
|
|
483
|
+
status: 401;
|
|
484
|
+
};
|
|
485
|
+
export type getStreamInfoResponse422 = {
|
|
486
|
+
data: HTTPValidationError;
|
|
487
|
+
status: 422;
|
|
488
|
+
};
|
|
489
|
+
export type getStreamInfoResponseSuccess = (getStreamInfoResponse200) & {
|
|
490
|
+
headers: Headers;
|
|
491
|
+
};
|
|
492
|
+
export type getStreamInfoResponseError = (getStreamInfoResponse401 | getStreamInfoResponse422) & {
|
|
493
|
+
headers: Headers;
|
|
494
|
+
};
|
|
495
|
+
export type getStreamInfoResponse = (getStreamInfoResponseSuccess | getStreamInfoResponseError);
|
|
496
|
+
export declare const getGetStreamInfoUrl: () => string;
|
|
497
|
+
/**
|
|
498
|
+
* @summary Stream Info
|
|
499
|
+
*/
|
|
500
|
+
export declare const getStreamInfo: (options?: RequestInit) => Promise<getStreamInfoResponse>;
|