vovk-hello-world 0.0.68 → 0.0.69

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/README.md CHANGED
@@ -1,7 +1,7 @@
1
- <!-- Generated by vovk-cli v0.0.1-draft.399 at 2025-11-24T10:45:12.285Z -->
1
+ <!-- Generated by vovk-cli v0.0.1-beta.59 at 2025-12-30T17:43:21.540Z -->
2
2
 
3
3
 
4
- # vovk-hello-world v0.0.68 [![TypeScript](https://badgen.net/badge/-/TypeScript?icon=typescript&label&labelColor=blue&color=555555)](https://www.typescriptlang.org/) [![Vovk.ts](https://badgen.net/badge/Built%20with/Vovk.ts/333333?icon=https://vovk.dev/icon-white.svg)](https://vovk.dev)
4
+ # vovk-hello-world v0.0.69 [![TypeScript](https://badgen.net/badge/-/TypeScript?icon=typescript&label&labelColor=blue&color=555555)](https://www.typescriptlang.org/) [![Vovk.ts](https://badgen.net/badge/Built%20with/Vovk.ts/333333?icon=https://vovk.dev/icon-white.svg)](https://vovk.dev)
5
5
 
6
6
  > A showcase app built with Next.js + Vovk.ts + Zod. For more details, visit https://vovk.dev/hello-world
7
7
 
package/index.cjs CHANGED
@@ -43,12 +43,10 @@ var root_default = {
43
43
  "maximum": 120
44
44
  }
45
45
  },
46
- "required": ["name", "age"],
47
- "additionalProperties": false
46
+ "required": ["name", "age"]
48
47
  }
49
48
  },
50
- "required": ["email", "profile"],
51
- "additionalProperties": false
49
+ "required": ["email", "profile"]
52
50
  },
53
51
  "query": {
54
52
  "$schema": "https://json-schema.org/draft/2020-12/schema",
@@ -63,8 +61,7 @@ var root_default = {
63
61
  "none"
64
62
  ]
65
63
  } },
66
- "required": ["notify"],
67
- "additionalProperties": false
64
+ "required": ["notify"]
68
65
  },
69
66
  "params": {
70
67
  "$schema": "https://json-schema.org/draft/2020-12/schema",
@@ -77,8 +74,7 @@ var root_default = {
77
74
  "format": "uuid",
78
75
  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
79
76
  } },
80
- "required": ["id"],
81
- "additionalProperties": false
77
+ "required": ["id"]
82
78
  },
83
79
  "output": {
84
80
  "$schema": "https://json-schema.org/draft/2020-12/schema",
@@ -109,8 +105,7 @@ var root_default = {
109
105
  "success",
110
106
  "id",
111
107
  "notify"
112
- ],
113
- "additionalProperties": false
108
+ ]
114
109
  }
115
110
  },
116
111
  "operationObject": {
@@ -134,8 +129,7 @@ var root_default = {
134
129
  "description": "Message from the token",
135
130
  "type": "string"
136
131
  } },
137
- "required": ["message"],
138
- "additionalProperties": false
132
+ "required": ["message"]
139
133
  } },
