vovk-hello-world 0.0.51 → 0.0.53

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.392 at 2025-11-03T08:16:54.290Z -->
1
+ <!-- Generated by vovk-cli v0.0.1-draft.392 at 2025-11-03T12:15:44.618Z -->
2
2
 
3
3
 
4
- # vovk-hello-world v0.0.51 [![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.53 [![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 for Next.js + Vovk.ts + Zod, demonstrating its capabilities with TypeScript, Rust, and Python RPC.
7
7
 
@@ -22,7 +22,7 @@ npm install vovk-hello-world
22
22
  Update user by ID
23
23
 
24
24
 
25
- `POST https://hello-world.vovk.dev/api/users/{id}`
25
+ `POST http://localhost:3000/api/users/{id}`
26
26
 
27
27
  ```ts
28
28
  import { UserRPC } from 'vovk-hello-world';
@@ -80,7 +80,7 @@ console.log(response);
80
80
  Stream tokens to the client
81
81
 
82
82
 
83
- `GET https://hello-world.vovk.dev/api/streams/tokens`
83
+ `GET http://localhost:3000/api/streams/tokens`
84
84
 
85
85
  ```ts
86
86
  import { StreamRPC } from 'vovk-hello-world';
@@ -112,7 +112,7 @@ for await (const item of response) {
112
112
  Get the OpenAPI spec for the "Hello World" app API
113
113
 
114
114
 
115
- `GET https://hello-world.vovk.dev/api/static/openapi.json`
115
+ `GET http://localhost:3000/api/static/openapi.json`
116
116
 
