@darco2903/altv-web-api 1.4.0 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +184 -135
- package/dist/contract/index.d.ts +297 -279
- package/dist/contract/mediaStream.d.ts +218 -88
- package/dist/contract/mediaStream.js +6 -6
- package/dist/contract/youtube.d.ts +79 -191
- package/dist/contract/youtube.js +4 -22
- package/dist/types/youtube.d.ts +0 -4
- package/dist/types/youtube.js +0 -16
- package/dist/types.d.ts +29 -0
- package/dist/types.js +5 -0
- package/package.json +1 -1
package/dist/contract/index.d.ts
CHANGED
|
@@ -1,154 +1,30 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
youtube: {
|
|
3
|
-
|
|
3
|
+
search: {
|
|
4
4
|
query: import("zod").ZodObject<{
|
|
5
|
-
|
|
6
|
-
filter: import("zod").ZodOptional<import("zod").ZodEnum<["audio", "audioandvideo", "audioonly", "video", "videoandaudio", "videoonly"]>>;
|
|
5
|
+
q: import("zod").ZodString;
|
|
7
6
|
}, "strip", import("zod").ZodTypeAny, {
|
|
8
|
-
|
|
9
|
-
quality?: "highest" | "highestaudio" | "highestvideo" | "lowest" | "lowestaudio" | "lowestvideo" | undefined;
|
|
7
|
+
q: string;
|
|
10
8
|
}, {
|
|
11
|
-
|
|
12
|
-
quality?: "highest" | "highestaudio" | "highestvideo" | "lowest" | "lowestaudio" | "lowestvideo" | undefined;
|
|
9
|
+
q: string;
|
|
13
10
|
}>;
|
|
14
|
-
description: "
|
|
11
|
+
description: "Search YouTube videos";
|
|
15
12
|
method: "GET";
|
|
16
|
-
path: "/api/v2/youtube/
|
|
13
|
+
path: "/api/v2/youtube/search";
|
|
17
14
|
responses: {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
url: string;
|
|
22
|
-
}, {
|
|
23
|
-
url: string;
|
|
24
|
-
}>;
|
|
25
|
-
400: import("zod").ZodUnion<[import("zod").ZodObject<{
|
|
26
|
-
name: import("zod").ZodLiteral<"ZodError">;
|
|
27
|
-
issues: import("zod").ZodArray<import("zod").ZodObject<{
|
|
28
|
-
path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
|
|
29
|
-
message: import("zod").ZodOptional<import("zod").ZodString>;
|
|
30
|
-
code: import("zod").ZodNativeEnum<{
|
|
31
|
-
invalid_type: "invalid_type";
|
|
32
|
-
invalid_literal: "invalid_literal";
|
|
33
|
-
custom: "custom";
|
|
34
|
-
invalid_union: "invalid_union";
|
|
35
|
-
invalid_union_discriminator: "invalid_union_discriminator";
|
|
36
|
-
invalid_enum_value: "invalid_enum_value";
|
|
37
|
-
unrecognized_keys: "unrecognized_keys";
|
|
38
|
-
invalid_arguments: "invalid_arguments";
|
|
39
|
-
invalid_return_type: "invalid_return_type";
|
|
40
|
-
invalid_date: "invalid_date";
|
|
41
|
-
invalid_string: "invalid_string";
|
|
42
|
-
too_small: "too_small";
|
|
43
|
-
too_big: "too_big";
|
|
44
|
-
invalid_intersection_types: "invalid_intersection_types";
|
|
45
|
-
not_multiple_of: "not_multiple_of";
|
|
46
|
-
not_finite: "not_finite";
|
|
47
|
-
}>;
|
|
48
|
-
}, "strip", import("zod").ZodAny, import("zod").objectOutputType<{
|
|
49
|
-
path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
|
|
50
|
-
message: import("zod").ZodOptional<import("zod").ZodString>;
|
|
51
|
-
code: import("zod").ZodNativeEnum<{
|
|
52
|
-
invalid_type: "invalid_type";
|
|
53
|
-
invalid_literal: "invalid_literal";
|
|
54
|
-
custom: "custom";
|
|
55
|
-
invalid_union: "invalid_union";
|
|
56
|
-
invalid_union_discriminator: "invalid_union_discriminator";
|
|
57
|
-
invalid_enum_value: "invalid_enum_value";
|
|
58
|
-
unrecognized_keys: "unrecognized_keys";
|
|
59
|
-
invalid_arguments: "invalid_arguments";
|
|
60
|
-
invalid_return_type: "invalid_return_type";
|
|
61
|
-
invalid_date: "invalid_date";
|
|
62
|
-
invalid_string: "invalid_string";
|
|
63
|
-
too_small: "too_small";
|
|
64
|
-
too_big: "too_big";
|
|
65
|
-
invalid_intersection_types: "invalid_intersection_types";
|
|
66
|
-
not_multiple_of: "not_multiple_of";
|
|
67
|
-
not_finite: "not_finite";
|
|
68
|
-
}>;
|
|
69
|
-
}, import("zod").ZodAny, "strip">, import("zod").objectInputType<{
|
|
70
|
-
path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
|
|
71
|
-
message: import("zod").ZodOptional<import("zod").ZodString>;
|
|
72
|
-
code: import("zod").ZodNativeEnum<{
|
|
73
|
-
invalid_type: "invalid_type";
|
|
74
|
-
invalid_literal: "invalid_literal";
|
|
75
|
-
custom: "custom";
|
|
76
|
-
invalid_union: "invalid_union";
|
|
77
|
-
invalid_union_discriminator: "invalid_union_discriminator";
|
|
78
|
-
invalid_enum_value: "invalid_enum_value";
|
|
79
|
-
unrecognized_keys: "unrecognized_keys";
|
|
80
|
-
invalid_arguments: "invalid_arguments";
|
|
81
|
-
invalid_return_type: "invalid_return_type";
|
|
82
|
-
invalid_date: "invalid_date";
|
|
83
|
-
invalid_string: "invalid_string";
|
|
84
|
-
too_small: "too_small";
|
|
85
|
-
too_big: "too_big";
|
|
86
|
-
invalid_intersection_types: "invalid_intersection_types";
|
|
87
|
-
not_multiple_of: "not_multiple_of";
|
|
88
|
-
not_finite: "not_finite";
|
|
89
|
-
}>;
|
|
90
|
-
}, import("zod").ZodAny, "strip">>, "many">;
|
|
91
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
92
|
-
name: "ZodError";
|
|
93
|
-
issues: import("zod").objectOutputType<{
|
|
94
|
-
path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
|
|
95
|
-
message: import("zod").ZodOptional<import("zod").ZodString>;
|
|
96
|
-
code: import("zod").ZodNativeEnum<{
|
|
97
|
-
invalid_type: "invalid_type";
|
|
98
|
-
invalid_literal: "invalid_literal";
|
|
99
|
-
custom: "custom";
|
|
100
|
-
invalid_union: "invalid_union";
|
|
101
|
-
invalid_union_discriminator: "invalid_union_discriminator";
|
|
102
|
-
invalid_enum_value: "invalid_enum_value";
|
|
103
|
-
unrecognized_keys: "unrecognized_keys";
|
|
104
|
-
invalid_arguments: "invalid_arguments";
|
|
105
|
-
invalid_return_type: "invalid_return_type";
|
|
106
|
-
invalid_date: "invalid_date";
|
|
107
|
-
invalid_string: "invalid_string";
|
|
108
|
-
too_small: "too_small";
|
|
109
|
-
too_big: "too_big";
|
|
110
|
-
invalid_intersection_types: "invalid_intersection_types";
|
|
111
|
-
not_multiple_of: "not_multiple_of";
|
|
112
|
-
not_finite: "not_finite";
|
|
113
|
-
}>;
|
|
114
|
-
}, import("zod").ZodAny, "strip">[];
|
|
115
|
-
}, {
|
|
116
|
-
name: "ZodError";
|
|
117
|
-
issues: import("zod").objectInputType<{
|
|
118
|
-
path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
|
|
119
|
-
message: import("zod").ZodOptional<import("zod").ZodString>;
|
|
120
|
-
code: import("zod").ZodNativeEnum<{
|
|
121
|
-
invalid_type: "invalid_type";
|
|
122
|
-
invalid_literal: "invalid_literal";
|
|
123
|
-
custom: "custom";
|
|
124
|
-
invalid_union: "invalid_union";
|
|
125
|
-
invalid_union_discriminator: "invalid_union_discriminator";
|
|
126
|
-
invalid_enum_value: "invalid_enum_value";
|
|
127
|
-
unrecognized_keys: "unrecognized_keys";
|
|
128
|
-
invalid_arguments: "invalid_arguments";
|
|
129
|
-
invalid_return_type: "invalid_return_type";
|
|
130
|
-
invalid_date: "invalid_date";
|
|
131
|
-
invalid_string: "invalid_string";
|
|
132
|
-
too_small: "too_small";
|
|
133
|
-
too_big: "too_big";
|
|
134
|
-
invalid_intersection_types: "invalid_intersection_types";
|
|
135
|
-
not_multiple_of: "not_multiple_of";
|
|
136
|
-
not_finite: "not_finite";
|
|
137
|
-
}>;
|
|
138
|
-
}, import("zod").ZodAny, "strip">[];
|
|
139
|
-
}>, import("zod").ZodObject<{
|
|
140
|
-
code: import("zod").ZodType<"INVALID_VIDEO_ID", import("zod").ZodTypeDef, "INVALID_VIDEO_ID">;
|
|
141
|
-
error: import("zod").ZodType<"The provided video ID is invalid", import("zod").ZodTypeDef, "The provided video ID is invalid">;
|
|
15
|
+
429: import("zod").ZodObject<{
|
|
16
|
+
code: import("zod").ZodType<"TOO_MANY_SEARCHES", import("zod").ZodTypeDef, "TOO_MANY_SEARCHES">;
|
|
17
|
+
error: import("zod").ZodType<"Too many searches are running", import("zod").ZodTypeDef, "Too many searches are running">;
|
|
142
18
|
name: import("zod").ZodLiteral<"APIError">;
|
|
143
19
|
}, "strip", import("zod").ZodTypeAny, {
|
|
144
|
-
code: "
|
|
145
|
-
error: "
|
|
20
|
+
code: "TOO_MANY_SEARCHES";
|
|
21
|
+
error: "Too many searches are running";
|
|
146
22
|
name: "APIError";
|
|
147
23
|
}, {
|
|
148
|
-
code: "
|
|
149
|
-
error: "
|
|
24
|
+
code: "TOO_MANY_SEARCHES";
|
|
25
|
+
error: "Too many searches are running";
|
|
150
26
|
name: "APIError";
|
|
151
|
-
}
|
|
27
|
+
}>;
|
|
152
28
|
500: import("zod").ZodObject<{
|
|
153
29
|
code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
|
|
154
30
|
error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
|
|
@@ -162,20 +38,32 @@ declare const _default: {
|
|
|
162
38
|
error: string;
|
|
163
39
|
name: "APIError";
|
|
164
40
|
}>;
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
41
|
+
401: import("zod").ZodObject<{
|
|
42
|
+
code: import("zod").ZodType<"UNAUTHORIZED", import("zod").ZodTypeDef, "UNAUTHORIZED">;
|
|
43
|
+
error: import("zod").ZodType<"Unauthorized", import("zod").ZodTypeDef, "Unauthorized">;
|
|
44
|
+
name: import("zod").ZodLiteral<"APIError">;
|
|
45
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
46
|
+
code: "UNAUTHORIZED";
|
|
47
|
+
error: "Unauthorized";
|
|
48
|
+
name: "APIError";
|
|
49
|
+
}, {
|
|
50
|
+
code: "UNAUTHORIZED";
|
|
51
|
+
error: "Unauthorized";
|
|
52
|
+
name: "APIError";
|
|
53
|
+
}>;
|
|
54
|
+
403: import("zod").ZodObject<{
|
|
55
|
+
code: import("zod").ZodType<"FORBIDDEN", import("zod").ZodTypeDef, "FORBIDDEN">;
|
|
56
|
+
error: import("zod").ZodType<"Forbidden", import("zod").ZodTypeDef, "Forbidden">;
|
|
57
|
+
name: import("zod").ZodLiteral<"APIError">;
|
|
58
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
59
|
+
code: "FORBIDDEN";
|
|
60
|
+
error: "Forbidden";
|
|
61
|
+
name: "APIError";
|
|
62
|
+
}, {
|
|
63
|
+
code: "FORBIDDEN";
|
|
64
|
+
error: "Forbidden";
|
|
65
|
+
name: "APIError";
|
|
66
|
+
}>;
|
|
179
67
|
200: import("zod").ZodObject<{
|
|
180
68
|
results: import("zod").ZodArray<import("zod").ZodObject<{
|
|
181
69
|
videoId: import("zod").ZodString;
|
|
@@ -333,32 +221,6 @@ declare const _default: {
|
|
|
333
221
|
}>;
|
|
334
222
|
}, import("zod").ZodAny, "strip">[];
|
|
335
223
|
}>;
|
|
336
|
-
429: import("zod").ZodObject<{
|
|
337
|
-
code: import("zod").ZodType<"TOO_MANY_SEARCHES", import("zod").ZodTypeDef, "TOO_MANY_SEARCHES">;
|
|
338
|
-
error: import("zod").ZodType<"Too many searches are running", import("zod").ZodTypeDef, "Too many searches are running">;
|
|
339
|
-
name: import("zod").ZodLiteral<"APIError">;
|
|
340
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
341
|
-
code: "TOO_MANY_SEARCHES";
|
|
342
|
-
error: "Too many searches are running";
|
|
343
|
-
name: "APIError";
|
|
344
|
-
}, {
|
|
345
|
-
code: "TOO_MANY_SEARCHES";
|
|
346
|
-
error: "Too many searches are running";
|
|
347
|
-
name: "APIError";
|
|
348
|
-
}>;
|
|
349
|
-
500: import("zod").ZodObject<{
|
|
350
|
-
code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
|
|
351
|
-
error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
|
|
352
|
-
name: import("zod").ZodLiteral<"APIError">;
|
|
353
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
354
|
-
code: "INTERNAL_SERVER_ERROR";
|
|
355
|
-
error: string;
|
|
356
|
-
name: "APIError";
|
|
357
|
-
}, {
|
|
358
|
-
code: "INTERNAL_SERVER_ERROR";
|
|
359
|
-
error: string;
|
|
360
|
-
name: "APIError";
|
|
361
|
-
}>;
|
|
362
224
|
};
|
|
363
225
|
};
|
|
364
226
|
suggest: {
|
|
@@ -373,6 +235,45 @@ declare const _default: {
|
|
|
373
235
|
method: "GET";
|
|
374
236
|
path: "/api/v2/youtube/suggest";
|
|
375
237
|
responses: {
|
|
238
|
+
500: import("zod").ZodObject<{
|
|
239
|
+
code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
|
|
240
|
+
error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
|
|
241
|
+
name: import("zod").ZodLiteral<"APIError">;
|
|
242
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
243
|
+
code: "INTERNAL_SERVER_ERROR";
|
|
244
|
+
error: string;
|
|
245
|
+
name: "APIError";
|
|
246
|
+
}, {
|
|
247
|
+
code: "INTERNAL_SERVER_ERROR";
|
|
248
|
+
error: string;
|
|
249
|
+
name: "APIError";
|
|
250
|
+
}>;
|
|
251
|
+
401: import("zod").ZodObject<{
|
|
252
|
+
code: import("zod").ZodType<"UNAUTHORIZED", import("zod").ZodTypeDef, "UNAUTHORIZED">;
|
|
253
|
+
error: import("zod").ZodType<"Unauthorized", import("zod").ZodTypeDef, "Unauthorized">;
|
|
254
|
+
name: import("zod").ZodLiteral<"APIError">;
|
|
255
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
256
|
+
code: "UNAUTHORIZED";
|
|
257
|
+
error: "Unauthorized";
|
|
258
|
+
name: "APIError";
|
|
259
|
+
}, {
|
|
260
|
+
code: "UNAUTHORIZED";
|
|
261
|
+
error: "Unauthorized";
|
|
262
|
+
name: "APIError";
|
|
263
|
+
}>;
|
|
264
|
+
403: import("zod").ZodObject<{
|
|
265
|
+
code: import("zod").ZodType<"FORBIDDEN", import("zod").ZodTypeDef, "FORBIDDEN">;
|
|
266
|
+
error: import("zod").ZodType<"Forbidden", import("zod").ZodTypeDef, "Forbidden">;
|
|
267
|
+
name: import("zod").ZodLiteral<"APIError">;
|
|
268
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
269
|
+
code: "FORBIDDEN";
|
|
270
|
+
error: "Forbidden";
|
|
271
|
+
name: "APIError";
|
|
272
|
+
}, {
|
|
273
|
+
code: "FORBIDDEN";
|
|
274
|
+
error: "Forbidden";
|
|
275
|
+
name: "APIError";
|
|
276
|
+
}>;
|
|
376
277
|
200: import("zod").ZodObject<{
|
|
377
278
|
suggestions: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
378
279
|
}, "strip", import("zod").ZodTypeAny, {
|
|
@@ -495,19 +396,6 @@ declare const _default: {
|
|
|
495
396
|
}>;
|
|
496
397
|
}, import("zod").ZodAny, "strip">[];
|
|
497
398
|
}>;
|
|
498
|
-
500: import("zod").ZodObject<{
|
|
499
|
-
code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
|
|
500
|
-
error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
|
|
501
|
-
name: import("zod").ZodLiteral<"APIError">;
|
|
502
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
503
|
-
code: "INTERNAL_SERVER_ERROR";
|
|
504
|
-
error: string;
|
|
505
|
-
name: "APIError";
|
|
506
|
-
}, {
|
|
507
|
-
code: "INTERNAL_SERVER_ERROR";
|
|
508
|
-
error: string;
|
|
509
|
-
name: "APIError";
|
|
510
|
-
}>;
|
|
511
399
|
};
|
|
512
400
|
};
|
|
513
401
|
};
|
|
@@ -677,6 +565,45 @@ declare const _default: {
|
|
|
677
565
|
}>;
|
|
678
566
|
path: "/api/v2/media-stream/init";
|
|
679
567
|
responses: {
|
|
568
|
+
500: import("zod").ZodObject<{
|
|
569
|
+
code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
|
|
570
|
+
error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
|
|
571
|
+
name: import("zod").ZodLiteral<"APIError">;
|
|
572
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
573
|
+
code: "INTERNAL_SERVER_ERROR";
|
|
574
|
+
error: string;
|
|
575
|
+
name: "APIError";
|
|
576
|
+
}, {
|
|
577
|
+
code: "INTERNAL_SERVER_ERROR";
|
|
578
|
+
error: string;
|
|
579
|
+
name: "APIError";
|
|
580
|
+
}>;
|
|
581
|
+
401: import("zod").ZodObject<{
|
|
582
|
+
code: import("zod").ZodType<"UNAUTHORIZED", import("zod").ZodTypeDef, "UNAUTHORIZED">;
|
|
583
|
+
error: import("zod").ZodType<"Unauthorized", import("zod").ZodTypeDef, "Unauthorized">;
|
|
584
|
+
name: import("zod").ZodLiteral<"APIError">;
|
|
585
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
586
|
+
code: "UNAUTHORIZED";
|
|
587
|
+
error: "Unauthorized";
|
|
588
|
+
name: "APIError";
|
|
589
|
+
}, {
|
|
590
|
+
code: "UNAUTHORIZED";
|
|
591
|
+
error: "Unauthorized";
|
|
592
|
+
name: "APIError";
|
|
593
|
+
}>;
|
|
594
|
+
403: import("zod").ZodObject<{
|
|
595
|
+
code: import("zod").ZodType<"FORBIDDEN", import("zod").ZodTypeDef, "FORBIDDEN">;
|
|
596
|
+
error: import("zod").ZodType<"Forbidden", import("zod").ZodTypeDef, "Forbidden">;
|
|
597
|
+
name: import("zod").ZodLiteral<"APIError">;
|
|
598
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
599
|
+
code: "FORBIDDEN";
|
|
600
|
+
error: "Forbidden";
|
|
601
|
+
name: "APIError";
|
|
602
|
+
}, {
|
|
603
|
+
code: "FORBIDDEN";
|
|
604
|
+
error: "Forbidden";
|
|
605
|
+
name: "APIError";
|
|
606
|
+
}>;
|
|
680
607
|
200: import("zod").ZodObject<{
|
|
681
608
|
streamId: import("zod").ZodString;
|
|
682
609
|
}, "strip", import("zod").ZodTypeAny, {
|
|
@@ -811,19 +738,6 @@ declare const _default: {
|
|
|
811
738
|
error: "The provided video ID is invalid";
|
|
812
739
|
name: "APIError";
|
|
813
740
|
}>]>;
|
|
814
|
-
500: import("zod").ZodObject<{
|
|
815
|
-
code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
|
|
816
|
-
error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
|
|
817
|
-
name: import("zod").ZodLiteral<"APIError">;
|
|
818
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
819
|
-
code: "INTERNAL_SERVER_ERROR";
|
|
820
|
-
error: string;
|
|
821
|
-
name: "APIError";
|
|
822
|
-
}, {
|
|
823
|
-
code: "INTERNAL_SERVER_ERROR";
|
|
824
|
-
error: string;
|
|
825
|
-
name: "APIError";
|
|
826
|
-
}>;
|
|
827
741
|
};
|
|
828
742
|
};
|
|
829
743
|
get: {
|
|
@@ -1134,6 +1048,58 @@ declare const _default: {
|
|
|
1134
1048
|
body: import("zod").ZodUndefined;
|
|
1135
1049
|
path: "/api/v2/media-stream/play/:streamId";
|
|
1136
1050
|
responses: {
|
|
1051
|
+
404: import("zod").ZodObject<{
|
|
1052
|
+
code: import("zod").ZodType<"STREAM_NOT_FOUND", import("zod").ZodTypeDef, "STREAM_NOT_FOUND">;
|
|
1053
|
+
error: import("zod").ZodType<"The requested stream was not found", import("zod").ZodTypeDef, "The requested stream was not found">;
|
|
1054
|
+
name: import("zod").ZodLiteral<"APIError">;
|
|
1055
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1056
|
+
code: "STREAM_NOT_FOUND";
|
|
1057
|
+
error: "The requested stream was not found";
|
|
1058
|
+
name: "APIError";
|
|
1059
|
+
}, {
|
|
1060
|
+
code: "STREAM_NOT_FOUND";
|
|
1061
|
+
error: "The requested stream was not found";
|
|
1062
|
+
name: "APIError";
|
|
1063
|
+
}>;
|
|
1064
|
+
500: import("zod").ZodObject<{
|
|
1065
|
+
code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
|
|
1066
|
+
error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
|
|
1067
|
+
name: import("zod").ZodLiteral<"APIError">;
|
|
1068
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1069
|
+
code: "INTERNAL_SERVER_ERROR";
|
|
1070
|
+
error: string;
|
|
1071
|
+
name: "APIError";
|
|
1072
|
+
}, {
|
|
1073
|
+
code: "INTERNAL_SERVER_ERROR";
|
|
1074
|
+
error: string;
|
|
1075
|
+
name: "APIError";
|
|
1076
|
+
}>;
|
|
1077
|
+
401: import("zod").ZodObject<{
|
|
1078
|
+
code: import("zod").ZodType<"UNAUTHORIZED", import("zod").ZodTypeDef, "UNAUTHORIZED">;
|
|
1079
|
+
error: import("zod").ZodType<"Unauthorized", import("zod").ZodTypeDef, "Unauthorized">;
|
|
1080
|
+
name: import("zod").ZodLiteral<"APIError">;
|
|
1081
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1082
|
+
code: "UNAUTHORIZED";
|
|
1083
|
+
error: "Unauthorized";
|
|
1084
|
+
name: "APIError";
|
|
1085
|
+
}, {
|
|
1086
|
+
code: "UNAUTHORIZED";
|
|
1087
|
+
error: "Unauthorized";
|
|
1088
|
+
name: "APIError";
|
|
1089
|
+
}>;
|
|
1090
|
+
403: import("zod").ZodObject<{
|
|
1091
|
+
code: import("zod").ZodType<"FORBIDDEN", import("zod").ZodTypeDef, "FORBIDDEN">;
|
|
1092
|
+
error: import("zod").ZodType<"Forbidden", import("zod").ZodTypeDef, "Forbidden">;
|
|
1093
|
+
name: import("zod").ZodLiteral<"APIError">;
|
|
1094
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1095
|
+
code: "FORBIDDEN";
|
|
1096
|
+
error: "Forbidden";
|
|
1097
|
+
name: "APIError";
|
|
1098
|
+
}, {
|
|
1099
|
+
code: "FORBIDDEN";
|
|
1100
|
+
error: "Forbidden";
|
|
1101
|
+
name: "APIError";
|
|
1102
|
+
}>;
|
|
1137
1103
|
200: typeof import("@ts-rest/core").ContractNoBody;
|
|
1138
1104
|
400: import("zod").ZodUnion<[import("zod").ZodObject<{
|
|
1139
1105
|
name: import("zod").ZodLiteral<"ZodError">;
|
|
@@ -1262,6 +1228,14 @@ declare const _default: {
|
|
|
1262
1228
|
error: "The provided stream ID is invalid";
|
|
1263
1229
|
name: "APIError";
|
|
1264
1230
|
}>]>;
|
|
1231
|
+
};
|
|
1232
|
+
};
|
|
1233
|
+
pause: {
|
|
1234
|
+
description: "Pause a media stream";
|
|
1235
|
+
method: "POST";
|
|
1236
|
+
body: import("zod").ZodUndefined;
|
|
1237
|
+
path: "/api/v2/media-stream/pause/:streamId";
|
|
1238
|
+
responses: {
|
|
1265
1239
|
404: import("zod").ZodObject<{
|
|
1266
1240
|
code: import("zod").ZodType<"STREAM_NOT_FOUND", import("zod").ZodTypeDef, "STREAM_NOT_FOUND">;
|
|
1267
1241
|
error: import("zod").ZodType<"The requested stream was not found", import("zod").ZodTypeDef, "The requested stream was not found">;
|
|
@@ -1288,14 +1262,32 @@ declare const _default: {
|
|
|
1288
1262
|
error: string;
|
|
1289
1263
|
name: "APIError";
|
|
1290
1264
|
}>;
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1265
|
+
401: import("zod").ZodObject<{
|
|
1266
|
+
code: import("zod").ZodType<"UNAUTHORIZED", import("zod").ZodTypeDef, "UNAUTHORIZED">;
|
|
1267
|
+
error: import("zod").ZodType<"Unauthorized", import("zod").ZodTypeDef, "Unauthorized">;
|
|
1268
|
+
name: import("zod").ZodLiteral<"APIError">;
|
|
1269
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1270
|
+
code: "UNAUTHORIZED";
|
|
1271
|
+
error: "Unauthorized";
|
|
1272
|
+
name: "APIError";
|
|
1273
|
+
}, {
|
|
1274
|
+
code: "UNAUTHORIZED";
|
|
1275
|
+
error: "Unauthorized";
|
|
1276
|
+
name: "APIError";
|
|
1277
|
+
}>;
|
|
1278
|
+
403: import("zod").ZodObject<{
|
|
1279
|
+
code: import("zod").ZodType<"FORBIDDEN", import("zod").ZodTypeDef, "FORBIDDEN">;
|
|
1280
|
+
error: import("zod").ZodType<"Forbidden", import("zod").ZodTypeDef, "Forbidden">;
|
|
1281
|
+
name: import("zod").ZodLiteral<"APIError">;
|
|
1282
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1283
|
+
code: "FORBIDDEN";
|
|
1284
|
+
error: "Forbidden";
|
|
1285
|
+
name: "APIError";
|
|
1286
|
+
}, {
|
|
1287
|
+
code: "FORBIDDEN";
|
|
1288
|
+
error: "Forbidden";
|
|
1289
|
+
name: "APIError";
|
|
1290
|
+
}>;
|
|
1299
1291
|
200: typeof import("@ts-rest/core").ContractNoBody;
|
|
1300
1292
|
400: import("zod").ZodUnion<[import("zod").ZodObject<{
|
|
1301
1293
|
name: import("zod").ZodLiteral<"ZodError">;
|
|
@@ -1424,6 +1416,21 @@ declare const _default: {
|
|
|
1424
1416
|
error: "The provided stream ID is invalid";
|
|
1425
1417
|
name: "APIError";
|
|
1426
1418
|
}>]>;
|
|
1419
|
+
};
|
|
1420
|
+
};
|
|
1421
|
+
seek: {
|
|
1422
|
+
query: import("zod").ZodObject<{
|
|
1423
|
+
time: import("zod").ZodNumber;
|
|
1424
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1425
|
+
time: number;
|
|
1426
|
+
}, {
|
|
1427
|
+
time: number;
|
|
1428
|
+
}>;
|
|
1429
|
+
description: "Seek a media stream";
|
|
1430
|
+
method: "POST";
|
|
1431
|
+
body: import("zod").ZodUndefined;
|
|
1432
|
+
path: "/api/v2/media-stream/seek/:streamId";
|
|
1433
|
+
responses: {
|
|
1427
1434
|
404: import("zod").ZodObject<{
|
|
1428
1435
|
code: import("zod").ZodType<"STREAM_NOT_FOUND", import("zod").ZodTypeDef, "STREAM_NOT_FOUND">;
|
|
1429
1436
|
error: import("zod").ZodType<"The requested stream was not found", import("zod").ZodTypeDef, "The requested stream was not found">;
|
|
@@ -1450,21 +1457,32 @@ declare const _default: {
|
|
|
1450
1457
|
error: string;
|
|
1451
1458
|
name: "APIError";
|
|
1452
1459
|
}>;
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1460
|
+
401: import("zod").ZodObject<{
|
|
1461
|
+
code: import("zod").ZodType<"UNAUTHORIZED", import("zod").ZodTypeDef, "UNAUTHORIZED">;
|
|
1462
|
+
error: import("zod").ZodType<"Unauthorized", import("zod").ZodTypeDef, "Unauthorized">;
|
|
1463
|
+
name: import("zod").ZodLiteral<"APIError">;
|
|
1464
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1465
|
+
code: "UNAUTHORIZED";
|
|
1466
|
+
error: "Unauthorized";
|
|
1467
|
+
name: "APIError";
|
|
1468
|
+
}, {
|
|
1469
|
+
code: "UNAUTHORIZED";
|
|
1470
|
+
error: "Unauthorized";
|
|
1471
|
+
name: "APIError";
|
|
1472
|
+
}>;
|
|
1473
|
+
403: import("zod").ZodObject<{
|
|
1474
|
+
code: import("zod").ZodType<"FORBIDDEN", import("zod").ZodTypeDef, "FORBIDDEN">;
|
|
1475
|
+
error: import("zod").ZodType<"Forbidden", import("zod").ZodTypeDef, "Forbidden">;
|
|
1476
|
+
name: import("zod").ZodLiteral<"APIError">;
|
|
1477
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1478
|
+
code: "FORBIDDEN";
|
|
1479
|
+
error: "Forbidden";
|
|
1480
|
+
name: "APIError";
|
|
1481
|
+
}, {
|
|
1482
|
+
code: "FORBIDDEN";
|
|
1483
|
+
error: "Forbidden";
|
|
1484
|
+
name: "APIError";
|
|
1485
|
+
}>;
|
|
1468
1486
|
200: typeof import("@ts-rest/core").ContractNoBody;
|
|
1469
1487
|
400: import("zod").ZodUnion<[import("zod").ZodObject<{
|
|
1470
1488
|
name: import("zod").ZodLiteral<"ZodError">;
|
|
@@ -1593,32 +1611,6 @@ declare const _default: {
|
|
|
1593
1611
|
error: "The provided stream ID is invalid";
|
|
1594
1612
|
name: "APIError";
|
|
1595
1613
|
}>]>;
|
|
1596
|
-
404: import("zod").ZodObject<{
|
|
1597
|
-
code: import("zod").ZodType<"STREAM_NOT_FOUND", import("zod").ZodTypeDef, "STREAM_NOT_FOUND">;
|
|
1598
|
-
error: import("zod").ZodType<"The requested stream was not found", import("zod").ZodTypeDef, "The requested stream was not found">;
|
|
1599
|
-
name: import("zod").ZodLiteral<"APIError">;
|
|
1600
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
1601
|
-
code: "STREAM_NOT_FOUND";
|
|
1602
|
-
error: "The requested stream was not found";
|
|
1603
|
-
name: "APIError";
|
|
1604
|
-
}, {
|
|
1605
|
-
code: "STREAM_NOT_FOUND";
|
|
1606
|
-
error: "The requested stream was not found";
|
|
1607
|
-
name: "APIError";
|
|
1608
|
-
}>;
|
|
1609
|
-
500: import("zod").ZodObject<{
|
|
1610
|
-
code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
|
|
1611
|
-
error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
|
|
1612
|
-
name: import("zod").ZodLiteral<"APIError">;
|
|
1613
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
1614
|
-
code: "INTERNAL_SERVER_ERROR";
|
|
1615
|
-
error: string;
|
|
1616
|
-
name: "APIError";
|
|
1617
|
-
}, {
|
|
1618
|
-
code: "INTERNAL_SERVER_ERROR";
|
|
1619
|
-
error: string;
|
|
1620
|
-
name: "APIError";
|
|
1621
|
-
}>;
|
|
1622
1614
|
};
|
|
1623
1615
|
};
|
|
1624
1616
|
scene: {
|
|
@@ -1762,6 +1754,58 @@ declare const _default: {
|
|
|
1762
1754
|
}>]>;
|
|
1763
1755
|
path: "/api/v2/media-stream/scene/:streamId";
|
|
1764
1756
|
responses: {
|
|
1757
|
+
404: import("zod").ZodObject<{
|
|
1758
|
+
code: import("zod").ZodType<"STREAM_NOT_FOUND", import("zod").ZodTypeDef, "STREAM_NOT_FOUND">;
|
|
1759
|
+
error: import("zod").ZodType<"The requested stream was not found", import("zod").ZodTypeDef, "The requested stream was not found">;
|
|
1760
|
+
name: import("zod").ZodLiteral<"APIError">;
|
|
1761
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1762
|
+
code: "STREAM_NOT_FOUND";
|
|
1763
|
+
error: "The requested stream was not found";
|
|
1764
|
+
name: "APIError";
|
|
1765
|
+
}, {
|
|
1766
|
+
code: "STREAM_NOT_FOUND";
|
|
1767
|
+
error: "The requested stream was not found";
|
|
1768
|
+
name: "APIError";
|
|
1769
|
+
}>;
|
|
1770
|
+
500: import("zod").ZodObject<{
|
|
1771
|
+
code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
|
|
1772
|
+
error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
|
|
1773
|
+
name: import("zod").ZodLiteral<"APIError">;
|
|
1774
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1775
|
+
code: "INTERNAL_SERVER_ERROR";
|
|
1776
|
+
error: string;
|
|
1777
|
+
name: "APIError";
|
|
1778
|
+
}, {
|
|
1779
|
+
code: "INTERNAL_SERVER_ERROR";
|
|
1780
|
+
error: string;
|
|
1781
|
+
name: "APIError";
|
|
1782
|
+
}>;
|
|
1783
|
+
401: import("zod").ZodObject<{
|
|
1784
|
+
code: import("zod").ZodType<"UNAUTHORIZED", import("zod").ZodTypeDef, "UNAUTHORIZED">;
|
|
1785
|
+
error: import("zod").ZodType<"Unauthorized", import("zod").ZodTypeDef, "Unauthorized">;
|
|
1786
|
+
name: import("zod").ZodLiteral<"APIError">;
|
|
1787
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1788
|
+
code: "UNAUTHORIZED";
|
|
1789
|
+
error: "Unauthorized";
|
|
1790
|
+
name: "APIError";
|
|
1791
|
+
}, {
|
|
1792
|
+
code: "UNAUTHORIZED";
|
|
1793
|
+
error: "Unauthorized";
|
|
1794
|
+
name: "APIError";
|
|
1795
|
+
}>;
|
|
1796
|
+
403: import("zod").ZodObject<{
|
|
1797
|
+
code: import("zod").ZodType<"FORBIDDEN", import("zod").ZodTypeDef, "FORBIDDEN">;
|
|
1798
|
+
error: import("zod").ZodType<"Forbidden", import("zod").ZodTypeDef, "Forbidden">;
|
|
1799
|
+
name: import("zod").ZodLiteral<"APIError">;
|
|
1800
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1801
|
+
code: "FORBIDDEN";
|
|
1802
|
+
error: "Forbidden";
|
|
1803
|
+
name: "APIError";
|
|
1804
|
+
}, {
|
|
1805
|
+
code: "FORBIDDEN";
|
|
1806
|
+
error: "Forbidden";
|
|
1807
|
+
name: "APIError";
|
|
1808
|
+
}>;
|
|
1765
1809
|
200: typeof import("@ts-rest/core").ContractNoBody;
|
|
1766
1810
|
400: import("zod").ZodUnion<[import("zod").ZodObject<{
|
|
1767
1811
|
name: import("zod").ZodLiteral<"ZodError">;
|
|
@@ -1902,32 +1946,6 @@ declare const _default: {
|
|
|
1902
1946
|
error: "The scene object was not found";
|
|
1903
1947
|
name: "APIError";
|
|
1904
1948
|
}>]>;
|
|
1905
|
-
404: import("zod").ZodObject<{
|
|
1906
|
-
code: import("zod").ZodType<"STREAM_NOT_FOUND", import("zod").ZodTypeDef, "STREAM_NOT_FOUND">;
|
|
1907
|
-
error: import("zod").ZodType<"The requested stream was not found", import("zod").ZodTypeDef, "The requested stream was not found">;
|
|
1908
|
-
name: import("zod").ZodLiteral<"APIError">;
|
|
1909
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
1910
|
-
code: "STREAM_NOT_FOUND";
|
|
1911
|
-
error: "The requested stream was not found";
|
|
1912
|
-
name: "APIError";
|
|
1913
|
-
}, {
|
|
1914
|
-
code: "STREAM_NOT_FOUND";
|
|
1915
|
-
error: "The requested stream was not found";
|
|
1916
|
-
name: "APIError";
|
|
1917
|
-
}>;
|
|
1918
|
-
500: import("zod").ZodObject<{
|
|
1919
|
-
code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
|
|
1920
|
-
error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
|
|
1921
|
-
name: import("zod").ZodLiteral<"APIError">;
|
|
1922
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
1923
|
-
code: "INTERNAL_SERVER_ERROR";
|
|
1924
|
-
error: string;
|
|
1925
|
-
name: "APIError";
|
|
1926
|
-
}, {
|
|
1927
|
-
code: "INTERNAL_SERVER_ERROR";
|
|
1928
|
-
error: string;
|
|
1929
|
-
name: "APIError";
|
|
1930
|
-
}>;
|
|
1931
1949
|
};
|
|
1932
1950
|
};
|
|
1933
1951
|
stream: {
|