140
134
  "operationObject": {
141
135
  "summary": "Stream tokens",
@@ -176,6 +170,7 @@ var _meta_default = {
176
170
  $schema: "https://vovk.dev/api/schema/v3/meta.json",
177
171
  config: {
178
172
  "libs": {},
173
+ "rootEntry": "api",
179
174
  "$schema": "https://vovk.dev/api/schema/v3/config.json"
180
175
  }
181
176
  };
package/index.d.cts CHANGED
@@ -1,10 +1,281 @@
1
- import * as vovk0 from "vovk";
1
+ import * as vovk5 from "vovk";
2
+ import * as vovk_mjs_types0 from "vovk/mjs/types";
2
3
  import * as _standard_schema_spec0 from "@standard-schema/spec";
3
- import * as zod0 from "zod";
4
- import * as zod_v4_core0 from "zod/v4/core";
5
- import * as vovk_mjs_client_types0 from "vovk/mjs/client/types";
4
+ import { z } from "zod";
5
+ import * as vovk_mjs_internal0 from "vovk/mjs/internal";
6
6
  import * as openapi3_ts_oas310 from "openapi3-ts/oas31";
7
7
 
8
+ //#region src/modules/user/UserController.d.ts
9
+ declare class UserController {
10
+ static updateUser: ((req: vovk5.VovkRequest<{
11
+ email: string;
12
+ profile: {
13
+ name: string;
14
+ age: number;
15
+ };
16
+ }, {
17
+ notify: "email" | "push" | "none";
18
+ }, {
19
+ id: string;
20
+ }>, {
21
+ id
22
+ }: {
23
+ id: string;
24
+ }) => Promise<{
25
+ id: string;
26
+ notify: "email" | "push" | "none";
27
+ success: true;
28
+ }>) & {
29
+ __types: {
30
+ body: {
31
+ email: string;
32
+ profile: {
33
+ name: string;
34
+ age: number;
35
+ };
36
+ };
37
+ query: {
38
+ notify: "email" | "push" | "none";
39
+ };
40
+ params: {
41
+ id: string;
42
+ };
43
+ output: {
44
+ success: boolean;
45
+ id: string;
46
+ notify: "email" | "push" | "none";
47
+ };
48
+ iteration: unknown;
49
+ isForm: false;
50
+ };
51
+ isRPC?: boolean;
52
+ } & {
53
+ schema: Omit<vovk_mjs_types0.VovkHandlerSchema, "httpMethod" | "path"> & Partial<vovk_mjs_types0.VovkHandlerSchema>;
54
+ wrapper?: (req: vovk5.VovkRequest<any, any, any>, params: {
55
+ id: string;
56
+ }) => Promise<{
57
+ id: string;
58
+ notify: "email" | "push" | "none";
59
+ success: true;
60
+ }>;
61
+ } & {
62
+ fn: {
63
+ <TTransformed>(input: Omit<{
64
+ disableClientValidation?: boolean;
65
+ transform?: undefined;
66
+ } & {
67
+ body?: {
68
+ email: string;
69
+ profile: {
70
+ name: string;
71
+ age: number;
72
+ };
73
+ };
74
+ } & {
75
+ query?: {
76
+ notify: "email" | "push" | "none";
77
+ };
78
+ } & {
79
+ params?: {
80
+ id: string;
81
+ };
82
+ } & {
83
+ meta?: {
84
+ [key: string]: any;
85
+ __disableClientValidation?: boolean;
86
+ };
87
+ }, "transform"> & {
88
+ transform: (result: {
89
+ id: string;
90
+ notify: "email" | "push" | "none";
91
+ success: true;
92
+ }, fakeReq: Pick<vovk5.VovkRequest<any, any, any>, "vovk">) => TTransformed;
93
+ }): Promise<TTransformed>;
94
+ <TReturnType = Promise<{
95
+ id: string;
96
+ notify: "email" | "push" | "none";
97
+ success: true;
98
+ }>>(input?: {
99
+ disableClientValidation?: boolean;
100
+ transform?: undefined;
101
+ } & {
102
+ body?: {
103
+ email: string;
104
+ profile: {
105
+ name: string;
106
+ age: number;
107
+ };
108
+ };
109
+ } & {
110
+ query?: {
111
+ notify: "email" | "push" | "none";
112
+ };
113
+ } & {
114
+ params?: {
115
+ id: string;
116
+ };
117
+ } & {
118
+ meta?: {
119
+ [key: string]: any;
120
+ __disableClientValidation?: boolean;
121
+ };
122
+ }): TReturnType;
123
+ <TReturnType = Promise<{
124
+ id: string;
125
+ notify: "email" | "push" | "none";
126
+ success: true;
127
+ }>>(input: {
128
+ disableClientValidation?: boolean;
129
+ transform?: undefined;
130
+ } & {
131
+ body?: {
132
+ email: string;
133
+ profile: {
134
+ name: string;
135
+ age: number;
136
+ };
137
+ };
138
+ } & {
139
+ query?: {
140
+ notify: "email" | "push" | "none";
141
+ };
142
+ } & {
143
+ params?: {
144
+ id: string;
145
+ };
146
+ } & {
147
+ meta?: {
148
+ [key: string]: any;
149
+ __disableClientValidation?: boolean;
150
+ };
151
+ }): TReturnType;
152
+ };
153
+ models: {
154
+ iteration?: _standard_schema_spec0.StandardSchemaV1<unknown, unknown>;
155
+ output?: z.ZodObject<{
156
+ success: z.ZodBoolean;
157
+ id: z.ZodUUID;
158
+ notify: z.ZodEnum<{
159
+ email: "email";
160
+ push: "push";
161
+ none: "none";
162
+ }>;
163
+ }, z.core.$strip>;
164
+ params?: z.ZodObject<{
165
+ id: z.ZodUUID;
166
+ }, z.core.$strip>;
167
+ query?: z.ZodObject<{
168
+ notify: z.ZodEnum<{
169
+ email: "email";
170
+ push: "push";
171
+ none: "none";
172
+ }>;
173
+ }, z.core.$strip>;
174
+ body?: z.ZodObject<{
175
+ email: z.ZodEmail;
176
+ profile: z.ZodObject<{
177
+ name: z.ZodString;
178
+ age: z.ZodInt;
179
+ }, z.core.$strip>;
180
+ }, z.core.$strip>;
181
+ };
182
+ };
183
+ }
184
+ //#endregion
185
+ //#region src/modules/stream/StreamController.d.ts
186
+ declare class StreamController {
187
+ static streamTokens: (() => AsyncGenerator<{
188
+ message: string;
189
+ }, void, unknown>) & {
190
+ __types: {
191
+ body: unknown;
192
+ query: unknown;
193
+ params: unknown;
194
+ output: unknown;
195
+ iteration: {
196
+ message: string;
197
+ };
198
+ isForm: false;
199
+ };
200
+ isRPC?: boolean;
201
+ } & {
202
+ schema: Omit<vovk_mjs_types0.VovkHandlerSchema, "httpMethod" | "path"> & Partial<vovk_mjs_types0.VovkHandlerSchema>;
203
+ wrapper?: (req: vovk5.VovkRequest<any, any, any>, params: undefined) => AsyncGenerator<{
204
+ message: string;
205
+ }, void, unknown>;
206
+ } & {
207
+ fn: {
208
+ <TTransformed>(input: Omit<{
209
+ disableClientValidation?: boolean;
210
+ transform?: undefined;
211
+ } & {
212
+ body?: unknown;
213
+ } & {
214
+ query?: unknown;
215
+ } & {
216
+ params?: unknown;
217
+ } & {
218
+ meta?: {
219
+ [key: string]: any;
220
+ __disableClientValidation?: boolean;
221
+ };
222
+ }, "transform"> & {
223
+ transform: (result: AsyncGenerator<{
224
+ message: string;
225
+ }, void, unknown>, fakeReq: Pick<vovk5.VovkRequest<any, any, any>, "vovk">) => TTransformed;
226
+ }): Promise<TTransformed>;
227
+ <TReturnType = AsyncGenerator<{
228
+ message: string;
229
+ }, void, unknown>>(input?: {
230
+ disableClientValidation?: boolean;
231
+ transform?: undefined;
232
+ } & {
233
+ body?: unknown;
234
+ } & {
235
+ query?: unknown;
236
+ } & {
237
+ params?: unknown;
238
+ } & {
239
+ meta?: {
240
+ [key: string]: any;
241
+ __disableClientValidation?: boolean;
242
+ };
243
+ }): TReturnType;
244
+ <TReturnType = AsyncGenerator<{
245
+ message: string;
246
+ }, void, unknown>>(input: {
247
+ disableClientValidation?: boolean;
248
+ transform?: undefined;
249
+ } & {
250
+ body?: unknown;
251
+ } & {
252
+ query?: unknown;
253
+ } & {
254
+ params?: unknown;
255
+ } & {
256
+ meta?: {
257
+ [key: string]: any;
258
+ __disableClientValidation?: boolean;
259
+ };
260
+ }): TReturnType;
261
+ };
262
+ models: {
263
+ iteration?: z.ZodObject<{
264
+ message: z.ZodString;
265
+ }, z.core.$strip>;
266
+ output?: _standard_schema_spec0.StandardSchemaV1<unknown, unknown>;
267
+ params?: _standard_schema_spec0.StandardSchemaV1<unknown, unknown>;
268
+ query?: _standard_schema_spec0.StandardSchemaV1<unknown, unknown>;
269
+ body?: _standard_schema_spec0.StandardSchemaV1<unknown, unknown>;
270
+ };
271
+ };
272
+ }
273
+ //#endregion
274
+ //#region src/modules/static/openapi/OpenApiController.d.ts
275
+ declare class OpenApiController {
276
+ static getSpec: () => openapi3_ts_oas310.OpenAPIObject;
277
+ }
278
+ //#endregion
8
279
  //#region tmp_prebundle/schema.d.ts
9
280
  declare const schema: {
10
281
  $schema: string;
@@ -53,11 +324,9 @@ declare const schema: {
53
324
  };
54
325
  };
55
326
  required: string[];
56
- additionalProperties: boolean;
57
327
  };
