@darco2903/altv-web-api 1.4.0 → 1.6.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 +236 -138
- package/dist/contract/history.d.ts +92 -0
- package/dist/contract/history.js +19 -0
- package/dist/contract/index.d.ts +395 -287
- package/dist/contract/index.js +2 -0
- package/dist/contract/mediaStream.d.ts +222 -92
- package/dist/contract/mediaStream.js +6 -6
- package/dist/contract/youtube.d.ts +83 -195
- package/dist/contract/youtube.js +4 -22
- package/dist/types/youtube.d.ts +2 -6
- 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;
|
|
@@ -187,15 +75,15 @@ declare const _default: {
|
|
|
187
75
|
}, "strip", import("zod").ZodTypeAny, {
|
|
188
76
|
videoId: string;
|
|
189
77
|
title: string;
|
|
190
|
-
duration: number | null;
|
|
191
78
|
channel: string | null;
|
|
79
|
+
duration: number | null;
|
|
192
80
|
thumbnail: string | null;
|
|
193
81
|
blocked: "live" | "too_long" | null;
|
|
194
82
|
}, {
|
|
195
83
|
videoId: string;
|
|
196
84
|
title: string;
|
|
197
|
-
duration: number | null;
|
|
198
85
|
channel: string | null;
|
|
86
|
+
duration: number | null;
|
|
199
87
|
thumbnail: string | null;
|
|
200
88
|
blocked: "live" | "too_long" | null;
|
|
201
89
|
}>, "many">;
|
|
@@ -203,8 +91,8 @@ declare const _default: {
|
|
|
203
91
|
results: {
|
|
204
92
|
videoId: string;
|
|
205
93
|
title: string;
|
|
206
|
-
duration: number | null;
|
|
207
94
|
channel: string | null;
|
|
95
|
+
duration: number | null;
|
|
208
96
|
thumbnail: string | null;
|
|
209
97
|
blocked: "live" | "too_long" | null;
|
|
210
98
|
}[];
|
|
@@ -212,8 +100,8 @@ declare const _default: {
|
|
|
212
100
|
results: {
|
|
213
101
|
videoId: string;
|
|
214
102
|
title: string;
|
|
215
|
-
duration: number | null;
|
|
216
103
|
channel: string | null;
|
|
104
|
+
duration: number | null;
|
|
217
105
|
thumbnail: string | null;
|
|
218
106
|
blocked: "live" | "too_long" | null;
|
|
219
107
|
}[];
|
|
@@ -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
|
};
|
|
@@ -664,6 +552,96 @@ declare const _default: {
|
|
|
664
552
|
}>;
|
|
665
553
|
};
|
|
666
554
|
};
|
|
555
|
+
history: {
|
|
556
|
+
list: {
|
|
557
|
+
description: "Tracks the logged in user started recently, last played first";
|
|
558
|
+
method: "GET";
|
|
559
|
+
path: "/api/v2/history";
|
|
560
|
+
responses: {
|
|
561
|
+
500: import("zod").ZodObject<{
|
|
562
|
+
code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
|
|
563
|
+
error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
|
|
564
|
+
name: import("zod").ZodLiteral<"APIError">;
|
|
565
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
566
|
+
code: "INTERNAL_SERVER_ERROR";
|
|
567
|
+
error: string;
|
|
568
|
+
name: "APIError";
|
|
569
|
+
}, {
|
|
570
|
+
code: "INTERNAL_SERVER_ERROR";
|
|
571
|
+
error: string;
|
|
572
|
+
name: "APIError";
|
|
573
|
+
}>;
|
|
574
|
+
401: import("zod").ZodObject<{
|
|
575
|
+
code: import("zod").ZodType<"UNAUTHORIZED", import("zod").ZodTypeDef, "UNAUTHORIZED">;
|
|
576
|
+
error: import("zod").ZodType<"Unauthorized", import("zod").ZodTypeDef, "Unauthorized">;
|
|
577
|
+
name: import("zod").ZodLiteral<"APIError">;
|
|
578
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
579
|
+
code: "UNAUTHORIZED";
|
|
580
|
+
error: "Unauthorized";
|
|
581
|
+
name: "APIError";
|
|
582
|
+
}, {
|
|
583
|
+
code: "UNAUTHORIZED";
|
|
584
|
+
error: "Unauthorized";
|
|
585
|
+
name: "APIError";
|
|
586
|
+
}>;
|
|
587
|
+
403: import("zod").ZodObject<{
|
|
588
|
+
code: import("zod").ZodType<"FORBIDDEN", import("zod").ZodTypeDef, "FORBIDDEN">;
|
|
589
|
+
error: import("zod").ZodType<"Forbidden", import("zod").ZodTypeDef, "Forbidden">;
|
|
590
|
+
name: import("zod").ZodLiteral<"APIError">;
|
|
591
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
592
|
+
code: "FORBIDDEN";
|
|
593
|
+
error: "Forbidden";
|
|
594
|
+
name: "APIError";
|
|
595
|
+
}, {
|
|
596
|
+
code: "FORBIDDEN";
|
|
597
|
+
error: "Forbidden";
|
|
598
|
+
name: "APIError";
|
|
599
|
+
}>;
|
|
600
|
+
200: import("zod").ZodObject<{
|
|
601
|
+
tracks: import("zod").ZodArray<import("zod").ZodObject<{
|
|
602
|
+
videoId: import("zod").ZodString;
|
|
603
|
+
title: import("zod").ZodString;
|
|
604
|
+
channel: import("zod").ZodNullable<import("zod").ZodString>;
|
|
605
|
+
duration: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
606
|
+
thumbnail: import("zod").ZodNullable<import("zod").ZodString>;
|
|
607
|
+
blocked: import("zod").ZodNullable<import("zod").ZodEnum<["live", "too_long"]>>;
|
|
608
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
609
|
+
videoId: string;
|
|
610
|
+
title: string;
|
|
611
|
+
channel: string | null;
|
|
612
|
+
duration: number | null;
|
|
613
|
+
thumbnail: string | null;
|
|
614
|
+
blocked: "live" | "too_long" | null;
|
|
615
|
+
}, {
|
|
616
|
+
videoId: string;
|
|
617
|
+
title: string;
|
|
618
|
+
channel: string | null;
|
|
619
|
+
duration: number | null;
|
|
620
|
+
thumbnail: string | null;
|
|
621
|
+
blocked: "live" | "too_long" | null;
|
|
622
|
+
}>, "many">;
|
|
623
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
624
|
+
tracks: {
|
|
625
|
+
videoId: string;
|
|
626
|
+
title: string;
|
|
627
|
+
channel: string | null;
|
|
628
|
+
duration: number | null;
|
|
629
|
+
thumbnail: string | null;
|
|
630
|
+
blocked: "live" | "too_long" | null;
|
|
631
|
+
}[];
|
|
632
|
+
}, {
|
|
633
|
+
tracks: {
|
|
634
|
+
videoId: string;
|
|
635
|
+
title: string;
|
|
636
|
+
channel: string | null;
|
|
637
|
+
duration: number | null;
|
|
638
|
+
thumbnail: string | null;
|
|
639
|
+
blocked: "live" | "too_long" | null;
|
|
640
|
+
}[];
|
|
641
|
+
}>;
|
|
642
|
+
};
|
|
643
|
+
};
|
|
644
|
+
};
|
|
667
645
|
mediaStream: {
|
|
668
646
|
init: {
|
|
669
647
|
description: "Initialize a new media stream from a YouTube video";
|
|
@@ -677,6 +655,45 @@ declare const _default: {
|
|
|
677
655
|
}>;
|
|
678
656
|
path: "/api/v2/media-stream/init";
|
|
679
657
|
responses: {
|
|
658
|
+
500: import("zod").ZodObject<{
|
|
659
|
+
code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
|
|
660
|
+
error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
|
|
661
|
+
name: import("zod").ZodLiteral<"APIError">;
|
|
662
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
663
|
+
code: "INTERNAL_SERVER_ERROR";
|
|
664
|
+
error: string;
|
|
665
|
+
name: "APIError";
|
|
666
|
+
}, {
|
|
667
|
+
code: "INTERNAL_SERVER_ERROR";
|
|
668
|
+
error: string;
|
|
669
|
+
name: "APIError";
|
|
670
|
+
}>;
|
|
671
|
+
401: import("zod").ZodObject<{
|
|
672
|
+
code: import("zod").ZodType<"UNAUTHORIZED", import("zod").ZodTypeDef, "UNAUTHORIZED">;
|
|
673
|
+
error: import("zod").ZodType<"Unauthorized", import("zod").ZodTypeDef, "Unauthorized">;
|
|
674
|
+
name: import("zod").ZodLiteral<"APIError">;
|
|
675
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
676
|
+
code: "UNAUTHORIZED";
|
|
677
|
+
error: "Unauthorized";
|
|
678
|
+
name: "APIError";
|
|
679
|
+
}, {
|
|
680
|
+
code: "UNAUTHORIZED";
|
|
681
|
+
error: "Unauthorized";
|
|
682
|
+
name: "APIError";
|
|
683
|
+
}>;
|
|
684
|
+
403: import("zod").ZodObject<{
|
|
685
|
+
code: import("zod").ZodType<"FORBIDDEN", import("zod").ZodTypeDef, "FORBIDDEN">;
|
|
686
|
+
error: import("zod").ZodType<"Forbidden", import("zod").ZodTypeDef, "Forbidden">;
|
|
687
|
+
name: import("zod").ZodLiteral<"APIError">;
|
|
688
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
689
|
+
code: "FORBIDDEN";
|
|
690
|
+
error: "Forbidden";
|
|
691
|
+
name: "APIError";
|
|
692
|
+
}, {
|
|
693
|
+
code: "FORBIDDEN";
|
|
694
|
+
error: "Forbidden";
|
|
695
|
+
name: "APIError";
|
|
696
|
+
}>;
|
|
680
697
|
200: import("zod").ZodObject<{
|
|
681
698
|
streamId: import("zod").ZodString;
|
|
682
699
|
}, "strip", import("zod").ZodTypeAny, {
|
|
@@ -811,19 +828,6 @@ declare const _default: {
|
|
|
811
828
|
error: "The provided video ID is invalid";
|
|
812
829
|
name: "APIError";
|
|
813
830
|
}>]>;
|
|
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
831
|
};
|
|
828
832
|
};
|
|
829
833
|
get: {
|
|
@@ -930,10 +934,10 @@ declare const _default: {
|
|
|
930
934
|
}[];
|
|
931
935
|
}>;
|
|
932
936
|
}, "strip", import("zod").ZodTypeAny, {
|
|
933
|
-
streamId: string;
|
|
934
937
|
title: string;
|
|
935
|
-
startTime: number;
|
|
936
938
|
duration: number;
|
|
939
|
+
streamId: string;
|
|
940
|
+
startTime: number;
|
|
937
941
|
currentTime: number;
|
|
938
942
|
url: string;
|
|
939
943
|
paused: boolean;
|
|
@@ -958,10 +962,10 @@ declare const _default: {
|
|
|
958
962
|
}[];
|
|
959
963
|
};
|
|
960
964
|
}, {
|
|
961
|
-
streamId: string;
|
|
962
965
|
title: string;
|
|
963
|
-
startTime: number;
|
|
964
966
|
duration: number;
|
|
967
|
+
streamId: string;
|
|
968
|
+
startTime: number;
|
|
965
969
|
currentTime: number;
|
|
966
970
|
url: string;
|
|
967
971
|
paused: boolean;
|
|
@@ -1134,6 +1138,58 @@ declare const _default: {
|
|
|
1134
1138
|
body: import("zod").ZodUndefined;
|
|
1135
1139
|
path: "/api/v2/media-stream/play/:streamId";
|
|
1136
1140
|
responses: {
|
|
1141
|
+
404: import("zod").ZodObject<{
|
|
1142
|
+
code: import("zod").ZodType<"STREAM_NOT_FOUND", import("zod").ZodTypeDef, "STREAM_NOT_FOUND">;
|
|
1143
|
+
error: import("zod").ZodType<"The requested stream was not found", import("zod").ZodTypeDef, "The requested stream was not found">;
|
|
1144
|
+
name: import("zod").ZodLiteral<"APIError">;
|
|
1145
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1146
|
+
code: "STREAM_NOT_FOUND";
|
|
1147
|
+
error: "The requested stream was not found";
|
|
1148
|
+
name: "APIError";
|
|
1149
|
+
}, {
|
|
1150
|
+
code: "STREAM_NOT_FOUND";
|
|
1151
|
+
error: "The requested stream was not found";
|
|
1152
|
+
name: "APIError";
|
|
1153
|
+
}>;
|
|
1154
|
+
500: import("zod").ZodObject<{
|
|
1155
|
+
code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
|
|
1156
|
+
error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
|
|
1157
|
+
name: import("zod").ZodLiteral<"APIError">;
|
|
1158
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1159
|
+
code: "INTERNAL_SERVER_ERROR";
|
|
1160
|
+
error: string;
|
|
1161
|
+
name: "APIError";
|
|
1162
|
+
}, {
|
|
1163
|
+
code: "INTERNAL_SERVER_ERROR";
|
|
1164
|
+
error: string;
|
|
1165
|
+
name: "APIError";
|
|
1166
|
+
}>;
|
|
1167
|
+
401: import("zod").ZodObject<{
|
|
1168
|
+
code: import("zod").ZodType<"UNAUTHORIZED", import("zod").ZodTypeDef, "UNAUTHORIZED">;
|
|
1169
|
+
error: import("zod").ZodType<"Unauthorized", import("zod").ZodTypeDef, "Unauthorized">;
|
|
1170
|
+
name: import("zod").ZodLiteral<"APIError">;
|
|
1171
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1172
|
+
code: "UNAUTHORIZED";
|
|
1173
|
+
error: "Unauthorized";
|
|
1174
|
+
name: "APIError";
|
|
1175
|
+
}, {
|
|
1176
|
+
code: "UNAUTHORIZED";
|
|
1177
|
+
error: "Unauthorized";
|
|
1178
|
+
name: "APIError";
|
|
1179
|
+
}>;
|
|
1180
|
+
403: import("zod").ZodObject<{
|
|
1181
|
+
code: import("zod").ZodType<"FORBIDDEN", import("zod").ZodTypeDef, "FORBIDDEN">;
|
|
1182
|
+
error: import("zod").ZodType<"Forbidden", import("zod").ZodTypeDef, "Forbidden">;
|
|
1183
|
+
name: import("zod").ZodLiteral<"APIError">;
|
|
1184
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1185
|
+
code: "FORBIDDEN";
|
|
1186
|
+
error: "Forbidden";
|
|
1187
|
+
name: "APIError";
|
|
1188
|
+
}, {
|
|
1189
|
+
code: "FORBIDDEN";
|
|
1190
|
+
error: "Forbidden";
|
|
1191
|
+
name: "APIError";
|
|
1192
|
+
}>;
|
|
1137
1193
|
200: typeof import("@ts-rest/core").ContractNoBody;
|
|
1138
1194
|
400: import("zod").ZodUnion<[import("zod").ZodObject<{
|
|
1139
1195
|
name: import("zod").ZodLiteral<"ZodError">;
|
|
@@ -1262,6 +1318,14 @@ declare const _default: {
|
|
|
1262
1318
|
error: "The provided stream ID is invalid";
|
|
1263
1319
|
name: "APIError";
|
|
1264
1320
|
}>]>;
|
|
1321
|
+
};
|
|
1322
|
+
};
|
|
1323
|
+
pause: {
|
|
1324
|
+
description: "Pause a media stream";
|
|
1325
|
+
method: "POST";
|
|
1326
|
+
body: import("zod").ZodUndefined;
|
|
1327
|
+
path: "/api/v2/media-stream/pause/:streamId";
|
|
1328
|
+
responses: {
|
|
1265
1329
|
404: import("zod").ZodObject<{
|
|
1266
1330
|
code: import("zod").ZodType<"STREAM_NOT_FOUND", import("zod").ZodTypeDef, "STREAM_NOT_FOUND">;
|
|
1267
1331
|
error: import("zod").ZodType<"The requested stream was not found", import("zod").ZodTypeDef, "The requested stream was not found">;
|
|
@@ -1288,14 +1352,32 @@ declare const _default: {
|
|
|
1288
1352
|
error: string;
|
|
1289
1353
|
name: "APIError";
|
|
1290
1354
|
}>;
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1355
|
+
401: import("zod").ZodObject<{
|
|
1356
|
+
code: import("zod").ZodType<"UNAUTHORIZED", import("zod").ZodTypeDef, "UNAUTHORIZED">;
|
|
1357
|
+
error: import("zod").ZodType<"Unauthorized", import("zod").ZodTypeDef, "Unauthorized">;
|
|
1358
|
+
name: import("zod").ZodLiteral<"APIError">;
|
|
1359
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1360
|
+
code: "UNAUTHORIZED";
|
|
1361
|
+
error: "Unauthorized";
|
|
1362
|
+
name: "APIError";
|
|
1363
|
+
}, {
|
|
1364
|
+
code: "UNAUTHORIZED";
|
|
1365
|
+
error: "Unauthorized";
|
|
1366
|
+
name: "APIError";
|
|
1367
|
+
}>;
|
|
1368
|
+
403: import("zod").ZodObject<{
|
|
1369
|
+
code: import("zod").ZodType<"FORBIDDEN", import("zod").ZodTypeDef, "FORBIDDEN">;
|
|
1370
|
+
error: import("zod").ZodType<"Forbidden", import("zod").ZodTypeDef, "Forbidden">;
|
|
1371
|
+
name: import("zod").ZodLiteral<"APIError">;
|
|
1372
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1373
|
+
code: "FORBIDDEN";
|
|
1374
|
+
error: "Forbidden";
|
|
1375
|
+
name: "APIError";
|
|
1376
|
+
}, {
|
|
1377
|
+
code: "FORBIDDEN";
|
|
1378
|
+
error: "Forbidden";
|
|
1379
|
+
name: "APIError";
|
|
1380
|
+
}>;
|
|
1299
1381
|
200: typeof import("@ts-rest/core").ContractNoBody;
|
|
1300
1382
|
400: import("zod").ZodUnion<[import("zod").ZodObject<{
|
|
1301
1383
|
name: import("zod").ZodLiteral<"ZodError">;
|
|
@@ -1424,6 +1506,21 @@ declare const _default: {
|
|
|
1424
1506
|
error: "The provided stream ID is invalid";
|
|
1425
1507
|
name: "APIError";
|
|
1426
1508
|
}>]>;
|
|
1509
|
+
};
|
|
1510
|
+
};
|
|
1511
|
+
seek: {
|
|
1512
|
+
query: import("zod").ZodObject<{
|
|
1513
|
+
time: import("zod").ZodNumber;
|
|
1514
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1515
|
+
time: number;
|
|
1516
|
+
}, {
|
|
1517
|
+
time: number;
|
|
1518
|
+
}>;
|
|
1519
|
+
description: "Seek a media stream";
|
|
1520
|
+
method: "POST";
|
|
1521
|
+
body: import("zod").ZodUndefined;
|
|
1522
|
+
path: "/api/v2/media-stream/seek/:streamId";
|
|
1523
|
+
responses: {
|
|
1427
1524
|
404: import("zod").ZodObject<{
|
|
1428
1525
|
code: import("zod").ZodType<"STREAM_NOT_FOUND", import("zod").ZodTypeDef, "STREAM_NOT_FOUND">;
|
|
1429
1526
|
error: import("zod").ZodType<"The requested stream was not found", import("zod").ZodTypeDef, "The requested stream was not found">;
|
|
@@ -1450,21 +1547,32 @@ declare const _default: {
|
|
|
1450
1547
|
error: string;
|
|
1451
1548
|
name: "APIError";
|
|
1452
1549
|
}>;
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1550
|
+
401: import("zod").ZodObject<{
|
|
1551
|
+
code: import("zod").ZodType<"UNAUTHORIZED", import("zod").ZodTypeDef, "UNAUTHORIZED">;
|
|
1552
|
+
error: import("zod").ZodType<"Unauthorized", import("zod").ZodTypeDef, "Unauthorized">;
|
|
1553
|
+
name: import("zod").ZodLiteral<"APIError">;
|
|
1554
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1555
|
+
code: "UNAUTHORIZED";
|
|
1556
|
+
error: "Unauthorized";
|
|
1557
|
+
name: "APIError";
|
|
1558
|
+
}, {
|
|
1559
|
+
code: "UNAUTHORIZED";
|
|
1560
|
+
error: "Unauthorized";
|
|
1561
|
+
name: "APIError";
|
|
1562
|
+
}>;
|
|
1563
|
+
403: import("zod").ZodObject<{
|
|
1564
|
+
code: import("zod").ZodType<"FORBIDDEN", import("zod").ZodTypeDef, "FORBIDDEN">;
|
|
1565
|
+
error: import("zod").ZodType<"Forbidden", import("zod").ZodTypeDef, "Forbidden">;
|
|
1566
|
+
name: import("zod").ZodLiteral<"APIError">;
|
|
1567
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1568
|
+
code: "FORBIDDEN";
|
|
1569
|
+
error: "Forbidden";
|
|
1570
|
+
name: "APIError";
|
|
1571
|
+
}, {
|
|
1572
|
+
code: "FORBIDDEN";
|
|
1573
|
+
error: "Forbidden";
|
|
1574
|
+
name: "APIError";
|
|
1575
|
+
}>;
|
|
1468
1576
|
200: typeof import("@ts-rest/core").ContractNoBody;
|
|
1469
1577
|
400: import("zod").ZodUnion<[import("zod").ZodObject<{
|
|
1470
1578
|
name: import("zod").ZodLiteral<"ZodError">;
|
|
@@ -1593,32 +1701,6 @@ declare const _default: {
|
|
|
1593
1701
|
error: "The provided stream ID is invalid";
|
|
1594
1702
|
name: "APIError";
|
|
1595
1703
|
}>]>;
|
|
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
1704
|
};
|
|
1623
1705
|
};
|
|
1624
1706
|
scene: {
|
|
@@ -1762,6 +1844,58 @@ declare const _default: {
|
|
|
1762
1844
|
}>]>;
|
|
1763
1845
|
path: "/api/v2/media-stream/scene/:streamId";
|
|
1764
1846
|
responses: {
|
|
1847
|
+
404: import("zod").ZodObject<{
|
|
1848
|
+
code: import("zod").ZodType<"STREAM_NOT_FOUND", import("zod").ZodTypeDef, "STREAM_NOT_FOUND">;
|
|
1849
|
+
error: import("zod").ZodType<"The requested stream was not found", import("zod").ZodTypeDef, "The requested stream was not found">;
|
|
1850
|
+
name: import("zod").ZodLiteral<"APIError">;
|
|
1851
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1852
|
+
code: "STREAM_NOT_FOUND";
|
|
1853
|
+
error: "The requested stream was not found";
|
|
1854
|
+
name: "APIError";
|
|
1855
|
+
}, {
|
|
1856
|
+
code: "STREAM_NOT_FOUND";
|
|
1857
|
+
error: "The requested stream was not found";
|
|
1858
|
+
name: "APIError";
|
|
1859
|
+
}>;
|
|
1860
|
+
500: import("zod").ZodObject<{
|
|
1861
|
+
code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
|
|
1862
|
+
error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
|
|
1863
|
+
name: import("zod").ZodLiteral<"APIError">;
|
|
1864
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1865
|
+
code: "INTERNAL_SERVER_ERROR";
|
|
1866
|
+
error: string;
|
|
1867
|
+
name: "APIError";
|
|
1868
|
+
}, {
|
|
1869
|
+
code: "INTERNAL_SERVER_ERROR";
|
|
1870
|
+
error: string;
|
|
1871
|
+
name: "APIError";
|
|
1872
|
+
}>;
|
|
1873
|
+
401: import("zod").ZodObject<{
|
|
1874
|
+
code: import("zod").ZodType<"UNAUTHORIZED", import("zod").ZodTypeDef, "UNAUTHORIZED">;
|
|
1875
|
+
error: import("zod").ZodType<"Unauthorized", import("zod").ZodTypeDef, "Unauthorized">;
|
|
1876
|
+
name: import("zod").ZodLiteral<"APIError">;
|
|
1877
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1878
|
+
code: "UNAUTHORIZED";
|
|
1879
|
+
error: "Unauthorized";
|
|
1880
|
+
name: "APIError";
|
|
1881
|
+
}, {
|
|
1882
|
+
code: "UNAUTHORIZED";
|
|
1883
|
+
error: "Unauthorized";
|
|
1884
|
+
name: "APIError";
|
|
1885
|
+
}>;
|
|
1886
|
+
403: import("zod").ZodObject<{
|
|
1887
|
+
code: import("zod").ZodType<"FORBIDDEN", import("zod").ZodTypeDef, "FORBIDDEN">;
|
|
1888
|
+
error: import("zod").ZodType<"Forbidden", import("zod").ZodTypeDef, "Forbidden">;
|
|
1889
|
+
name: import("zod").ZodLiteral<"APIError">;
|
|
1890
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1891
|
+
code: "FORBIDDEN";
|
|
1892
|
+
error: "Forbidden";
|
|
1893
|
+
name: "APIError";
|
|
1894
|
+
}, {
|
|
1895
|
+
code: "FORBIDDEN";
|
|
1896
|
+
error: "Forbidden";
|
|
1897
|
+
name: "APIError";
|
|
1898
|
+
}>;
|
|
1765
1899
|
200: typeof import("@ts-rest/core").ContractNoBody;
|
|
1766
1900
|
400: import("zod").ZodUnion<[import("zod").ZodObject<{
|
|
1767
1901
|
name: import("zod").ZodLiteral<"ZodError">;
|
|
@@ -1902,32 +2036,6 @@ declare const _default: {
|
|
|
1902
2036
|
error: "The scene object was not found";
|
|
1903
2037
|
name: "APIError";
|
|
1904
2038
|
}>]>;
|
|
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
2039
|
};
|
|
1932
2040
|
};
|
|
1933
2041
|
stream: {
|