vovk-hello-world 0.0.46 → 0.0.49

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/index.d.cts CHANGED
@@ -1,10 +1,8 @@
1
- import * as vovk0 from "vovk";
1
+ import * as vovk_mjs0 from "vovk/mjs";
2
2
  import * as _standard_schema_spec0 from "@standard-schema/spec";
3
3
  import * as zod0 from "zod";
4
4
  import * as zod_v4_core0 from "zod/v4/core";
5
5
  import * as vovk_mjs_client_types0 from "vovk/mjs/client/types";
6
- import * as openapi3_ts_oas310 from "openapi3-ts/oas31";
7
- import openapi from "./openapi.json";
8
6
 
9
7
  //#region tmp_prebundle/schema.d.ts
10
8
  declare const schema: {
@@ -172,8 +170,7 @@ declare const schema: {
172
170
  $schema: string;
173
171
  config: {
174
172
  libs: {};
175
- generatorConfig: {
176
- origin: string;
173
+ outputConfig: {
177
174
  imports: {
178
175
  validateOnClient: string;
179
176
  };
@@ -188,6 +185,7 @@ declare const schema: {
188
185
  version: string;
189
186
  };
190
187
  };
188
+ origin: string;
191
189
  segments: {};
192
190
  };
193
191
  $schema: string;
@@ -195,9 +193,206 @@ declare const schema: {
195
193
  };
196
194
  };
197
195
  //#endregion
196
+ //#region tmp_prebundle/openapi.d.ts
197
+ declare let openapi: string;
198
+ declare let info: {};
199
+ declare namespace components {
200
+ namespace schemas {
201
+ namespace HttpStatus {
202
+ export let type: string;
203
+ export let description: string;
204
+ let _enum: number[];
205
+ export { _enum as enum };
206
+ }
207
+ namespace VovkErrorResponse {
208
+ let type_1: string;
209
+ export { type_1 as type };
210
+ let description_1: string;
211
+ export { description_1 as description };
212
+ export namespace properties {
213
+ namespace cause {
214
+ let description_2: string;
215
+ export { description_2 as description };
216
+ }
217
+ namespace statusCode {
218
+ let $ref: string;
219
+ }
220
+ namespace message {
221
+ let type_2: string;
222
+ export { type_2 as type };
223
+ let description_3: string;
224
+ export { description_3 as description };
225
+ }
226
+ namespace isError {
227
+ let type_3: string;
228
+ export { type_3 as type };
229
+ let _const: boolean;
230
+ export { _const as const };
231
+ let description_4: string;
232
+ export { description_4 as description };
233
+ }
234
+ }
235
+ export let required: string[];
236
+ export let additionalProperties: boolean;
237
+ }
238
+ }
239
+ }
240
+ declare let paths: {
241
+ "/api/users/{id}": {
242
+ post: {
243
+ summary: string;
244
+ description: string;
245
+ "x-codeSamples": {
246
+ label: string;
247
+ lang: string;
248
+ source: string;
249
+ }[];
250
+ parameters: ({
251
+ name: string;
252
+ in: string;
253
+ required: boolean;
254
+ schema: {
255
+ description: string;
256
+ type: string;
257
+ enum: string[];
258
+ examples?: undefined;
259
+ format?: undefined;
260
+ pattern?: undefined;
261
+ };
262
+ } | {
263
+ name: string;
264
+ in: string;
265
+ required: boolean;
266
+ schema: {
267
+ description: string;
268
+ examples: string[];
269
+ type: string;
270
+ format: string;
271
+ pattern: string;
272
+ enum?: undefined;
273
+ };
274
+ })[];
275
+ responses: {
276
+ "200": {
277
+ description: string;
278
+ content: {
279
+ "application/json": {
280
+ schema: {
281
+ $schema: string;
282
+ description: string;
283
+ type: string;
284
+ properties: {
285
+ success: {
286
+ description: string;
287
+ type: string;
288
+ };
289
+ };
290
+ required: string[];
291
+ additionalProperties: boolean;
292
+ };
293
+ };
294
+ };
295
+ };
296
+ };
297
+ requestBody: {
298
+ description: string;
299
+ required: boolean;
300
+ content: {
301
+ "application/json": {
302
+ schema: {
303
+ $schema: string;
304
+ description: string;
305
+ type: string;
306
+ properties: {
307
+ email: {
308
+ description: string;
309
+ examples: string[];
310
+ type: string;
311
+ format: string;
312
+ pattern: string;
313
+ };
314
+ profile: {
315
+ description: string;
316
+ type: string;
317
+ properties: {
318
+ name: {
319
+ description: string;
320
+ examples: string[];
321
+ type: string;
322
+ };
323
+ age: {
324
+ description: string;
325
+ examples: number[];
326
+ type: string;
327
+ minimum: number;
328
+ maximum: number;
329
+ };
330
+ };
331
+ required: string[];
332
+ additionalProperties: boolean;
333
+ };
334
+ };
335
+ required: string[];
336
+ additionalProperties: boolean;
337
+ };
338
+ };
339
+ };
340
+ };
341
+ };
342
+ };
343
+ "/api/streams/tokens": {
344
+ get: {
345
+ summary: string;
346
+ description: string;
347
+ "x-codeSamples": {
348
+ label: string;
349
+ lang: string;
350
+ source: string;
351
+ }[];
352
+ responses: {
353
+ "200": {
354
+ description: string;
355
+ content: {
356
+ "application/jsonl": {
357
+ schema: {
358
+ $schema: string;
359
+ description: string;
360
+ type: string;
361
+ properties: {
362
+ message: {
363
+ description: string;
364
+ type: string;
365
+ };
366
+ };
367
+ required: string[];
368
+ additionalProperties: boolean;
369
+ examples: string[];
370
+ };
371
+ };
372
+ };
373
+ };
374
+ };
375
+ };
376
+ };
377
+ "/api/static/openapi.json": {
378
+ get: {
379
+ summary: string;
380
+ description: string;
381
+ "x-codeSamples": {
382
+ label: string;
383
+ lang: string;
384
+ source: string;
385
+ }[];
386
+ };
387
+ };
388
+ };
389
+ declare namespace __json_default_export {
390
+ export { openapi, info, components, paths };
391
+ }
392
+ //#endregion
198
393
  //#region tmp_prebundle/index.d.ts
199
394
  declare const UserRPC: {
200
- updateUser: vovk_mjs_client_types0.ClientMethod<((req: vovk0.VovkRequest<{
395
+ updateUser: vovk_mjs_client_types0.ClientMethod<((req: vovk_mjs0.VovkRequest<{
201
396
  email: string;
202
397
  profile: {
203
398
  name: string;
@@ -236,17 +431,17 @@ declare const UserRPC: {
236
431
  };
237
432
  isRPC?: boolean;
238
433
  } & {
239
- schema: Omit<vovk0.VovkHandlerSchema, "httpMethod" | "path"> & Partial<vovk0.VovkHandlerSchema>;
240
- wrapper?: ((req: vovk0.VovkRequest<any, any, any>, params: {
434
+ schema: Omit<vovk_mjs0.VovkHandlerSchema, "httpMethod" | "path"> & Partial<vovk_mjs0.VovkHandlerSchema>;
435
+ wrapper?: (req: vovk_mjs0.VovkRequest<any, any, any>, params: {
241
436
  id: string;
242
437
  }) => Promise<{
243
438
  success: true;
244
- }>) | undefined;
439
+ }>;
245
440
  } & {
246
441
  fn: {
247
- <RETURN_TYPE = Promise<{
442
+ <TReturnType = Promise<{
248
443
  success: true;
249
- }>>(input?: ({
444
+ }>>(input?: {
250
445
  disableClientValidation?: boolean;
251
446
  } & {
252
447
  body?: {
@@ -255,22 +450,22 @@ declare const UserRPC: {
255
450
  name: string;
256
451
  age: number;
257
452
  };
258
- } | undefined;
453
+ };
259
454
  } & {
260
455
  query?: {
261
456
  notify: "email" | "push" | "none";
262
- } | undefined;
457
+ };
263
458
  } & {
264
459
  params?: {
265
460
  id: string;
266
- } | undefined;
461
+ };
267
462
  } & {
268
463
  meta?: {
269
464
  [key: string]: any;
270
465
  __disableClientValidation?: boolean;
271
466
  };
272
- }) | undefined): RETURN_TYPE;
273
- <RETURN_TYPE = Promise<{
467
+ }): TReturnType;
468
+ <TReturnType = Promise<{
274
469
  success: true;
275
470
  }>>(input: {
276
471
  disableClientValidation?: boolean;
@@ -281,50 +476,50 @@ declare const UserRPC: {
281
476
  name: string;
282
477
  age: number;
283
478
  };
284
- } | undefined;
479
+ };
285
480
  } & {
286
481
  query?: {
287
482
  notify: "email" | "push" | "none";
288
- } | undefined;
483
+ };
289
484
  } & {
290
485
  params?: {
291
486
  id: string;
292
- } | undefined;
487
+ };
293
488
  } & {
294
489
  meta?: {
295
490
  [key: string]: any;
296
491
  __disableClientValidation?: boolean;
297
492
  };
298
- }): RETURN_TYPE;
493
+ }): TReturnType;
299
494
  };
300
495
  models: {
301
- iteration?: _standard_schema_spec0.StandardSchemaV1<unknown, unknown> | undefined;
496
+ iteration?: _standard_schema_spec0.StandardSchemaV1<unknown, unknown>;
302
497
  output?: zod0.ZodObject<{
303
498
  success: zod0.ZodBoolean;
304
- }, zod_v4_core0.$strip> | undefined;
499
+ }, zod_v4_core0.$strip>;
305
500
  params?: zod0.ZodObject<{
306
501
  id: zod0.ZodUUID;
307
- }, zod_v4_core0.$strip> | undefined;
502
+ }, zod_v4_core0.$strip>;
308
503
  query?: zod0.ZodObject<{
309
504
  notify: zod0.ZodEnum<{
310
505
  email: "email";
311
506
  push: "push";
312
507
  none: "none";
313
508
  }>;
314
- }, zod_v4_core0.$strip> | undefined;
509
+ }, zod_v4_core0.$strip>;
315
510
  body?: zod0.ZodObject<{
316
511
  email: zod0.ZodEmail;
317
512
  profile: zod0.ZodObject<{
318
513
  name: zod0.ZodString;
319
514
  age: zod0.ZodInt;
320
515
  }, zod_v4_core0.$strip>;
321
- }, zod_v4_core0.$strip> | undefined;
516
+ }, zod_v4_core0.$strip>;
322
517
  };