58
328
  };
59
329
  required: string[];
60
- additionalProperties: boolean;
61
330
  };
62
331
  query: {
63
332
  $schema: string;
@@ -71,7 +340,6 @@ declare const schema: {
71
340
  };
72
341
  };
73
342
  required: string[];
74
- additionalProperties: boolean;
75
343
  };
76
344
  params: {
77
345
  $schema: string;
@@ -87,7 +355,6 @@ declare const schema: {
87
355
  };
88
356
  };
89
357
  required: string[];
90
- additionalProperties: boolean;
91
358
  };
92
359
  output: {
93
360
  $schema: string;
@@ -111,7 +378,6 @@ declare const schema: {
111
378
  };
112
379
  };
113
380
  required: string[];
114
- additionalProperties: boolean;
115
381
  };
116
382
  };
117
383
  operationObject: {
@@ -141,7 +407,6 @@ declare const schema: {
141
407
  };
142
408
  };
143
409
  required: string[];
144
- additionalProperties: boolean;
145
410
  };
146
411
  };
147
412
  operationObject: {
@@ -183,238 +448,39 @@ declare const schema: {
183
448
  $schema: string;
184
449
  config: {
185
450
  libs: {};
451
+ rootEntry: string;
186
452
  $schema: string;
187
453
  };
188
454
  };
189
455
  };
190
456
  //#endregion
191
457
  //#region tmp_prebundle/index.d.ts
