vovk-hello-world 0.0.47 → 0.0.50

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
- <!-- auto-generated by vovk-cli v0.0.1-draft.346 at 2025-08-30T11:29:33.929Z -->
1
+ <!-- Generated by vovk-cli v0.0.1-draft.390 at 2025-11-02T08:54:18.822Z -->
2
2
 
3
3
 
4
- # vovk-hello-world v0.0.47 [![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.50 [![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
 
@@ -17,9 +17,9 @@ npm install vovk-hello-world
17
17
  ## UserRPC
18
18
 
19
19
  ### UserRPC.updateUser
20
+ > Update user
20
21
 
21
-
22
-
22
+ Update user by ID
23
23
 
24
24
 
25
25
  `POST http://localhost:3000/api/users/{id}`
@@ -29,6 +29,9 @@ import { UserRPC } from 'vovk-hello-world';
29
29
 
30
30
  const response = await UserRPC.updateUser({
31
31
  body: {
32
+ // -----
33
+ // User data object
34
+ // -----
32
35
  // User email
33
36
  email: "john@example.com",
34
37
  // User profile object
@@ -40,10 +43,16 @@ const response = await UserRPC.updateUser({
40
43
  }
41
44
  },
42
45
  query: {
46
+ // -----
47
+ // Query parameters
48
+ // -----
43
49
  // Notification type
44
50
  notify: "email"
45
51
  },
46
52
  params: {
53
+ // -----
54
+ // Path parameters
55
+ // -----
47
56
  // User ID
48
57
  id: "123e4567-e89b-12d3-a456-426614174000"
49
58
  },
@@ -66,9 +75,9 @@ console.log(response);
66
75
  ## StreamRPC
67
76
 
68
77
  ### StreamRPC.streamTokens
78
+ > Stream tokens
69
79
 
70
-
71
-
80
+ Stream tokens to the client
72
81
 
73
82
 
74
83
  `GET http://localhost:3000/api/streams/tokens`
@@ -82,6 +91,9 @@ for await (const item of response) {
82
91
  console.log(item);
83
92
  /*
84
93
  {
94
+ // -----
95
+ // Streamed token object
96
+ // -----
85
97
  // Message from the token
86
98
  message: "string"
87
99
  }
@@ -95,12 +107,12 @@ for await (const item of response) {
95
107
  ## OpenApiRPC
96
108
 
97
109
  ### OpenApiRPC.getSpec
110
+ > OpenAPI spec
98
111
 
112
+ Get the OpenAPI spec for the "Hello World" app API
99
113
 
100
114
 
101
-
102
-
103
- `GET http://localhost:3000/api/static/openapi/spec.json`
115
+ `GET http://localhost:3000/api/static/openapi.json`
104
116
 
105
117
  ```ts
106
118
  import { OpenApiRPC } from 'vovk-hello-world';