@emeryld/rrroutes-openapi 2.5.2 → 2.5.4
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/index.cjs +20 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +20 -3
- package/dist/index.mjs.map +1 -1
- package/dist/public/assets/docs.js +39 -39
- package/dist/web/v2/types/types.socket.d.ts +57 -12
- package/package.json +1 -1
|
@@ -1,15 +1,28 @@
|
|
|
1
1
|
import z from 'zod';
|
|
2
2
|
import { paginationSchema } from './types.base.js';
|
|
3
|
+
export declare const socketEventDirectionSchema: z.ZodEnum<{
|
|
4
|
+
incoming: "incoming";
|
|
5
|
+
outgoing: "outgoing";
|
|
6
|
+
"outgoing-broadcast": "outgoing-broadcast";
|
|
7
|
+
}>;
|
|
3
8
|
export declare const socketEventSchema: z.ZodObject<{
|
|
4
9
|
id: z.ZodString;
|
|
5
|
-
name: z.ZodString;
|
|
6
10
|
description: z.ZodOptional<z.ZodString>;
|
|
7
11
|
groupId: z.ZodOptional<z.ZodString>;
|
|
8
12
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
9
13
|
createdAt: z.ZodNumber;
|
|
10
14
|
updatedAt: z.ZodNumber;
|
|
15
|
+
name: z.ZodString;
|
|
11
16
|
message: z.ZodOptional<z.ZodAny>;
|
|
12
|
-
|
|
17
|
+
origin: z.ZodUnion<readonly [z.ZodLiteral<"server">, z.ZodString]>;
|
|
18
|
+
direction: z.ZodEnum<{
|
|
19
|
+
incoming: "incoming";
|
|
20
|
+
outgoing: "outgoing";
|
|
21
|
+
broadcast: "broadcast";
|
|
22
|
+
}>;
|
|
23
|
+
socketId: z.ZodOptional<z.ZodString>;
|
|
24
|
+
rooms: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
25
|
+
except: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
13
26
|
}, z.core.$strip>;
|
|
14
27
|
export type SocketEventType = z.infer<typeof socketEventSchema>;
|
|
15
28
|
export declare const socketEventQuerySchema: z.ZodObject<{
|
|
@@ -76,14 +89,22 @@ export declare const socketLeaves: readonly [{
|
|
|
76
89
|
feed: true;
|
|
77
90
|
outputSchema: z.ZodArray<z.ZodObject<{
|
|
78
91
|
id: z.ZodString;
|
|
79
|
-
name: z.ZodString;
|
|
80
92
|
description: z.ZodOptional<z.ZodString>;
|
|
81
93
|
groupId: z.ZodOptional<z.ZodString>;
|
|
82
94
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
83
95
|
createdAt: z.ZodNumber;
|
|
84
96
|
updatedAt: z.ZodNumber;
|
|
97
|
+
name: z.ZodString;
|
|
85
98
|
message: z.ZodOptional<z.ZodAny>;
|
|
86
|
-
|
|
99
|
+
origin: z.ZodUnion<readonly [z.ZodLiteral<"server">, z.ZodString]>;
|
|
100
|
+
direction: z.ZodEnum<{
|
|
101
|
+
incoming: "incoming";
|
|
102
|
+
outgoing: "outgoing";
|
|
103
|
+
broadcast: "broadcast";
|
|
104
|
+
}>;
|
|
105
|
+
socketId: z.ZodOptional<z.ZodString>;
|
|
106
|
+
rooms: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
107
|
+
except: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
87
108
|
}, z.core.$strip>>;
|
|
88
109
|
querySchema: z.ZodObject<{
|
|
89
110
|
beforeDate: z.ZodOptional<z.ZodString>;
|
|
@@ -130,14 +151,22 @@ export declare const socketLeaves: readonly [{
|
|
|
130
151
|
feed: true;
|
|
131
152
|
outputSchema: z.ZodArray<z.ZodObject<{
|
|
132
153
|
id: z.ZodString;
|
|
133
|
-
name: z.ZodString;
|
|
134
154
|
description: z.ZodOptional<z.ZodString>;
|
|
135
155
|
groupId: z.ZodOptional<z.ZodString>;
|
|
136
156
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
137
157
|
createdAt: z.ZodNumber;
|
|
138
158
|
updatedAt: z.ZodNumber;
|
|
159
|
+
name: z.ZodString;
|
|
139
160
|
message: z.ZodOptional<z.ZodAny>;
|
|
140
|
-
|
|
161
|
+
origin: z.ZodUnion<readonly [z.ZodLiteral<"server">, z.ZodString]>;
|
|
162
|
+
direction: z.ZodEnum<{
|
|
163
|
+
incoming: "incoming";
|
|
164
|
+
outgoing: "outgoing";
|
|
165
|
+
broadcast: "broadcast";
|
|
166
|
+
}>;
|
|
167
|
+
socketId: z.ZodOptional<z.ZodString>;
|
|
168
|
+
rooms: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
169
|
+
except: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
141
170
|
}, z.core.$strip>>;
|
|
142
171
|
querySchema: z.ZodObject<{
|
|
143
172
|
beforeDate: z.ZodOptional<z.ZodString>;
|
|
@@ -182,14 +211,22 @@ export declare const socketLeaves: readonly [{
|
|
|
182
211
|
outputSchema: z.ZodObject<{
|
|
183
212
|
out: z.ZodArray<z.ZodObject<{
|
|
184
213
|
id: z.ZodString;
|
|
185
|
-
name: z.ZodString;
|
|
186
214
|
description: z.ZodOptional<z.ZodString>;
|
|
187
215
|
groupId: z.ZodOptional<z.ZodString>;
|
|
188
216
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
189
217
|
createdAt: z.ZodNumber;
|
|
190
218
|
updatedAt: z.ZodNumber;
|
|
219
|
+
name: z.ZodString;
|
|
191
220
|
message: z.ZodOptional<z.ZodAny>;
|
|
192
|
-
|
|
221
|
+
origin: z.ZodUnion<readonly [z.ZodLiteral<"server">, z.ZodString]>;
|
|
222
|
+
direction: z.ZodEnum<{
|
|
223
|
+
incoming: "incoming";
|
|
224
|
+
outgoing: "outgoing";
|
|
225
|
+
broadcast: "broadcast";
|
|
226
|
+
}>;
|
|
227
|
+
socketId: z.ZodOptional<z.ZodString>;
|
|
228
|
+
rooms: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
229
|
+
except: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
193
230
|
}, z.core.$strip>>;
|
|
194
231
|
meta: z.ZodObject<{
|
|
195
232
|
totalCount: z.ZodOptional<z.ZodNumber>;
|
|
@@ -237,14 +274,18 @@ export declare const socketLeaves: readonly [{
|
|
|
237
274
|
outputSchema: import("@emeryld/rrroutes-contract").RouteSchema<{
|
|
238
275
|
out: {
|
|
239
276
|
id: string;
|
|
240
|
-
name: string;
|
|
241
277
|
createdAt: number;
|
|
242
278
|
updatedAt: number;
|
|
243
|
-
|
|
279
|
+
name: string;
|
|
280
|
+
origin: string;
|
|
281
|
+
direction: "incoming" | "outgoing" | "broadcast";
|
|
244
282
|
description?: string | undefined;
|
|
245
283
|
groupId?: string | undefined;
|
|
246
284
|
tags?: string[] | undefined;
|
|
247
285
|
message?: any;
|
|
286
|
+
socketId?: string | undefined;
|
|
287
|
+
rooms?: string[] | undefined;
|
|
288
|
+
except?: string[] | undefined;
|
|
248
289
|
}[];
|
|
249
290
|
meta: {
|
|
250
291
|
totalCount?: number | undefined;
|
|
@@ -253,14 +294,18 @@ export declare const socketLeaves: readonly [{
|
|
|
253
294
|
}, {
|
|
254
295
|
out: {
|
|
255
296
|
id: string;
|
|
256
|
-
name: string;
|
|
257
297
|
createdAt: number;
|
|
258
298
|
updatedAt: number;
|
|
259
|
-
|
|
299
|
+
name: string;
|
|
300
|
+
origin: string;
|
|
301
|
+
direction: "incoming" | "outgoing" | "broadcast";
|
|
260
302
|
description?: string | undefined;
|
|
261
303
|
groupId?: string | undefined;
|
|
262
304
|
tags?: string[] | undefined;
|
|
263
305
|
message?: any;
|
|
306
|
+
socketId?: string | undefined;
|
|
307
|
+
rooms?: string[] | undefined;
|
|
308
|
+
except?: string[] | undefined;
|
|
264
309
|
}[];
|
|
265
310
|
meta: {
|
|
266
311
|
totalCount?: number | undefined;
|