192
- declare const UserRPC: {
193
- updateUser: vovk_mjs_client_types0.ClientMethod<((req: vovk0.VovkRequest<{
194
- email: string;
195
- profile: {
196
- name: string;
197
- age: number;
198
- };
199
- }, {
200
- notify: "email" | "push" | "none";
201
- }, {
202
- id: string;
203
- }>, {
204
- id
205
- }: {
206
- id: string;
207
- }) => Promise<{
208
- id: string;
209
- notify: "email" | "push" | "none";
210
- success: true;
211
- }>) & {
212
- __types: {
213
- body: {
214
- email: string;
215
- profile: {
216
- name: string;
217
- age: number;
218
- };
219
- };
220
- query: {
221
- notify: "email" | "push" | "none";
222
- };
223
- params: {
224
- id: string;
225
- };
226
- output: {
227
- success: boolean;
228
- id: string;
229
- notify: "email" | "push" | "none";
230
- };
231
- iteration: unknown;
232
- isForm: false;
233
- };
234
- isRPC?: boolean;
235
- } & {
236
- schema: Omit<vovk0.VovkHandlerSchema, "httpMethod" | "path"> & Partial<vovk0.VovkHandlerSchema>;
237
- wrapper?: (req: vovk0.VovkRequest<any, any, any>, params: {
238
- id: string;
239
- }) => Promise<{
240
- id: string;
241
- notify: "email" | "push" | "none";
242
- success: true;
243
- }>;
244
- } & {
245
- fn: {
246
- <TReturnType = Promise<{
247
- id: string;
248
- notify: "email" | "push" | "none";
249
- success: true;
250
- }>>(input?: {
251
- disableClientValidation?: boolean;
252
- } & {
253
- body?: {
254
- email: string;
255
- profile: {
256
- name: string;
257
- age: number;
258
- };
259
- };
260
- } & {
261
- query?: {
262
- notify: "email" | "push" | "none";
263
- };
264
- } & {
265
- params?: {
266
- id: string;
267
- };
268
- } & {
269
- meta?: {
270
- [key: string]: any;
271
- __disableClientValidation?: boolean;
272
- };
273
- }): TReturnType;
274
- <TReturnType = Promise<{
275
- id: string;
276
- notify: "email" | "push" | "none";
277
- success: true;
278
- }>>(input: {
279
- disableClientValidation?: boolean;
280
- } & {
281
- body?: {
282
- email: string;
283
- profile: {
284
- name: string;
285
- age: number;
286
- };
287
- };
288
- } & {
289
- query?: {
290
- notify: "email" | "push" | "none";
291
- };
292
- } & {
293
- params?: {
294
- id: string;
295
- };
296
- } & {
297
- meta?: {
298
- [key: string]: any;
299
- __disableClientValidation?: boolean;
300
- };
301
- }): TReturnType;
302
- };
303
- models: {
304
- iteration?: _standard_schema_spec0.StandardSchemaV1<unknown, unknown>;
305
- output?: zod0.ZodObject<{
306
- success: zod0.ZodBoolean;
307
- id: zod0.ZodUUID;
308
- notify: zod0.ZodEnum<{
309
- email: "email";
310
- push: "push";
311
- none: "none";
312
- }>;
313
- }, zod_v4_core0.$strip>;
314
- params?: zod0.ZodObject<{
315
- id: zod0.ZodUUID;
316
- }, zod_v4_core0.$strip>;
317
- query?: zod0.ZodObject<{
318
- notify: zod0.ZodEnum<{
319
- email: "email";
320
- push: "push";
321
- none: "none";
322
- }>;
323
- }, zod_v4_core0.$strip>;
324
- body?: zod0.ZodObject<{
325
- email: zod0.ZodEmail;
326
- profile: zod0.ZodObject<{
327
- name: zod0.ZodString;
328
- age: zod0.ZodInt;
329
- }, zod_v4_core0.$strip>;
330
- }, zod_v4_core0.$strip>;
331
- };
332
- }, {
333
- apiRoot?: string;
334
- disableClientValidation?: boolean;
335
- validateOnClient?: vovk0.VovkValidateOnClient<unknown> | Promise<{
336
- validateOnClient: vovk0.VovkValidateOnClient<unknown>;
337
- }> | undefined;
338
- interpretAs?: string;
339
- init?: RequestInit;
340
- }, unknown>;
341
- };
342
- declare const StreamRPC: {
343
- streamTokens: vovk_mjs_client_types0.ClientMethod<(() => AsyncGenerator<{
344
- message: string;
345
- }, void, unknown>) & {
346
- __types: {
347
- body: unknown;
348
- query: unknown;
349
- params: unknown;
350
- output: unknown;
351
- iteration: {
352
- message: string;
353
- };
354
- isForm: false;
355
- };
356
- isRPC?: boolean;
357
- } & {
358
- schema: Omit<vovk0.VovkHandlerSchema, "httpMethod" | "path"> & Partial<vovk0.VovkHandlerSchema>;
359
- wrapper?: (req: vovk0.VovkRequest<any, any, any>, params: undefined) => AsyncGenerator<{
360
- message: string;
361
- }, void, unknown>;
362
- } & {
363
- fn: {
364
- <TReturnType = AsyncGenerator<{
365
- message: string;
366
- }, void, unknown>>(input?: {
367
- disableClientValidation?: boolean;
368
- } & {
369
- body?: unknown;
370
- } & {
371
- query?: unknown;
372
- } & {
373
- params?: unknown;
374
- } & {
375
- meta?: {
376
- [key: string]: any;
377
- __disableClientValidation?: boolean;
378
- };
379
- }): TReturnType;
380
- <TReturnType = AsyncGenerator<{
381
- message: string;
382
- }, void, unknown>>(input: {
383
- disableClientValidation?: boolean;
384
- } & {
385
- body?: unknown;
386
- } & {
387
- query?: unknown;
388
- } & {
389
- params?: unknown;
390
- } & {
391
- meta?: {
392
- [key: string]: any;
393
- __disableClientValidation?: boolean;
394
- };
395
- }): TReturnType;
396
- };
397
- models: {
398
- iteration?: zod0.ZodObject<{
399
- message: zod0.ZodString;
400
- }, zod_v4_core0.$strip>;
401
- output?: _standard_schema_spec0.StandardSchemaV1<unknown, unknown>;
402
- params?: _standard_schema_spec0.StandardSchemaV1<unknown, unknown>;
403
- query?: _standard_schema_spec0.StandardSchemaV1<unknown, unknown>;
404
- body?: _standard_schema_spec0.StandardSchemaV1<unknown, unknown>;
405
- };
406
- }, {
407
- apiRoot?: string;
408
- disableClientValidation?: boolean;
409
- validateOnClient?: vovk0.VovkValidateOnClient<unknown> | Promise<{
410
- validateOnClient: vovk0.VovkValidateOnClient<unknown>;
411
- }> | undefined;
412
- interpretAs?: string;
413
- init?: RequestInit;
414
- }, unknown>;
415
- };
416
- declare const OpenApiRPC: {
417
- getSpec: () => openapi3_ts_oas310.OpenAPIObject;
418
- };
458
+ declare const UserRPC: vovk_mjs_internal0.VovkRPCModule<typeof UserController, {
459
+ apiRoot?: string;
460
+ disableClientValidation?: boolean;
461
+ validateOnClient?: vovk5.VovkValidateOnClient<unknown> | Promise<{
462
+ validateOnClient: vovk5.VovkValidateOnClient<unknown>;
463
+ }> | undefined;
464
+ interpretAs?: string;
465
+ init?: RequestInit;
466
+ }>;
467
+ declare const StreamRPC: vovk_mjs_internal0.VovkRPCModule<typeof StreamController, {
468
+ apiRoot?: string;
469
+ disableClientValidation?: boolean;
470
+ validateOnClient?: vovk5.VovkValidateOnClient<unknown> | Promise<{
471
+ validateOnClient: vovk5.VovkValidateOnClient<unknown>;
472
+ }> | undefined;
473
+ interpretAs?: string;
474
+ init?: RequestInit;
475
+ }>;
476
+ declare const OpenApiRPC: vovk_mjs_internal0.VovkRPCModule<typeof OpenApiController, {
477
+ apiRoot?: string;
478
+ disableClientValidation?: boolean;
479
+ validateOnClient?: vovk5.VovkValidateOnClient<unknown> | Promise<{
480
+ validateOnClient: vovk5.VovkValidateOnClient<unknown>;
481
+ }> | undefined;
482
+ interpretAs?: string;
483
+ init?: RequestInit;
484
+ }>;
419
485
  //#endregion
