@emeryld/rrroutes-openapi 2.5.3 → 2.5.5

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.
@@ -1,16 +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
- toRoomId: z.ZodNullable<z.ZodArray<z.ZodString>>;
13
- fromServer: z.ZodBoolean;
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>>;
14
26
  }, z.core.$strip>;
15
27
  export type SocketEventType = z.infer<typeof socketEventSchema>;
16
28
  export declare const socketEventQuerySchema: z.ZodObject<{
@@ -77,15 +89,22 @@ export declare const socketLeaves: readonly [{
77
89
  feed: true;
78
90
  outputSchema: z.ZodArray<z.ZodObject<{
79
91
  id: z.ZodString;
80
- name: z.ZodString;
81
92
  description: z.ZodOptional<z.ZodString>;
82
93
  groupId: z.ZodOptional<z.ZodString>;
83
94
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
84
95
  createdAt: z.ZodNumber;
85
96
  updatedAt: z.ZodNumber;
97
+ name: z.ZodString;
86
98
  message: z.ZodOptional<z.ZodAny>;
87
- toRoomId: z.ZodNullable<z.ZodArray<z.ZodString>>;
88
- fromServer: z.ZodBoolean;
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>>;
89
108
  }, z.core.$strip>>;
90
109
  querySchema: z.ZodObject<{
91
110
  beforeDate: z.ZodOptional<z.ZodString>;
@@ -132,15 +151,22 @@ export declare const socketLeaves: readonly [{
132
151
  feed: true;
133
152
  outputSchema: z.ZodArray<z.ZodObject<{
134
153
  id: z.ZodString;
135
- name: z.ZodString;
136
154
  description: z.ZodOptional<z.ZodString>;
137
155
  groupId: z.ZodOptional<z.ZodString>;
138
156
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
139
157
  createdAt: z.ZodNumber;
140
158
  updatedAt: z.ZodNumber;
159
+ name: z.ZodString;
141
160
  message: z.ZodOptional<z.ZodAny>;
142
- toRoomId: z.ZodNullable<z.ZodArray<z.ZodString>>;
143
- fromServer: z.ZodBoolean;
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>>;
144
170
  }, z.core.$strip>>;
145
171
  querySchema: z.ZodObject<{
146
172
  beforeDate: z.ZodOptional<z.ZodString>;
@@ -185,15 +211,22 @@ export declare const socketLeaves: readonly [{
185
211
  outputSchema: z.ZodObject<{
186
212
  out: z.ZodArray<z.ZodObject<{
187
213
  id: z.ZodString;
188
- name: z.ZodString;
189
214
  description: z.ZodOptional<z.ZodString>;
190
215
  groupId: z.ZodOptional<z.ZodString>;
191
216
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
192
217
  createdAt: z.ZodNumber;
193
218
  updatedAt: z.ZodNumber;
219
+ name: z.ZodString;
194
220
  message: z.ZodOptional<z.ZodAny>;
195
- toRoomId: z.ZodNullable<z.ZodArray<z.ZodString>>;
196
- fromServer: z.ZodBoolean;
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>>;
197
230
  }, z.core.$strip>>;
198
231
  meta: z.ZodObject<{
199
232
  totalCount: z.ZodOptional<z.ZodNumber>;
@@ -241,15 +274,18 @@ export declare const socketLeaves: readonly [{
241
274
  outputSchema: import("@emeryld/rrroutes-contract").RouteSchema<{
242
275
  out: {
243
276
  id: string;
244
- name: string;
245
277
  createdAt: number;
246
278
  updatedAt: number;
247
- toRoomId: string[] | null;
248
- fromServer: boolean;
279
+ name: string;
280
+ origin: string;
281
+ direction: "incoming" | "outgoing" | "broadcast";
249
282
  description?: string | undefined;
250
283
  groupId?: string | undefined;
251
284
  tags?: string[] | undefined;
252
285
  message?: any;
286
+ socketId?: string | undefined;
287
+ rooms?: string[] | undefined;
288
+ except?: string[] | undefined;
253
289
  }[];
254
290
  meta: {
255
291
  totalCount?: number | undefined;
@@ -258,15 +294,18 @@ export declare const socketLeaves: readonly [{
258
294
  }, {
259
295
  out: {
260
296
  id: string;
261
- name: string;
262
297
  createdAt: number;
263
298
  updatedAt: number;
264
- toRoomId: string[] | null;
265
- fromServer: boolean;
299
+ name: string;
300
+ origin: string;
301
+ direction: "incoming" | "outgoing" | "broadcast";
266
302
  description?: string | undefined;
267
303
  groupId?: string | undefined;
268
304
  tags?: string[] | undefined;
269
305
  message?: any;
306
+ socketId?: string | undefined;
307
+ rooms?: string[] | undefined;
308
+ except?: string[] | undefined;
270
309
  }[];
271
310
  meta: {
272
311
  totalCount?: number | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emeryld/rrroutes-openapi",
3
- "version": "2.5.3",
3
+ "version": "2.5.5",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",