@emeryld/rrroutes-openapi 2.4.3 → 2.4.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.
@@ -57,27 +57,196 @@ export type ApplicationLogsFilter = z.infer<typeof logQuerySchema> & z.infer<typ
57
57
  export declare const logLeaves: readonly [{
58
58
  readonly method: "get";
59
59
  readonly path: "logs";
60
- readonly cfg: Readonly<{
61
- description?: string | undefined;
62
- tags?: string[] | undefined;
60
+ 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"> & {
61
+ queryExtensionSchema: C["queryExtensionSchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? C["queryExtensionSchema"] : undefined;
62
+ outputMetaSchema: C["outputMetaSchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? C["outputMetaSchema"] : undefined;
63
+ }> 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 ? {
64
+ feed: true;
65
+ } : {
66
+ feed?: boolean;
67
+ }) & import("@emeryld/rrroutes-contract").FeedQueryField<WithDefaults> & import("@emeryld/rrroutes-contract").OutputField<WithDefaults> & (WithDefaults["paramsSchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? {
68
+ paramsSchema: WithDefaults["paramsSchema"];
69
+ } : {
70
+ paramsSchema: undefined;
71
+ }) : (WithDefaults["feed"] extends true ? {
72
+ feed: true;
73
+ } : {
74
+ feed?: boolean;
75
+ }) & (WithDefaults["querySchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? {
76
+ querySchema: WithDefaults["querySchema"];
77
+ } : {
78
+ querySchema?: undefined;
79
+ }) & import("@emeryld/rrroutes-contract").OutputField<WithDefaults> & (WithDefaults["paramsSchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? {
80
+ paramsSchema: WithDefaults["paramsSchema"];
81
+ } : {
82
+ paramsSchema: undefined;
83
+ }))> : 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<{
84
+ feed: true;
85
+ outputSchema: z.ZodArray<z.ZodObject<{
86
+ id: z.ZodString;
87
+ name: z.ZodString;
88
+ description: z.ZodOptional<z.ZodString>;
89
+ groupId: z.ZodOptional<z.ZodString>;
90
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
91
+ createdAt: z.ZodNumber;
92
+ updatedAt: z.ZodNumber;
93
+ level: z.ZodEnum<{
94
+ error: "error";
95
+ info: "info";
96
+ warning: "warning";
97
+ debug: "debug";
98
+ trace: "trace";
99
+ }>;
100
+ meta: z.ZodOptional<z.ZodAny>;
101
+ }, z.core.$strip>>;
102
+ querySchema: z.ZodObject<{
103
+ beforeDate: z.ZodOptional<z.ZodString>;
104
+ afterDate: z.ZodOptional<z.ZodString>;
105
+ orderBy: z.ZodOptional<z.ZodEnum<{
106
+ timestamp: "timestamp";
107
+ duration: "duration";
108
+ level: "level";
109
+ path: "path";
110
+ }>>;
111
+ orderDirection: z.ZodOptional<z.ZodEnum<{
112
+ asc: "asc";
113
+ desc: "desc";
114
+ }>>;
115
+ searchQuery: z.ZodOptional<z.ZodString>;
116
+ groupsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
117
+ groupsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
118
+ tagsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
119
+ tagsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
120
+ levelsInclude: z.ZodOptional<z.ZodArray<z.ZodEnum<{
121
+ error: "error";
122
+ info: "info";
123
+ warning: "warning";
124
+ debug: "debug";
125
+ trace: "trace";
126
+ }>>>;
127
+ levelsExclude: z.ZodOptional<z.ZodArray<z.ZodEnum<{
128
+ error: "error";
129
+ info: "info";
130
+ warning: "warning";
131
+ debug: "debug";
132
+ trace: "trace";
133
+ }>>>;
134
+ }, z.core.$strip>;
135
+ outputMetaSchema: z.ZodObject<{
136
+ totalCount: z.ZodOptional<z.ZodNumber>;
137
+ nextCursor: z.ZodOptional<z.ZodString>;
138
+ }, z.core.$strip>;
63
139
  queryExtensionSchema: z.ZodObject<{
64
140
  cursor: z.ZodOptional<z.ZodString>;
65
141
  pageSize: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
66
- }, z.core.$strip> & import("@emeryld/rrroutes-contract").RouteSchema<{
67
- cursor?: string | undefined;
68
- pageSize?: number | undefined;
69
- }, {
70
- cursor?: string | undefined;
71
- pageSize?: unknown;
72
- }>;
73
- bodyFiles?: import("@emeryld/rrroutes-contract").FileField[] | undefined;
142
+ }, z.core.$strip>;
143
+ }, "queryExtensionSchema" | "outputMetaSchema"> & {
144
+ queryExtensionSchema: z.ZodObject<{
145
+ cursor: z.ZodOptional<z.ZodString>;
146
+ pageSize: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
147
+ }, z.core.$strip>;
148
+ outputMetaSchema: z.ZodObject<{
149
+ totalCount: z.ZodOptional<z.ZodNumber>;
150
+ nextCursor: z.ZodOptional<z.ZodString>;
151
+ }, z.core.$strip>;
152
+ }>, "querySchema" | "outputSchema" | "feed">> & {
153
+ feed: true;
154
+ } & import("@emeryld/rrroutes-contract").FeedQueryField<import("@emeryld/rrroutes-contract").Prettify<Omit<{
74
155
  feed: true;
75
- summary?: string | undefined;
76
- docsGroup?: string | undefined;
77
- deprecated?: boolean | undefined;
78
- stability?: "experimental" | "beta" | "stable" | "deprecated" | undefined;
79
- docsHidden?: boolean | undefined;
80
- docsMeta?: Record<string, unknown> | undefined;
156
+ outputSchema: z.ZodArray<z.ZodObject<{
157
+ id: z.ZodString;
158
+ name: z.ZodString;
159
+ description: z.ZodOptional<z.ZodString>;
160
+ groupId: z.ZodOptional<z.ZodString>;
161
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
162
+ createdAt: z.ZodNumber;
163
+ updatedAt: z.ZodNumber;
164
+ level: z.ZodEnum<{
165
+ error: "error";
166
+ info: "info";
167
+ warning: "warning";
168
+ debug: "debug";
169
+ trace: "trace";
170
+ }>;
171
+ meta: z.ZodOptional<z.ZodAny>;
172
+ }, z.core.$strip>>;
173
+ querySchema: z.ZodObject<{
174
+ beforeDate: z.ZodOptional<z.ZodString>;
175
+ afterDate: z.ZodOptional<z.ZodString>;
176
+ orderBy: z.ZodOptional<z.ZodEnum<{
177
+ timestamp: "timestamp";
178
+ duration: "duration";
179
+ level: "level";
180
+ path: "path";
181
+ }>>;
182
+ orderDirection: z.ZodOptional<z.ZodEnum<{
183
+ asc: "asc";
184
+ desc: "desc";
185
+ }>>;
186
+ searchQuery: z.ZodOptional<z.ZodString>;
187
+ groupsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
188
+ groupsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
189
+ tagsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
190
+ tagsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
191
+ levelsInclude: z.ZodOptional<z.ZodArray<z.ZodEnum<{
192
+ error: "error";
193
+ info: "info";
194
+ warning: "warning";
195
+ debug: "debug";
196
+ trace: "trace";
197
+ }>>>;
198
+ levelsExclude: z.ZodOptional<z.ZodArray<z.ZodEnum<{
199
+ error: "error";
200
+ info: "info";
201
+ warning: "warning";
202
+ debug: "debug";
203
+ trace: "trace";
204
+ }>>>;
205
+ }, z.core.$strip>;
206
+ outputMetaSchema: z.ZodObject<{
207
+ totalCount: z.ZodOptional<z.ZodNumber>;
208
+ nextCursor: z.ZodOptional<z.ZodString>;
209
+ }, z.core.$strip>;
210
+ queryExtensionSchema: z.ZodObject<{
211
+ cursor: z.ZodOptional<z.ZodString>;
212
+ pageSize: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
213
+ }, z.core.$strip>;
214
+ }, "queryExtensionSchema" | "outputMetaSchema"> & {
215
+ queryExtensionSchema: z.ZodObject<{
216
+ cursor: z.ZodOptional<z.ZodString>;
217
+ pageSize: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
218
+ }, z.core.$strip>;
219
+ outputMetaSchema: z.ZodObject<{
220
+ totalCount: z.ZodOptional<z.ZodNumber>;
221
+ nextCursor: z.ZodOptional<z.ZodString>;
222
+ }, z.core.$strip>;
223
+ }>> & {
224
+ outputSchema: z.ZodObject<{
225
+ out: z.ZodArray<z.ZodObject<{
226
+ id: z.ZodString;
227
+ name: z.ZodString;
228
+ description: z.ZodOptional<z.ZodString>;
229
+ groupId: z.ZodOptional<z.ZodString>;
230
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
231
+ createdAt: z.ZodNumber;
232
+ updatedAt: z.ZodNumber;
233
+ level: z.ZodEnum<{
234
+ error: "error";
235
+ info: "info";
236
+ warning: "warning";
237
+ debug: "debug";
238
+ trace: "trace";
239
+ }>;
240
+ meta: z.ZodOptional<z.ZodAny>;
241
+ }, z.core.$strip>>;
242
+ meta: z.ZodObject<{
243
+ totalCount: z.ZodOptional<z.ZodNumber>;
244
+ nextCursor: z.ZodOptional<z.ZodString>;
245
+ }, z.core.$strip>;
246
+ }, z.core.$strip>;
247
+ } & {
248
+ paramsSchema: undefined;
249
+ }>, "outputMetaSchema" | "bodySchema" | "querySchema" | "paramsSchema" | "outputSchema"> & {
81
250
  bodySchema: import("@emeryld/rrroutes-contract").RouteSchema<unknown, unknown> | undefined;
82
251
  querySchema: import("@emeryld/rrroutes-contract").RouteSchema<{
83
252
  beforeDate?: string | undefined;
@@ -151,5 +320,12 @@ export declare const logLeaves: readonly [{
151
320
  totalCount?: number | undefined;
152
321
  nextCursor?: string | undefined;
153
322
  }>;
154
- }>;
323
+ queryExtensionSchema: import("@emeryld/rrroutes-contract").RouteSchema<{
324
+ cursor?: string | undefined;
325
+ pageSize?: number | undefined;
326
+ }, {
327
+ cursor?: string | undefined;
328
+ pageSize?: unknown;
329
+ }>;
330
+ }>>>;
155
331
  }];