420
486
  export { OpenApiRPC, StreamRPC, UserRPC, schema };
package/index.d.mts CHANGED
@@ -1,10 +1,281 @@
1
- import * as vovk0 from "vovk";
2
- import * as _standard_schema_spec0 from "@standard-schema/spec";
3
- import * as zod0 from "zod";
4
- import * as zod_v4_core0 from "zod/v4/core";
5
- import * as vovk_mjs_client_types0 from "vovk/mjs/client/types";
1
+ import * as vovk7 from "vovk";
2
+ import * as vovk_mjs_types1 from "vovk/mjs/types";
3
+ import * as _standard_schema_spec3 from "@standard-schema/spec";
4
+ import { z } from "zod";
5
+ import * as vovk_mjs_internal0 from "vovk/mjs/internal";
6
6
  import * as openapi3_ts_oas310 from "openapi3-ts/oas31";
7
7
 
8
+ //#region src/modules/user/UserController.d.ts
9
+ declare class UserController {
10
+ static updateUser: ((req: vovk7.VovkRequest<{
11
+ email: string;
12
+ profile: {
13
+ name: string;
14
+ age: number;
15
+ };
16
+ }, {
17
+ notify: "email" | "push" | "none";
18
+ }, {
19
+ id: string;
20
+ }>, {
21
+ id
22
+ }: {
23
+ id: string;
24
+ }) => Promise<{
25
+ id: string;
26
+ notify: "email" | "push" | "none";
27
+ success: true;
28
+ }>) & {
29
+ __types: {
30
+ body: {
31
+ email: string;
32
+ profile: {
33
+ name: string;
34
+ age: number;
35
+ };
36
+ };
37
+ query: {
38
+ notify: "email" | "push" | "none";
39
+ };
40
+ params: {
41
+ id: string;
42
+ };
43
+ output: {
44
+ success: boolean;
45
+ id: string;
46
+ notify: "email" | "push" | "none";
47
+ };
48
+ iteration: unknown;
49
+ isForm: false;
50
+ };
51
+ isRPC?: boolean;
52
+ } & {
53
+ schema: Omit<vovk_mjs_types1.VovkHandlerSchema, "httpMethod" | "path"> & Partial<vovk_mjs_types1.VovkHandlerSchema>;
54
+ wrapper?: (req: vovk7.VovkRequest<any, any, any>, params: {
55
+ id: string;
56
+ }) => Promise<{
57
+ id: string;
58
+ notify: "email" | "push" | "none";
59
+ success: true;
60
+ }>;
61
+ } & {
62
+ fn: {
63
+ <TTransformed>(input: Omit<{
64
+ disableClientValidation?: boolean;
65
+ transform?: undefined;
66
+ } & {
67
+ body?: {
68
+ email: string;
69
+ profile: {
70
+ name: string;
71
+ age: number;
72
+ };
73
+ };
74
+ } & {
75
+ query?: {
76
+ notify: "email" | "push" | "none";
77
+ };
78
+ } & {
79
+ params?: {
80
+ id: string;
81
+ };
82
+ } & {
83
+ meta?: {
84
+ [key: string]: any;
85
+ __disableClientValidation?: boolean;
86
+ };
87
+ }, "transform"> & {
88
+ transform: (result: {
89
+ id: string;
90
+ notify: "email" | "push" | "none";
91
+ success: true;
92
+ }, fakeReq: Pick<vovk7.VovkRequest<any, any, any>, "vovk">) => TTransformed;
93
+ }): Promise<TTransformed>;
94
+ <TReturnType = Promise<{
95
+ id: string;
96
+ notify: "email" | "push" | "none";
97
+ success: true;
98
+ }>>(input?: {
99
+ disableClientValidation?: boolean;
100
+ transform?: undefined;
101
+ } & {
102
+ body?: {
103
+ email: string;
104
+ profile: {
105
+ name: string;
106
+ age: number;
107
+ };
108
+ };
109
+ } & {
110
+ query?: {
111
+ notify: "email" | "push" | "none";
112
+ };
113
+ } & {
114
+ params?: {
115
+ id: string;
116
+ };
117
+ } & {
118
+ meta?: {
119
+ [key: string]: any;
120
+ __disableClientValidation?: boolean;
121
+ };
122
+ }): TReturnType;
123
+ <TReturnType = Promise<{
124
+ id: string;
125
+ notify: "email" | "push" | "none";
126
+ success: true;
127
+ }>>(input: {
128
+ disableClientValidation?: boolean;
129
+ transform?: undefined;
130
+ } & {
131
+ body?: {
132
+ email: string;
133
+ profile: {
134
+ name: string;
135
+ age: number;
136
+ };
137
+ };
138
+ } & {
139
+ query?: {
140
+ notify: "email" | "push" | "none";
141
+ };
142
+ } & {
143
+ params?: {
144
+ id: string;
145
+ };
146
+ } & {
147
+ meta?: {
148
+ [key: string]: any;
149
+ __disableClientValidation?: boolean;
150
+ };
151
+ }): TReturnType;
152
+ };
153
+ models: {
154
+ iteration?: _standard_schema_spec3.StandardSchemaV1<unknown, unknown>;
155
+ output?: z.ZodObject<{
156
+ success: z.ZodBoolean;
157
+ id: z.ZodUUID;
158
+ notify: z.ZodEnum<{
159
+ email: "email";
160
+ push: "push";
161
+ none: "none";
162
+ }>;
163
+ }, z.core.$strip>;
164
+ params?: z.ZodObject<{
165
+ id: z.ZodUUID;
166
+ }, z.core.$strip>;
167
+ query?: z.ZodObject<{
168
+ notify: z.ZodEnum<{
169
+ email: "email";
170
+ push: "push";
171
+ none: "none";
172
+ }>;
173
+ }, z.core.$strip>;
174
+ body?: z.ZodObject<{
175
+ email: z.ZodEmail;
176
+ profile: z.ZodObject<{
177
+ name: z.ZodString;
178
+ age: z.ZodInt;
179
+ }, z.core.$strip>;
180
+ }, z.core.$strip>;
181
+ };
182
+ };
183
+ }
184
+ //#endregion
185
+ //#region src/modules/stream/StreamController.d.ts
186
+ declare class StreamController {
187
+ static streamTokens: (() => AsyncGenerator<{
188
+ message: string;
189
+ }, void, unknown>) & {
190
+ __types: {
191
+ body: unknown;
192
+ query: unknown;
193
+ params: unknown;
194
+ output: unknown;
195
+ iteration: {
196
+ message: string;
197
+ };
198
+ isForm: false;
199
+ };
200
+ isRPC?: boolean;
201
+ } & {
202
+ schema: Omit<vovk_mjs_types1.VovkHandlerSchema, "httpMethod" | "path"> & Partial<vovk_mjs_types1.VovkHandlerSchema>;
203
+ wrapper?: (req: vovk7.VovkRequest<any, any, any>, params: undefined) => AsyncGenerator<{
204
+ message: string;
205
+ }, void, unknown>;
206
+ } & {
207
+ fn: {
208
+ <TTransformed>(input: Omit<{
209
+ disableClientValidation?: boolean;
210
+ transform?: undefined;
211
+ } & {
212
+ body?: unknown;
213
+ } & {
214
+ query?: unknown;
215
+ } & {
216
+ params?: unknown;
217
+ } & {
218
+ meta?: {
219
+ [key: string]: any;
220
+ __disableClientValidation?: boolean;
221
+ };
222
+ }, "transform"> & {
223
+ transform: (result: AsyncGenerator<{
224
+ message: string;
225
+ }, void, unknown>, fakeReq: Pick<vovk7.VovkRequest<any, any, any>, "vovk">) => TTransformed;
226
+ }): Promise<TTransformed>;
227
+ <TReturnType = AsyncGenerator<{
228
+ message: string;
229
+ }, void, unknown>>(input?: {
230
+ disableClientValidation?: boolean;
231
+ transform?: undefined;
232
+ } & {
233
+ body?: unknown;
234
+ } & {
235
+ query?: unknown;
236
+ } & {
237
+ params?: unknown;
238
+ } & {
239
+ meta?: {
240
+ [key: string]: any;
241
+ __disableClientValidation?: boolean;
242
+ };
243
+ }): TReturnType;
244
+ <TReturnType = AsyncGenerator<{
245
+ message: string;
246
+ }, void, unknown>>(input: {
247
+ disableClientValidation?: boolean;
248
+ transform?: undefined;
249
+ } & {
250
+ body?: unknown;
251
+ } & {
252
+ query?: unknown;
253
+ } & {
254
+ params?: unknown;
255
+ } & {
256
+ meta?: {
257
+ [key: string]: any;
258
+ __disableClientValidation?: boolean;
259
+ };
260
+ }): TReturnType;
261
+ };
262
+ models: {
263
+ iteration?: z.ZodObject<{
264
+ message: z.ZodString;
265
+ }, z.core.$strip>;
266
+ output?: _standard_schema_spec3.StandardSchemaV1<unknown, unknown>;
267
+ params?: _standard_schema_spec3.StandardSchemaV1<unknown, unknown>;
268
+ query?: _standard_schema_spec3.StandardSchemaV1<unknown, unknown>;
269
+ body?: _standard_schema_spec3.StandardSchemaV1<unknown, unknown>;
270
+ };
271
+ };
272
+ }
273
+ //#endregion
274
+ //#region src/modules/static/openapi/OpenApiController.d.ts
275
+ declare class OpenApiController {
276
+ static getSpec: () => openapi3_ts_oas310.OpenAPIObject;
277
+ }
278
+ //#endregion
8
279
  //#region tmp_prebundle/schema.d.ts