323
518
  }, {
324
519
  apiRoot?: string;
325
520
  disableClientValidation?: boolean;
326
- validateOnClient?: vovk0.VovkValidateOnClient<unknown> | Promise<{
327
- validateOnClient: vovk0.VovkValidateOnClient<unknown>;
521
+ validateOnClient?: vovk_mjs0.VovkValidateOnClient<unknown> | Promise<{
522
+ validateOnClient: vovk_mjs0.VovkValidateOnClient<unknown>;
328
523
  }> | undefined;
329
524
  interpretAs?: string;
330
525
  init?: RequestInit;
@@ -346,15 +541,15 @@ declare const StreamRPC: {
346
541
  };
347
542
  isRPC?: boolean;
348
543
  } & {
349
- schema: Omit<vovk0.VovkHandlerSchema, "httpMethod" | "path"> & Partial<vovk0.VovkHandlerSchema>;
350
- wrapper?: ((req: vovk0.VovkRequest<any, any, any>, params: undefined) => AsyncGenerator<{
544
+ schema: Omit<vovk_mjs0.VovkHandlerSchema, "httpMethod" | "path"> & Partial<vovk_mjs0.VovkHandlerSchema>;
545
+ wrapper?: (req: vovk_mjs0.VovkRequest<any, any, any>, params: undefined) => AsyncGenerator<{
351
546
  message: string;
352
- }, void, unknown>) | undefined;
547
+ }, void, unknown>;
353
548
  } & {
354
549
  fn: {
355
- <RETURN_TYPE = AsyncGenerator<{
550
+ <TReturnType = AsyncGenerator<{
356
551
  message: string;
357
- }, void, unknown>>(input?: ({
552
+ }, void, unknown>>(input?: {
358
553
  disableClientValidation?: boolean;
359
554
  } & {
360
555
  body?: unknown;
@@ -367,8 +562,8 @@ declare const StreamRPC: {
367
562
  [key: string]: any;
368
563
  __disableClientValidation?: boolean;
369
564
  };
370
- }) | undefined): RETURN_TYPE;
371
- <RETURN_TYPE = AsyncGenerator<{
565
+ }): TReturnType;
566
+ <TReturnType = AsyncGenerator<{
372
567
  message: string;
373
568
  }, void, unknown>>(input: {
374
569
  disableClientValidation?: boolean;
@@ -383,29 +578,29 @@ declare const StreamRPC: {
383
578
  [key: string]: any;
384
579
  __disableClientValidation?: boolean;
385
580
  };
386
- }): RETURN_TYPE;
581
+ }): TReturnType;
387
582
  };
388
583
  models: {
389
584
  iteration?: zod0.ZodObject<{
390
585
  message: zod0.ZodString;
391
- }, zod_v4_core0.$strip> | undefined;
392
- output?: _standard_schema_spec0.StandardSchemaV1<unknown, unknown> | undefined;
393
- params?: _standard_schema_spec0.StandardSchemaV1<unknown, unknown> | undefined;
394
- query?: _standard_schema_spec0.StandardSchemaV1<unknown, unknown> | undefined;
395
- body?: _standard_schema_spec0.StandardSchemaV1<unknown, unknown> | undefined;
586
+ }, zod_v4_core0.$strip>;
587
+ output?: _standard_schema_spec0.StandardSchemaV1<unknown, unknown>;
588
+ params?: _standard_schema_spec0.StandardSchemaV1<unknown, unknown>;
589
+ query?: _standard_schema_spec0.StandardSchemaV1<unknown, unknown>;
590
+ body?: _standard_schema_spec0.StandardSchemaV1<unknown, unknown>;
396
591
  };
397
592
  }, {
398
593
  apiRoot?: string;
399
594
  disableClientValidation?: boolean;
400
- validateOnClient?: vovk0.VovkValidateOnClient<unknown> | Promise<{
401
- validateOnClient: vovk0.VovkValidateOnClient<unknown>;
595
+ validateOnClient?: vovk_mjs0.VovkValidateOnClient<unknown> | Promise<{
596
+ validateOnClient: vovk_mjs0.VovkValidateOnClient<unknown>;
402
597
  }> | undefined;
403
598
  interpretAs?: string;
404
599
  init?: RequestInit;
405
600
  }, unknown>;
406
601
  };
407
602
  declare const OpenApiRPC: {
408
- getSpec: () => openapi3_ts_oas310.OpenAPIObject;
603
+ getSpec: () => any;
409
604
  };
410
605
  //#endregion
411
- export { OpenApiRPC, StreamRPC, UserRPC, openapi, schema };
606
+ export { OpenApiRPC, StreamRPC, UserRPC, __json_default_export as openapi, schema };