@emeryld/rrroutes-openapi 2.4.10 → 2.4.11
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 +44 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +43 -4
- package/dist/index.mjs.map +1 -1
- package/dist/public/assets/docs.js +75 -75
- package/dist/web/v2/hooks/useSocketEndpoints.d.ts +26 -0
- package/dist/web/v2/pages/SocketsPage.d.ts +1 -0
- package/dist/web/v2/sockets/SocketEventsSection.d.ts +1 -0
- package/dist/web/v2/sockets/SocketEventsTable.d.ts +6 -0
- package/dist/web/v2/sockets/SocketPlayground.d.ts +1 -0
- package/dist/web/v2/types/types.d.ts +3 -1
- package/dist/web/v2/types/types.socket.d.ts +384 -0
- package/package.json +1 -1
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { SocketEmitBody, SocketEmitResult, SocketEventType, SocketEventsFilter } from '../types/types.socket.js';
|
|
2
|
+
type UseSocketEventsFeedResult = {
|
|
3
|
+
events: SocketEventType[];
|
|
4
|
+
data: any;
|
|
5
|
+
isLoading: boolean;
|
|
6
|
+
isFetching: boolean;
|
|
7
|
+
error: unknown;
|
|
8
|
+
refetch: () => Promise<unknown>;
|
|
9
|
+
fetchNextPage: () => Promise<unknown>;
|
|
10
|
+
hasNextPage?: boolean;
|
|
11
|
+
isFetchingNextPage?: boolean;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Infinite feed for logged socket events.
|
|
15
|
+
* Mirrors the pattern used by logs/history feeds.
|
|
16
|
+
*/
|
|
17
|
+
export declare function useSocketEventsFeed(filters: SocketEventsFilter): UseSocketEventsFeedResult;
|
|
18
|
+
type UseEmitSocketEventResult = {
|
|
19
|
+
emit: (body: SocketEmitBody) => Promise<SocketEmitResult>;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Thin wrapper for emitting a socket event via POST /__rrroutes/sockets.
|
|
23
|
+
* Leaves loading/error state handling to the caller (similar to presets POST/PUT usage).
|
|
24
|
+
*/
|
|
25
|
+
export declare function useEmitSocketEvent(): UseEmitSocketEventResult;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function SocketsPage(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function SocketEventsSection(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function SocketPlayground(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -4,6 +4,7 @@ import { endpointLeaves } from './types.endpoint.js';
|
|
|
4
4
|
import { logLeaves } from './types.log.js';
|
|
5
5
|
import { presetLeaves } from './types.preset.js';
|
|
6
6
|
import { requestLogLeaves } from './types.requestLog.js';
|
|
7
|
+
import { socketLeaves } from './types.socket.js';
|
|
7
8
|
type AllLeaves = readonly [
|
|
8
9
|
...MergeAugmentedCollections<'', undefined, readonly [
|
|
9
10
|
MergeAugmentedCollections<'/__rrroutes', undefined, readonly [
|
|
@@ -11,7 +12,8 @@ type AllLeaves = readonly [
|
|
|
11
12
|
typeof requestLogLeaves,
|
|
12
13
|
typeof logLeaves,
|
|
13
14
|
typeof cacheLeaves,
|
|
14
|
-
typeof presetLeaves
|
|
15
|
+
typeof presetLeaves,
|
|
16
|
+
typeof socketLeaves
|
|
15
17
|
]>
|
|
16
18
|
]>
|
|
17
19
|
];
|
|
@@ -0,0 +1,384 @@
|
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
import { paginationSchema } from './types.base.js';
|
|
3
|
+
export declare const socketEventSchema: z.ZodObject<{
|
|
4
|
+
id: z.ZodString;
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
description: z.ZodOptional<z.ZodString>;
|
|
7
|
+
groupId: z.ZodOptional<z.ZodString>;
|
|
8
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
9
|
+
createdAt: z.ZodNumber;
|
|
10
|
+
updatedAt: z.ZodNumber;
|
|
11
|
+
eventName: z.ZodString;
|
|
12
|
+
message: z.ZodOptional<z.ZodJSONSchema>;
|
|
13
|
+
toRoomId: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
export type SocketEventType = z.infer<typeof socketEventSchema>;
|
|
16
|
+
export declare const socketEventQuerySchema: z.ZodObject<{
|
|
17
|
+
beforeDate: z.ZodOptional<z.ZodString>;
|
|
18
|
+
afterDate: z.ZodOptional<z.ZodString>;
|
|
19
|
+
orderBy: z.ZodOptional<z.ZodEnum<{
|
|
20
|
+
timestamp: "timestamp";
|
|
21
|
+
duration: "duration";
|
|
22
|
+
level: "level";
|
|
23
|
+
path: "path";
|
|
24
|
+
}>>;
|
|
25
|
+
orderDirection: z.ZodOptional<z.ZodEnum<{
|
|
26
|
+
asc: "asc";
|
|
27
|
+
desc: "desc";
|
|
28
|
+
}>>;
|
|
29
|
+
searchQuery: z.ZodOptional<z.ZodString>;
|
|
30
|
+
groupsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
31
|
+
groupsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
32
|
+
tagsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
33
|
+
tagsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
34
|
+
eventName: z.ZodOptional<z.ZodString>;
|
|
35
|
+
roomsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
36
|
+
roomsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
37
|
+
}, z.core.$strip>;
|
|
38
|
+
export type SocketEventsFilter = z.infer<typeof socketEventQuerySchema> & z.infer<typeof paginationSchema>;
|
|
39
|
+
export declare const socketEmitSchema: z.ZodObject<{
|
|
40
|
+
eventName: z.ZodString;
|
|
41
|
+
message: z.ZodOptional<z.ZodJSONSchema>;
|
|
42
|
+
toRoomId: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
43
|
+
}, z.core.$strip>;
|
|
44
|
+
export type SocketEmitBody = z.infer<typeof socketEmitSchema>;
|
|
45
|
+
export declare const socketEmitResultSchema: z.ZodObject<{
|
|
46
|
+
success: z.ZodBoolean;
|
|
47
|
+
eventId: z.ZodOptional<z.ZodString>;
|
|
48
|
+
}, z.core.$strip>;
|
|
49
|
+
export type SocketEmitResult = z.infer<typeof socketEmitResultSchema>;
|
|
50
|
+
export declare const socketLeaves: readonly [{
|
|
51
|
+
readonly method: "get";
|
|
52
|
+
readonly path: "sockets";
|
|
53
|
+
readonly cfg: Readonly<import("@emeryld/rrroutes-contract").Prettify<Omit<{}, "queryExtensionSchema" | "outputMetaSchema" | "bodySchema" | "querySchema" | "paramsSchema" | "outputSchema" | Exclude<keyof (import("@emeryld/rrroutes-contract").Prettify<Omit<C, "queryExtensionSchema" | "outputMetaSchema"> & {
|
|
54
|
+
queryExtensionSchema: C["queryExtensionSchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? C["queryExtensionSchema"] : undefined;
|
|
55
|
+
outputMetaSchema: C["outputMetaSchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? C["outputMetaSchema"] : undefined;
|
|
56
|
+
}> extends infer WithDefaults extends import("@emeryld/rrroutes-contract").MethodCfg ? import("@emeryld/rrroutes-contract").Prettify<import("@emeryld/rrroutes-contract").Prettify<Omit<Omit<import("@emeryld/rrroutes-contract").MethodCfg, "querySchema" | "outputSchema" | "feed">, Exclude<keyof WithDefaults, "querySchema" | "outputSchema" | "feed">> & Omit<WithDefaults, "querySchema" | "outputSchema" | "feed">> & (WithDefaults["feed"] extends true ? (WithDefaults["feed"] extends true ? {
|
|
57
|
+
feed: true;
|
|
58
|
+
} : {
|
|
59
|
+
feed?: boolean;
|
|
60
|
+
}) & import("@emeryld/rrroutes-contract").FeedQueryField<WithDefaults> & import("@emeryld/rrroutes-contract").OutputField<WithDefaults> & (WithDefaults["paramsSchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? {
|
|
61
|
+
paramsSchema: WithDefaults["paramsSchema"];
|
|
62
|
+
} : {
|
|
63
|
+
paramsSchema: undefined;
|
|
64
|
+
}) : (WithDefaults["feed"] extends true ? {
|
|
65
|
+
feed: true;
|
|
66
|
+
} : {
|
|
67
|
+
feed?: boolean;
|
|
68
|
+
}) & (WithDefaults["querySchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? {
|
|
69
|
+
querySchema: WithDefaults["querySchema"];
|
|
70
|
+
} : {
|
|
71
|
+
querySchema?: undefined;
|
|
72
|
+
}) & import("@emeryld/rrroutes-contract").OutputField<WithDefaults> & (WithDefaults["paramsSchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? {
|
|
73
|
+
paramsSchema: WithDefaults["paramsSchema"];
|
|
74
|
+
} : {
|
|
75
|
+
paramsSchema: undefined;
|
|
76
|
+
}))> : never), "outputMetaSchema" | "bodySchema" | "querySchema" | "paramsSchema" | "outputSchema">> & import("@emeryld/rrroutes-contract").Prettify<Omit<import("@emeryld/rrroutes-contract").Prettify<import("@emeryld/rrroutes-contract").Prettify<Omit<Omit<import("@emeryld/rrroutes-contract").MethodCfg, "querySchema" | "outputSchema" | "feed">, "queryExtensionSchema" | "outputMetaSchema"> & Omit<import("@emeryld/rrroutes-contract").Prettify<Omit<{
|
|
77
|
+
feed: true;
|
|
78
|
+
outputSchema: z.ZodArray<z.ZodObject<{
|
|
79
|
+
id: z.ZodString;
|
|
80
|
+
name: z.ZodString;
|
|
81
|
+
description: z.ZodOptional<z.ZodString>;
|
|
82
|
+
groupId: z.ZodOptional<z.ZodString>;
|
|
83
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
84
|
+
createdAt: z.ZodNumber;
|
|
85
|
+
updatedAt: z.ZodNumber;
|
|
86
|
+
eventName: z.ZodString;
|
|
87
|
+
message: z.ZodOptional<z.ZodJSONSchema>;
|
|
88
|
+
toRoomId: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
89
|
+
}, z.core.$strip>>;
|
|
90
|
+
querySchema: z.ZodObject<{
|
|
91
|
+
beforeDate: z.ZodOptional<z.ZodString>;
|
|
92
|
+
afterDate: z.ZodOptional<z.ZodString>;
|
|
93
|
+
orderBy: z.ZodOptional<z.ZodEnum<{
|
|
94
|
+
timestamp: "timestamp";
|
|
95
|
+
duration: "duration";
|
|
96
|
+
level: "level";
|
|
97
|
+
path: "path";
|
|
98
|
+
}>>;
|
|
99
|
+
orderDirection: z.ZodOptional<z.ZodEnum<{
|
|
100
|
+
asc: "asc";
|
|
101
|
+
desc: "desc";
|
|
102
|
+
}>>;
|
|
103
|
+
searchQuery: z.ZodOptional<z.ZodString>;
|
|
104
|
+
groupsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
105
|
+
groupsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
106
|
+
tagsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
107
|
+
tagsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
108
|
+
eventName: z.ZodOptional<z.ZodString>;
|
|
109
|
+
roomsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
110
|
+
roomsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
111
|
+
}, z.core.$strip>;
|
|
112
|
+
outputMetaSchema: z.ZodObject<{
|
|
113
|
+
totalCount: z.ZodOptional<z.ZodNumber>;
|
|
114
|
+
nextCursor: z.ZodOptional<z.ZodString>;
|
|
115
|
+
}, z.core.$strip>;
|
|
116
|
+
queryExtensionSchema: z.ZodObject<{
|
|
117
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
118
|
+
pageSize: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
119
|
+
}, z.core.$strip>;
|
|
120
|
+
}, "queryExtensionSchema" | "outputMetaSchema"> & {
|
|
121
|
+
queryExtensionSchema: z.ZodObject<{
|
|
122
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
123
|
+
pageSize: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
124
|
+
}, z.core.$strip>;
|
|
125
|
+
outputMetaSchema: z.ZodObject<{
|
|
126
|
+
totalCount: z.ZodOptional<z.ZodNumber>;
|
|
127
|
+
nextCursor: z.ZodOptional<z.ZodString>;
|
|
128
|
+
}, z.core.$strip>;
|
|
129
|
+
}>, "querySchema" | "outputSchema" | "feed">> & {
|
|
130
|
+
feed: true;
|
|
131
|
+
} & import("@emeryld/rrroutes-contract").FeedQueryField<import("@emeryld/rrroutes-contract").Prettify<Omit<{
|
|
132
|
+
feed: true;
|
|
133
|
+
outputSchema: z.ZodArray<z.ZodObject<{
|
|
134
|
+
id: z.ZodString;
|
|
135
|
+
name: z.ZodString;
|
|
136
|
+
description: z.ZodOptional<z.ZodString>;
|
|
137
|
+
groupId: z.ZodOptional<z.ZodString>;
|
|
138
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
139
|
+
createdAt: z.ZodNumber;
|
|
140
|
+
updatedAt: z.ZodNumber;
|
|
141
|
+
eventName: z.ZodString;
|
|
142
|
+
message: z.ZodOptional<z.ZodJSONSchema>;
|
|
143
|
+
toRoomId: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
144
|
+
}, z.core.$strip>>;
|
|
145
|
+
querySchema: z.ZodObject<{
|
|
146
|
+
beforeDate: z.ZodOptional<z.ZodString>;
|
|
147
|
+
afterDate: z.ZodOptional<z.ZodString>;
|
|
148
|
+
orderBy: z.ZodOptional<z.ZodEnum<{
|
|
149
|
+
timestamp: "timestamp";
|
|
150
|
+
duration: "duration";
|
|
151
|
+
level: "level";
|
|
152
|
+
path: "path";
|
|
153
|
+
}>>;
|
|
154
|
+
orderDirection: z.ZodOptional<z.ZodEnum<{
|
|
155
|
+
asc: "asc";
|
|
156
|
+
desc: "desc";
|
|
157
|
+
}>>;
|
|
158
|
+
searchQuery: z.ZodOptional<z.ZodString>;
|
|
159
|
+
groupsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
160
|
+
groupsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
161
|
+
tagsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
162
|
+
tagsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
163
|
+
eventName: z.ZodOptional<z.ZodString>;
|
|
164
|
+
roomsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
165
|
+
roomsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
166
|
+
}, z.core.$strip>;
|
|
167
|
+
outputMetaSchema: z.ZodObject<{
|
|
168
|
+
totalCount: z.ZodOptional<z.ZodNumber>;
|
|
169
|
+
nextCursor: z.ZodOptional<z.ZodString>;
|
|
170
|
+
}, z.core.$strip>;
|
|
171
|
+
queryExtensionSchema: z.ZodObject<{
|
|
172
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
173
|
+
pageSize: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
174
|
+
}, z.core.$strip>;
|
|
175
|
+
}, "queryExtensionSchema" | "outputMetaSchema"> & {
|
|
176
|
+
queryExtensionSchema: z.ZodObject<{
|
|
177
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
178
|
+
pageSize: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
179
|
+
}, z.core.$strip>;
|
|
180
|
+
outputMetaSchema: z.ZodObject<{
|
|
181
|
+
totalCount: z.ZodOptional<z.ZodNumber>;
|
|
182
|
+
nextCursor: z.ZodOptional<z.ZodString>;
|
|
183
|
+
}, z.core.$strip>;
|
|
184
|
+
}>> & {
|
|
185
|
+
outputSchema: z.ZodObject<{
|
|
186
|
+
out: z.ZodArray<z.ZodObject<{
|
|
187
|
+
id: z.ZodString;
|
|
188
|
+
name: z.ZodString;
|
|
189
|
+
description: z.ZodOptional<z.ZodString>;
|
|
190
|
+
groupId: z.ZodOptional<z.ZodString>;
|
|
191
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
192
|
+
createdAt: z.ZodNumber;
|
|
193
|
+
updatedAt: z.ZodNumber;
|
|
194
|
+
eventName: z.ZodString;
|
|
195
|
+
message: z.ZodOptional<z.ZodJSONSchema>;
|
|
196
|
+
toRoomId: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
197
|
+
}, z.core.$strip>>;
|
|
198
|
+
meta: z.ZodObject<{
|
|
199
|
+
totalCount: z.ZodOptional<z.ZodNumber>;
|
|
200
|
+
nextCursor: z.ZodOptional<z.ZodString>;
|
|
201
|
+
}, z.core.$strip>;
|
|
202
|
+
}, z.core.$strip>;
|
|
203
|
+
} & {
|
|
204
|
+
paramsSchema: undefined;
|
|
205
|
+
}>, "outputMetaSchema" | "bodySchema" | "querySchema" | "paramsSchema" | "outputSchema"> & {
|
|
206
|
+
bodySchema: import("@emeryld/rrroutes-contract").RouteSchema<unknown, unknown> | undefined;
|
|
207
|
+
querySchema: import("@emeryld/rrroutes-contract").RouteSchema<{
|
|
208
|
+
beforeDate?: string | undefined;
|
|
209
|
+
afterDate?: string | undefined;
|
|
210
|
+
orderBy?: "timestamp" | "duration" | "level" | "path" | undefined;
|
|
211
|
+
orderDirection?: "asc" | "desc" | undefined;
|
|
212
|
+
searchQuery?: string | undefined;
|
|
213
|
+
groupsInclude?: string[] | undefined;
|
|
214
|
+
groupsExclude?: string[] | undefined;
|
|
215
|
+
tagsInclude?: string[] | undefined;
|
|
216
|
+
tagsExclude?: string[] | undefined;
|
|
217
|
+
eventName?: string | undefined;
|
|
218
|
+
roomsInclude?: string[] | undefined;
|
|
219
|
+
roomsExclude?: string[] | undefined;
|
|
220
|
+
} & {
|
|
221
|
+
cursor?: string | undefined;
|
|
222
|
+
pageSize?: number | undefined;
|
|
223
|
+
}, {
|
|
224
|
+
beforeDate?: string | undefined;
|
|
225
|
+
afterDate?: string | undefined;
|
|
226
|
+
orderBy?: "timestamp" | "duration" | "level" | "path" | undefined;
|
|
227
|
+
orderDirection?: "asc" | "desc" | undefined;
|
|
228
|
+
searchQuery?: string | undefined;
|
|
229
|
+
groupsInclude?: string[] | undefined;
|
|
230
|
+
groupsExclude?: string[] | undefined;
|
|
231
|
+
tagsInclude?: string[] | undefined;
|
|
232
|
+
tagsExclude?: string[] | undefined;
|
|
233
|
+
eventName?: string | undefined;
|
|
234
|
+
roomsInclude?: string[] | undefined;
|
|
235
|
+
roomsExclude?: string[] | undefined;
|
|
236
|
+
} & {
|
|
237
|
+
cursor?: string | undefined;
|
|
238
|
+
pageSize?: unknown;
|
|
239
|
+
}>;
|
|
240
|
+
paramsSchema: undefined;
|
|
241
|
+
outputSchema: import("@emeryld/rrroutes-contract").RouteSchema<{
|
|
242
|
+
out: {
|
|
243
|
+
id: string;
|
|
244
|
+
name: string;
|
|
245
|
+
createdAt: number;
|
|
246
|
+
updatedAt: number;
|
|
247
|
+
eventName: string;
|
|
248
|
+
toRoomId: string[] | null;
|
|
249
|
+
description?: string | undefined;
|
|
250
|
+
groupId?: string | undefined;
|
|
251
|
+
tags?: string[] | undefined;
|
|
252
|
+
message?: z.core.util.JSONType | undefined;
|
|
253
|
+
}[];
|
|
254
|
+
meta: {
|
|
255
|
+
totalCount?: number | undefined;
|
|
256
|
+
nextCursor?: string | undefined;
|
|
257
|
+
};
|
|
258
|
+
}, {
|
|
259
|
+
out: {
|
|
260
|
+
id: string;
|
|
261
|
+
name: string;
|
|
262
|
+
createdAt: number;
|
|
263
|
+
updatedAt: number;
|
|
264
|
+
eventName: string;
|
|
265
|
+
toRoomId: string[] | null;
|
|
266
|
+
description?: string | undefined;
|
|
267
|
+
groupId?: string | undefined;
|
|
268
|
+
tags?: string[] | undefined;
|
|
269
|
+
message?: z.core.util.JSONType | undefined;
|
|
270
|
+
}[];
|
|
271
|
+
meta: {
|
|
272
|
+
totalCount?: number | undefined;
|
|
273
|
+
nextCursor?: string | undefined;
|
|
274
|
+
};
|
|
275
|
+
}>;
|
|
276
|
+
outputMetaSchema: import("@emeryld/rrroutes-contract").RouteSchema<{
|
|
277
|
+
totalCount?: number | undefined;
|
|
278
|
+
nextCursor?: string | undefined;
|
|
279
|
+
}, {
|
|
280
|
+
totalCount?: number | undefined;
|
|
281
|
+
nextCursor?: string | undefined;
|
|
282
|
+
}>;
|
|
283
|
+
queryExtensionSchema: import("@emeryld/rrroutes-contract").RouteSchema<{
|
|
284
|
+
cursor?: string | undefined;
|
|
285
|
+
pageSize?: number | undefined;
|
|
286
|
+
}, {
|
|
287
|
+
cursor?: string | undefined;
|
|
288
|
+
pageSize?: unknown;
|
|
289
|
+
}>;
|
|
290
|
+
}>>>;
|
|
291
|
+
}, {
|
|
292
|
+
readonly method: "post";
|
|
293
|
+
readonly path: "sockets";
|
|
294
|
+
readonly cfg: Readonly<import("@emeryld/rrroutes-contract").Prettify<Omit<{}, "queryExtensionSchema" | "outputMetaSchema" | "bodySchema" | "querySchema" | "paramsSchema" | "outputSchema" | Exclude<keyof (import("@emeryld/rrroutes-contract").Prettify<Omit<import("@emeryld/rrroutes-contract").Prettify<Omit<C_1, "feed"> & {
|
|
295
|
+
feed: false;
|
|
296
|
+
}>, "queryExtensionSchema" | "outputMetaSchema"> & {
|
|
297
|
+
queryExtensionSchema: import("@emeryld/rrroutes-contract").Prettify<Omit<C_1, "feed"> & {
|
|
298
|
+
feed: false;
|
|
299
|
+
}>["queryExtensionSchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? import("@emeryld/rrroutes-contract").Prettify<Omit<C_1, "feed"> & {
|
|
300
|
+
feed: false;
|
|
301
|
+
}>["queryExtensionSchema"] : undefined;
|
|
302
|
+
outputMetaSchema: import("@emeryld/rrroutes-contract").Prettify<Omit<C_1, "feed"> & {
|
|
303
|
+
feed: false;
|
|
304
|
+
}>["outputMetaSchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? import("@emeryld/rrroutes-contract").Prettify<Omit<C_1, "feed"> & {
|
|
305
|
+
feed: false;
|
|
306
|
+
}>["outputMetaSchema"] : undefined;
|
|
307
|
+
}> extends infer WithDefaults extends import("@emeryld/rrroutes-contract").MethodCfg ? import("@emeryld/rrroutes-contract").Prettify<import("@emeryld/rrroutes-contract").Prettify<Omit<Omit<import("@emeryld/rrroutes-contract").MethodCfg, "querySchema" | "outputSchema" | "feed">, Exclude<keyof WithDefaults, "querySchema" | "outputSchema" | "feed">> & Omit<WithDefaults, "querySchema" | "outputSchema" | "feed">> & (WithDefaults["feed"] extends true ? (WithDefaults["feed"] extends true ? {
|
|
308
|
+
feed: true;
|
|
309
|
+
} : {
|
|
310
|
+
feed?: boolean;
|
|
311
|
+
}) & import("@emeryld/rrroutes-contract").FeedQueryField<WithDefaults> & import("@emeryld/rrroutes-contract").OutputField<WithDefaults> & (WithDefaults["paramsSchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? {
|
|
312
|
+
paramsSchema: WithDefaults["paramsSchema"];
|
|
313
|
+
} : {
|
|
314
|
+
paramsSchema: undefined;
|
|
315
|
+
}) : (WithDefaults["feed"] extends true ? {
|
|
316
|
+
feed: true;
|
|
317
|
+
} : {
|
|
318
|
+
feed?: boolean;
|
|
319
|
+
}) & (WithDefaults["querySchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? {
|
|
320
|
+
querySchema: WithDefaults["querySchema"];
|
|
321
|
+
} : {
|
|
322
|
+
querySchema?: undefined;
|
|
323
|
+
}) & import("@emeryld/rrroutes-contract").OutputField<WithDefaults> & (WithDefaults["paramsSchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? {
|
|
324
|
+
paramsSchema: WithDefaults["paramsSchema"];
|
|
325
|
+
} : {
|
|
326
|
+
paramsSchema: undefined;
|
|
327
|
+
}))> : never), "outputMetaSchema" | "bodySchema" | "querySchema" | "paramsSchema" | "outputSchema">> & import("@emeryld/rrroutes-contract").Prettify<Omit<import("@emeryld/rrroutes-contract").Prettify<import("@emeryld/rrroutes-contract").Prettify<Omit<Omit<import("@emeryld/rrroutes-contract").MethodCfg, "querySchema" | "outputSchema" | "feed">, "queryExtensionSchema" | "outputMetaSchema" | "bodySchema"> & Omit<import("@emeryld/rrroutes-contract").Prettify<Omit<import("@emeryld/rrroutes-contract").Prettify<Omit<{
|
|
328
|
+
bodySchema: z.ZodObject<{
|
|
329
|
+
eventName: z.ZodString;
|
|
330
|
+
message: z.ZodOptional<z.ZodJSONSchema>;
|
|
331
|
+
toRoomId: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
332
|
+
}, z.core.$strip>;
|
|
333
|
+
outputSchema: z.ZodObject<{
|
|
334
|
+
success: z.ZodBoolean;
|
|
335
|
+
eventId: z.ZodOptional<z.ZodString>;
|
|
336
|
+
}, z.core.$strip>;
|
|
337
|
+
}, "feed"> & {
|
|
338
|
+
feed: false;
|
|
339
|
+
}>, "queryExtensionSchema" | "outputMetaSchema"> & {
|
|
340
|
+
queryExtensionSchema: undefined;
|
|
341
|
+
outputMetaSchema: undefined;
|
|
342
|
+
}>, "querySchema" | "outputSchema" | "feed">> & {
|
|
343
|
+
feed?: boolean;
|
|
344
|
+
} & {
|
|
345
|
+
querySchema?: undefined;
|
|
346
|
+
} & {
|
|
347
|
+
outputSchema: z.ZodObject<{
|
|
348
|
+
out: z.ZodObject<{
|
|
349
|
+
success: z.ZodBoolean;
|
|
350
|
+
eventId: z.ZodOptional<z.ZodString>;
|
|
351
|
+
}, z.core.$strip>;
|
|
352
|
+
meta: z.ZodOptional<z.ZodString>;
|
|
353
|
+
}, z.core.$strip>;
|
|
354
|
+
} & {
|
|
355
|
+
paramsSchema: undefined;
|
|
356
|
+
}>, "outputMetaSchema" | "bodySchema" | "querySchema" | "paramsSchema" | "outputSchema"> & {
|
|
357
|
+
bodySchema: import("@emeryld/rrroutes-contract").RouteSchema<{
|
|
358
|
+
eventName: string;
|
|
359
|
+
toRoomId: string[] | null;
|
|
360
|
+
message?: z.core.util.JSONType | undefined;
|
|
361
|
+
}, {
|
|
362
|
+
eventName: string;
|
|
363
|
+
toRoomId: string[] | null;
|
|
364
|
+
message?: z.core.util.JSONType | undefined;
|
|
365
|
+
}>;
|
|
366
|
+
querySchema: undefined;
|
|
367
|
+
paramsSchema: undefined;
|
|
368
|
+
outputSchema: import("@emeryld/rrroutes-contract").RouteSchema<{
|
|
369
|
+
out: {
|
|
370
|
+
success: boolean;
|
|
371
|
+
eventId?: string | undefined;
|
|
372
|
+
};
|
|
373
|
+
meta?: string | undefined;
|
|
374
|
+
}, {
|
|
375
|
+
out: {
|
|
376
|
+
success: boolean;
|
|
377
|
+
eventId?: string | undefined;
|
|
378
|
+
};
|
|
379
|
+
meta?: string | undefined;
|
|
380
|
+
}>;
|
|
381
|
+
outputMetaSchema: undefined;
|
|
382
|
+
queryExtensionSchema: undefined;
|
|
383
|
+
}>>>;
|
|
384
|
+
}];
|