9
280
  declare const schema: {
10
281
  $schema: string;
@@ -53,11 +324,9 @@ declare const schema: {
53
324
  };
54
325
  };
55
326
  required: string[];
56
- additionalProperties: boolean;
57
327
  };
58
328
  };
59
329
  required: string[];
60
- additionalProperties: boolean;
61
330
  };
62
331
  query: {
63
332
  $schema: string;
@@ -71,7 +340,6 @@ declare const schema: {
71
340
  };
72
341
  };
73
342
  required: string[];
74
- additionalProperties: boolean;
75
343
  };
76
344
  params: {
77
345
  $schema: string;
@@ -87,7 +355,6 @@ declare const schema: {
87
355
  };
88
356
  };
89
357
  required: string[];
90
- additionalProperties: boolean;
91
358
  };
92
359
  output: {
93
360
  $schema: string;
@@ -111,7 +378,6 @@ declare const schema: {
111
378
  };
112
379
  };
113
380
  required: string[];
114
- additionalProperties: boolean;
115
381
  };
116
382
  };
117
383
  operationObject: {
@@ -141,7 +407,6 @@ declare const schema: {
141
407
  };
142
408
  };
143
409
  required: string[];
144
- additionalProperties: boolean;
145
410
  };
146
411
  };
147
412
  operationObject: {
@@ -183,238 +448,39 @@ declare const schema: {
183
448
  $schema: string;
184
449
  config: {
185
450
  libs: {};
451
+ rootEntry: string;
186
452
  $schema: string;
187
453
  };
188
454
  };
189
455
  };