117
117
  ```ts
118
118
  import { OpenApiRPC } from 'vovk-hello-world';
package/index.cjs CHANGED
@@ -451,15 +451,15 @@ var openapi_default = {
451
451
  //#region tmp_prebundle/index.ts
452
452
  const UserRPC = (0, vovk.createRPC)(schema, "", "UserRPC", import("vovk"), {
453
453
  validateOnClient: import("vovk-ajv"),
454
- apiRoot: "https://hello-world.vovk.dev/api"
454
+ apiRoot: "http://localhost:3000/api"
455
455
  });
456
456
  const StreamRPC = (0, vovk.createRPC)(schema, "", "StreamRPC", import("vovk"), {
457
457
  validateOnClient: import("vovk-ajv"),
458
- apiRoot: "https://hello-world.vovk.dev/api"
458
+ apiRoot: "http://localhost:3000/api"
459
459
  });
460
460
  const OpenApiRPC = (0, vovk.createRPC)(schema, "static", "OpenApiRPC", import("vovk"), {
461
461
  validateOnClient: import("vovk-ajv"),
462
- apiRoot: "https://hello-world.vovk.dev/api"
462
+ apiRoot: "http://localhost:3000/api"
463
463
  });
464
464
 
465
465
  //#endregion
package/index.d.cts CHANGED
@@ -399,6 +399,8 @@ declare const UserRPC: {
399
399
  }: {
400
400
  id: string;
401
401
  }) => Promise<{
402
+ id: string;
403
+ notify: "email" | "push" | "none";
402
404
  success: true;
403
405
  }>) & {
404
406
  __types: {
@@ -417,6 +419,8 @@ declare const UserRPC: {
417
419
  };
418
420
  output: {
419
421
  success: boolean;
422
+ id: string;
423
+ notify: "email" | "push" | "none";
420
424
  };
421
425
  iteration: unknown;
422
426
  isForm: false;
@@ -427,11 +431,15 @@ declare const UserRPC: {
427
431
  wrapper?: (req: vovk0.VovkRequest<any, any, any>, params: {
428
432
  id: string;
429
433
  }) => Promise<{
434
+ id: string;
435
+ notify: "email" | "push" | "none";
430
436
  success: true;
431
437
  }>;
432
438
  } & {
433
439
  fn: {
434
440
  <TReturnType = Promise<{
441
+ id: string;
442
+ notify: "email" | "push" | "none";
435
443
  success: true;
436
444
  }>>(input?: {
437
445
  disableClientValidation?: boolean;
@@ -458,6 +466,8 @@ declare const UserRPC: {
458
466
  };
459
467
  }): TReturnType;
460
468
  <TReturnType = Promise<{
469
+ id: string;
470
+ notify: "email" | "push" | "none";
461
471
  success: true;
462
472
  }>>(input: {
463
473
  disableClientValidation?: boolean;
@@ -488,6 +498,12 @@ declare const UserRPC: {
488
498
  iteration?: _standard_schema_spec0.StandardSchemaV1<unknown, unknown>;
489
499
  output?: zod0.ZodObject<{
490
500
  success: zod0.ZodBoolean;
501
+ id: zod0.ZodUUID;
502
+ notify: zod0.ZodEnum<{
503
+ email: "email";
504
+ push: "push";
505
+ none: "none";
506
+ }>;
491
507
  }, zod_v4_core0.$strip>;
492
508
  params?: zod0.ZodObject<{
493
509
  id: zod0.ZodUUID;
package/index.d.mts CHANGED
@@ -399,6 +399,8 @@ declare const UserRPC: {
399
399
  }: {
400
400
  id: string;
401
401
  }) => Promise<{
402
+ id: string;
403
+ notify: "email" | "push" | "none";
402
404
  success: true;
403
405
  }>) & {
404
406
  __types: {
@@ -417,6 +419,8 @@ declare const UserRPC: {
417
419
  };
418
420
  output: {
419
421
  success: boolean;
422
+ id: string;
423
+ notify: "email" | "push" | "none";
420
424
  };
421
425
  iteration: unknown;
422
426
  isForm: false;
@@ -427,11 +431,15 @@ declare const UserRPC: {
427
431
  wrapper?: (req: vovk0.VovkRequest<any, any, any>, params: {
428
432
  id: string;
429
433
  }) => Promise<{
434
+ id: string;
435
+ notify: "email" | "push" | "none";
430
436
  success: true;
431
437
  }>;
432
438
  } & {
433
439
  fn: {
434
440
  <TReturnType = Promise<{
441
+ id: string;
442
+ notify: "email" | "push" | "none";
435
443
  success: true;
436
444
  }>>(input?: {
437
445
  disableClientValidation?: boolean;
@@ -458,6 +466,8 @@ declare const UserRPC: {
458
466
  };
459
467
  }): TReturnType;
460
468
  <TReturnType = Promise<{
469
+ id: string;
470
+ notify: "email" | "push" | "none";
461
471
  success: true;
462
472
  }>>(input: {
463
473
  disableClientValidation?: boolean;
@@ -488,6 +498,12 @@ declare const UserRPC: {
488
498
  iteration?: _standard_schema_spec0.StandardSchemaV1<unknown, unknown>;
489
499
  output?: zod0.ZodObject<{
490
500
  success: zod0.ZodBoolean;
501
+ id: zod0.ZodUUID;
502
+ notify: zod0.ZodEnum<{
503
+ email: "email";
504
+ push: "push";
505
+ none: "none";
506
+ }>;
491
507
  }, zod_v4_core0.$strip>;
492
508
  params?: zod0.ZodObject<{
493
509
  id: zod0.ZodUUID;
package/index.mjs CHANGED
@@ -427,15 +427,15 @@ var openapi_default = {
427
427
  //#region tmp_prebundle/index.ts
428
428
  const UserRPC = createRPC(schema, "", "UserRPC", import("vovk"), {
429
429
  validateOnClient: import("vovk-ajv"),
430
- apiRoot: "https://hello-world.vovk.dev/api"
430
+ apiRoot: "http://localhost:3000/api"
431
431
  });
432
432
  const StreamRPC = createRPC(schema, "", "StreamRPC", import("vovk"), {
433
433
  validateOnClient: import("vovk-ajv"),
434
- apiRoot: "https://hello-world.vovk.dev/api"
434
+ apiRoot: "http://localhost:3000/api"
435
435
  });
436
436
  const OpenApiRPC = createRPC(schema, "static", "OpenApiRPC", import("vovk"), {
437
437
  validateOnClient: import("vovk-ajv"),
438
- apiRoot: "https://hello-world.vovk.dev/api"
438
+ apiRoot: "http://localhost:3000/api"
439
439
  });
440
440
 
441
441
  //#endregion
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  }
11
11
  },
12
12
  "name": "vovk-hello-world",
13
- "version": "0.0.51",
13
+ "version": "0.0.53",
14
14
  "description": "A showcase for Next.js + Vovk.ts + Zod, demonstrating its capabilities with TypeScript, Rust, and Python RPC.",
15
15
  "license": "MIT"
16
16
  }