190
456
  //#endregion
191
457
  //#region tmp_prebundle/index.d.ts
192
- declare const UserRPC: {
193
- updateUser: vovk_mjs_client_types0.ClientMethod<((req: vovk0.VovkRequest<{
194
- email: string;
195
- profile: {
196
- name: string;
197
- age: number;
198
- };
199
- }, {
200
- notify: "email" | "push" | "none";
201
- }, {
202
- id: string;
203
- }>, {
204
- id
205
- }: {
206
- id: string;
207
- }) => Promise<{
208
- id: string;
209
- notify: "email" | "push" | "none";
210
- success: true;
211
- }>) & {
212
- __types: {
213
- body: {
214
- email: string;
215
- profile: {
216
- name: string;
217
- age: number;
218
- };
219
- };
220
- query: {
221
- notify: "email" | "push" | "none";
222
- };
223
- params: {
224
- id: string;
225
- };
226
- output: {
227
- success: boolean;
228
- id: string;
229
- notify: "email" | "push" | "none";
230
- };
231
- iteration: unknown;
232
- isForm: false;
233
- };
234
- isRPC?: boolean;
235
- } & {
236
- schema: Omit<vovk0.VovkHandlerSchema, "httpMethod" | "path"> & Partial<vovk0.VovkHandlerSchema>;
237
- wrapper?: (req: vovk0.VovkRequest<any, any, any>, params: {
238
- id: string;
239
- }) => Promise<{
240
- id: string;
241
- notify: "email" | "push" | "none";
242
- success: true;
243
- }>;
244
- } & {
245
- fn: {
246
- <TReturnType = Promise<{
247
- id: string;
248
- notify: "email" | "push" | "none";
249
- success: true;
250
- }>>(input?: {
251
- disableClientValidation?: boolean;
252
- } & {
253
- body?: {
254
- email: string;
255
- profile: {
256
- name: string;
257
- age: number;
258
- };
259
- };
260
- } & {
261
- query?: {
262
- notify: "email" | "push" | "none";
263
- };
264
- } & {
265
- params?: {
266
- id: string;
267
- };
268
- } & {
269
- meta?: {
270
- [key: string]: any;
271
- __disableClientValidation?: boolean;
272
- };
273
- }): TReturnType;
274
- <TReturnType = Promise<{
275
- id: string;
276
- notify: "email" | "push" | "none";
277
- success: true;
278
- }>>(input: {
279
- disableClientValidation?: boolean;
280
- } & {
281
- body?: {
282
- email: string;
283
- profile: {
284
- name: string;
285
- age: number;
286
- };
287
- };
288
- } & {
289
- query?: {
290
- notify: "email" | "push" | "none";
291
- };
292
- } & {
293
- params?: {
294
- id: string;
295
- };
296
- } & {
297
- meta?: {
298
- [key: string]: any;
299
- __disableClientValidation?: boolean;
300
- };
301
- }): TReturnType;
302
- };
303
- models: {
304
- iteration?: _standard_schema_spec0.StandardSchemaV1<unknown, unknown>;
305
- output?: zod0.ZodObject<{
306
- success: zod0.ZodBoolean;
307
- id: zod0.ZodUUID;
308
- notify: zod0.ZodEnum<{
309
- email: "email";
310
- push: "push";
311
- none: "none";
312
- }>;
313
- }, zod_v4_core0.$strip>;
314
- params?: zod0.ZodObject<{
315
- id: zod0.ZodUUID;
316
- }, zod_v4_core0.$strip>;
317
- query?: zod0.ZodObject<{
318
- notify: zod0.ZodEnum<{
319
- email: "email";
320
- push: "push";
321
- none: "none";
322
- }>;
323
- }, zod_v4_core0.$strip>;
324
- body?: zod0.ZodObject<{
325
- email: zod0.ZodEmail;
326
- profile: zod0.ZodObject<{
327
- name: zod0.ZodString;
328
- age: zod0.ZodInt;
329
- }, zod_v4_core0.$strip>;
330
- }, zod_v4_core0.$strip>;
331
- };
332
- }, {
333
- apiRoot?: string;
334
- disableClientValidation?: boolean;
335
- validateOnClient?: vovk0.VovkValidateOnClient<unknown> | Promise<{
336
- validateOnClient: vovk0.VovkValidateOnClient<unknown>;
337
- }> | undefined;
338
- interpretAs?: string;
339
- init?: RequestInit;
340
- }, unknown>;
341
- };
342
- declare const StreamRPC: {
343
- streamTokens: vovk_mjs_client_types0.ClientMethod<(() => AsyncGenerator<{
344
- message: string;
345
- }, void, unknown>) & {
346
- __types: {
347
- body: unknown;
348
- query: unknown;
349
- params: unknown;
350
- output: unknown;
351
- iteration: {
352
- message: string;
353
- };
354
- isForm: false;
355
- };
356
- isRPC?: boolean;
357
- } & {
358
- schema: Omit<vovk0.VovkHandlerSchema, "httpMethod" | "path"> & Partial<vovk0.VovkHandlerSchema>;
359
- wrapper?: (req: vovk0.VovkRequest<any, any, any>, params: undefined) => AsyncGenerator<{
360
- message: string;
361
- }, void, unknown>;
362
- } & {
363
- fn: {
364
- <TReturnType = AsyncGenerator<{
365
- message: string;
366
- }, void, unknown>>(input?: {
367
- disableClientValidation?: boolean;
368
- } & {
369
- body?: unknown;
370
- } & {
371
- query?: unknown;
372
- } & {
373
- params?: unknown;
374
- } & {
375
- meta?: {
376
- [key: string]: any;
377
- __disableClientValidation?: boolean;
378
- };
379
- }): TReturnType;
380
- <TReturnType = AsyncGenerator<{
381
- message: string;
382
- }, void, unknown>>(input: {
383
- disableClientValidation?: boolean;
384
- } & {
385
- body?: unknown;
386
- } & {
387
- query?: unknown;
388
- } & {
389
- params?: unknown;
390
- } & {
391
- meta?: {
392
- [key: string]: any;
393
- __disableClientValidation?: boolean;
394
- };
395
- }): TReturnType;
396
- };
397
- models: {
398
- iteration?: zod0.ZodObject<{
399
- message: zod0.ZodString;
400
- }, zod_v4_core0.$strip>;
401
- output?: _standard_schema_spec0.StandardSchemaV1<unknown, unknown>;
402
- params?: _standard_schema_spec0.StandardSchemaV1<unknown, unknown>;
403
- query?: _standard_schema_spec0.StandardSchemaV1<unknown, unknown>;
404
- body?: _standard_schema_spec0.StandardSchemaV1<unknown, unknown>;
405
- };
406
- }, {
407
- apiRoot?: string;
408
- disableClientValidation?: boolean;
409
- validateOnClient?: vovk0.VovkValidateOnClient<unknown> | Promise<{
410
- validateOnClient: vovk0.VovkValidateOnClient<unknown>;
411
- }> | undefined;
412
- interpretAs?: string;
413
- init?: RequestInit;
414
- }, unknown>;
415
- };
416
- declare const OpenApiRPC: {
417
- getSpec: () => openapi3_ts_oas310.OpenAPIObject;
418
- };
458
+ declare const UserRPC: vovk_mjs_internal0.VovkRPCModule<typeof UserController, {
459
+ apiRoot?: string;
460
+ disableClientValidation?: boolean;
461
+ validateOnClient?: vovk7.VovkValidateOnClient<unknown> | Promise<{
462
+ validateOnClient: vovk7.VovkValidateOnClient<unknown>;
463
+ }> | undefined;
464
+ interpretAs?: string;
465
+ init?: RequestInit;
466
+ }>;
467
+ declare const StreamRPC: vovk_mjs_internal0.VovkRPCModule<typeof StreamController, {
468
+ apiRoot?: string;
469
+ disableClientValidation?: boolean;
470
+ validateOnClient?: vovk7.VovkValidateOnClient<unknown> | Promise<{
471
+ validateOnClient: vovk7.VovkValidateOnClient<unknown>;
472
+ }> | undefined;
473
+ interpretAs?: string;
474
+ init?: RequestInit;
475
+ }>;
476
+ declare const OpenApiRPC: vovk_mjs_internal0.VovkRPCModule<typeof OpenApiController, {
477
+ apiRoot?: string;
478
+ disableClientValidation?: boolean;
479
+ validateOnClient?: vovk7.VovkValidateOnClient<unknown> | Promise<{
480
+ validateOnClient: vovk7.VovkValidateOnClient<unknown>;
481
+ }> | undefined;
482
+ interpretAs?: string;
483
+ init?: RequestInit;
484
+ }>;
419
485
  //#endregion
420
486
  export { OpenApiRPC, StreamRPC, UserRPC, schema };
package/index.mjs CHANGED
@@ -43,12 +43,10 @@ var root_default = {
43
43
  "maximum": 120
44
44
  }
45
45
  },
46
- "required": ["name", "age"],
47
- "additionalProperties": false
46
+ "required": ["name", "age"]
48
47
  }
49
48
  },
50
- "required": ["email", "profile"],
51
- "additionalProperties": false
49
+ "required": ["email", "profile"]
52
50
  },
53
51
  "query": {
54
52
  "$schema": "https://json-schema.org/draft/2020-12/schema",
@@ -63,8 +61,7 @@ var root_default = {
63
61
  "none"
64
62
  ]
65
63
  } },
66
- "required": ["notify"],
67
- "additionalProperties": false
64
+ "required": ["notify"]
68
65
  },
69
66
  "params": {
70
67
  "$schema": "https://json-schema.org/draft/2020-12/schema",
@@ -77,8 +74,7 @@ var root_default = {
77
74
  "format": "uuid",
78
75
  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
79
76
  } },
80
- "required": ["id"],
81
- "additionalProperties": false
77
+ "required": ["id"]
82
78
  },
83
79
  "output": {
84
80
  "$schema": "https://json-schema.org/draft/2020-12/schema",
@@ -109,8 +105,7 @@ var root_default = {
109
105
  "success",
110
106
  "id",
111
107
  "notify"
112
- ],
113
- "additionalProperties": false
108
+ ]
114
109
  }
115
110
  },
116
111
  "operationObject": {
@@ -134,8 +129,7 @@ var root_default = {
134
129
  "description": "Message from the token",
135
130
  "type": "string"
136
131
  } },
137
- "required": ["message"],
138
- "additionalProperties": false
132
+ "required": ["message"]
139
133
  } },
140
134
  "operationObject": {
141
135
  "summary": "Stream tokens",
@@ -176,6 +170,7 @@ var _meta_default = {
176
170
  $schema: "https://vovk.dev/api/schema/v3/meta.json",
177
171
  config: {
178
172
  "libs": {},
173
+ "rootEntry": "api",
179
174
  "$schema": "https://vovk.dev/api/schema/v3/config.json"
180
175
  }
181
176
  };
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  }
11
11
  },
12
12
  "name": "vovk-hello-world",
13
- "version": "0.0.68",
13
+ "version": "0.0.69",
14
14
  "description": "A showcase app built with Next.js + Vovk.ts + Zod. For more details, visit https://vovk.dev/hello-world",
15
15
  "license": "MIT",
16
16
  "repository": {