vovk-hello-world 0.0.50 → 0.0.52

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.390 at 2025-11-02T08:54:18.822Z -->
1
+ <!-- Generated by vovk-cli v0.0.1-draft.392 at 2025-11-03T12:11:15.967Z -->
2
2
 
3
3
 
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)
4
+ # vovk-hello-world v0.0.52 [![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
 
package/index.cjs CHANGED
@@ -198,7 +198,15 @@ const schema = {
198
198
  //#region tmp_prebundle/openapi.json
199
199
  var openapi_default = {
200
200
  openapi: "3.1.0",
201
- info: {},
201
+ info: {
202
+ "title": "\"Hello World\" app API",
203
+ "version": "1.0.0",
204
+ "description": "API for \"Hello World\" app hosted at https://hello-world.vovk.dev/. Source code is available on Github https://github.com/finom/vovk-hello-world.",
205
+ "license": {
206
+ "name": "MIT",
207
+ "url": "https://opensource.org/licenses/MIT"
208
+ }
209
+ },
202
210
  components: { "schemas": {
203
211
  "HttpStatus": {
204
212
  "type": "integer",
@@ -286,17 +294,17 @@ var openapi_default = {
286
294
  {
287
295
  "label": "TypeScript RPC",
288
296
  "lang": "typescript",
289
- "source": "import { UserRPC } from 'vovk-client';\n\nconst response = await UserRPC.updateUser({\n body: {\n // -----\n // User data object\n // -----\n // User email\n email: \"john@example.com\",\n // User profile object\n profile: {\n // User full name\n name: \"John Doe\",\n // User age\n age: 25\n }\n },\n query: {\n // -----\n // Query parameters\n // -----\n // Notification type\n notify: \"email\"\n },\n params: {\n // -----\n // Path parameters\n // -----\n // User ID\n id: \"123e4567-e89b-12d3-a456-426614174000\"\n },\n});\n\nconsole.log(response); \n/* \n{\n // -----\n // Response object\n // -----\n // Success status\n success: true\n}\n*/"
297
+ "source": "import { UserRPC } from 'vovk-hello-world';\n\nconst response = await UserRPC.updateUser({\n body: {\n // -----\n // User data object\n // -----\n // User email\n email: \"john@example.com\",\n // User profile object\n profile: {\n // User full name\n name: \"John Doe\",\n // User age\n age: 25\n }\n },\n query: {\n // -----\n // Query parameters\n // -----\n // Notification type\n notify: \"email\"\n },\n params: {\n // -----\n // Path parameters\n // -----\n // User ID\n id: \"123e4567-e89b-12d3-a456-426614174000\"\n },\n});\n\nconsole.log(response); \n/* \n{\n // -----\n // Response object\n // -----\n // Success status\n success: true\n}\n*/"
290
298
  },
291
299
  {
292
300
  "label": "Python RPC",
293
301
  "lang": "python",
294
- "source": "from vovk_client import UserRPC\n\nresponse = UserRPC.update_user(\n body={\n # -----\n # User data object\n # -----\n # User email\n \"email\": \"john@example.com\",\n # User profile object\n \"profile\": {\n # User full name\n \"name\": \"John Doe\",\n # User age\n \"age\": 25\n }\n },\n query={\n # -----\n # Query parameters\n # -----\n # Notification type\n \"notify\": \"email\"\n },\n params={\n # -----\n # Path parameters\n # -----\n # User ID\n \"id\": \"123e4567-e89b-12d3-a456-426614174000\"\n },\n)\n\nprint(response)\n{\n # -----\n # Response object\n # -----\n # Success status\n \"success\": true\n}"
302
+ "source": "from vovk_hello_world import UserRPC\n\nresponse = UserRPC.update_user(\n body={\n # -----\n # User data object\n # -----\n # User email\n \"email\": \"john@example.com\",\n # User profile object\n \"profile\": {\n # User full name\n \"name\": \"John Doe\",\n # User age\n \"age\": 25\n }\n },\n query={\n # -----\n # Query parameters\n # -----\n # Notification type\n \"notify\": \"email\"\n },\n params={\n # -----\n # Path parameters\n # -----\n # User ID\n \"id\": \"123e4567-e89b-12d3-a456-426614174000\"\n },\n)\n\nprint(response)\n{\n # -----\n # Response object\n # -----\n # Success status\n \"success\": true\n}"
295
303
  },
296
304
  {
297
305
  "label": "Rust RPC",
298
306
  "lang": "rust",
299
- "source": "use vovk_client::user_rpc;\nuse serde_json::{ \n from_value, \n json \n};\n\npub fn main() {\n let response = user_rpc::update_user(\n from_value(json!({\n // -----\n // User data object\n // -----\n // User email\n \"email\": \"john@example.com\",\n // User profile object\n \"profile\": {\n // User full name\n \"name\": \"John Doe\",\n // User age\n \"age\": 25\n }\n })).unwrap(), /* body */ \n from_value(json!({\n // -----\n // Query parameters\n // -----\n // Notification type\n \"notify\": \"email\"\n })).unwrap(), /* query */ \n from_value(json!({\n // -----\n // Path parameters\n // -----\n // User ID\n \"id\": \"123e4567-e89b-12d3-a456-426614174000\"\n })).unwrap(), /* params */ \n None, /* headers (HashMap) */ \n None, /* api_root */\n false, /* disable_client_validation */\n );\n\nmatch response {\n Ok(output) => println!(\"{:?}\", output),\n /* \n output {\n // -----\n // Response object\n // -----\n // Success status\n success: true\n } \n */\n Err(e) => println!(\"error: {:?}\", e),\n }\n}"
307
+ "source": "use vovk_hello_world::user_rpc;\nuse serde_json::{ \n from_value, \n json \n};\n\npub fn main() {\n let response = user_rpc::update_user(\n from_value(json!({\n // -----\n // User data object\n // -----\n // User email\n \"email\": \"john@example.com\",\n // User profile object\n \"profile\": {\n // User full name\n \"name\": \"John Doe\",\n // User age\n \"age\": 25\n }\n })).unwrap(), /* body */ \n from_value(json!({\n // -----\n // Query parameters\n // -----\n // Notification type\n \"notify\": \"email\"\n })).unwrap(), /* query */ \n from_value(json!({\n // -----\n // Path parameters\n // -----\n // User ID\n \"id\": \"123e4567-e89b-12d3-a456-426614174000\"\n })).unwrap(), /* params */ \n None, /* headers (HashMap) */ \n None, /* api_root */\n false, /* disable_client_validation */\n );\n\nmatch response {\n Ok(output) => println!(\"{:?}\", output),\n /* \n output {\n // -----\n // Response object\n // -----\n // Success status\n success: true\n } \n */\n Err(e) => println!(\"error: {:?}\", e),\n }\n}"
300
308
  }
301
309
  ],
302
310
  "parameters": [{
@@ -386,17 +394,17 @@ var openapi_default = {
386
394
  {
387
395
  "label": "TypeScript RPC",
388
396
  "lang": "typescript",
389
- "source": "import { StreamRPC } from 'vovk-client';\n\nusing response = await StreamRPC.streamTokens();\n\nfor await (const item of response) {\n console.log(item); \n /*\n {\n // -----\n // Streamed token object\n // -----\n // Message from the token\n message: \"string\"\n }\n */\n}"
397
+ "source": "import { StreamRPC } from 'vovk-hello-world';\n\nusing response = await StreamRPC.streamTokens();\n\nfor await (const item of response) {\n console.log(item); \n /*\n {\n // -----\n // Streamed token object\n // -----\n // Message from the token\n message: \"string\"\n }\n */\n}"
390
398
  },
391
399
  {
392
400
  "label": "Python RPC",
393
401
  "lang": "python",
394
- "source": "from vovk_client import StreamRPC\n\nresponse = StreamRPC.stream_tokens()\n\nfor i, item in enumerate(response):\n print(f\"iteration #{i}:\\n {item}\")\n # iteration #0:\n {\n # -----\n # Streamed token object\n # -----\n # Message from the token\n \"message\": \"string\"\n }"
402
+ "source": "from vovk_hello_world import StreamRPC\n\nresponse = StreamRPC.stream_tokens()\n\nfor i, item in enumerate(response):\n print(f\"iteration #{i}:\\n {item}\")\n # iteration #0:\n {\n # -----\n # Streamed token object\n # -----\n # Message from the token\n \"message\": \"string\"\n }"
395
403
  },
396
404
  {
397
405
  "label": "Rust RPC",
398
406
  "lang": "rust",
399
- "source": "use vovk_client::stream_rpc;\nuse serde_json::{ \n from_value, \n json \n};\n\npub fn main() {\n let response = stream_rpc::stream_tokens(\n (), /* body */ \n (), /* query */ \n (), /* params */ \n None, /* headers (HashMap) */ \n None, /* api_root */\n false, /* disable_client_validation */\n );\n\nmatch response {\n Ok(stream) => {\n for (i, item) in stream.enumerate() {\n println!(\"#{}: {:?}\", i, item);\n /*\n #0: iteration {\n // -----\n // Streamed token object\n // -----\n // Message from the token\n message: \"string\"\n }\n */\n }\n },\n Err(e) => println!(\"Error initiating stream: {:?}\", e),\n }\n}"
407
+ "source": "use vovk_hello_world::stream_rpc;\nuse serde_json::{ \n from_value, \n json \n};\n\npub fn main() {\n let response = stream_rpc::stream_tokens(\n (), /* body */ \n (), /* query */ \n (), /* params */ \n None, /* headers (HashMap) */ \n None, /* api_root */\n false, /* disable_client_validation */\n );\n\nmatch response {\n Ok(stream) => {\n for (i, item) in stream.enumerate() {\n println!(\"#{}: {:?}\", i, item);\n /*\n #0: iteration {\n // -----\n // Streamed token object\n // -----\n // Message from the token\n message: \"string\"\n }\n */\n }\n },\n Err(e) => println!(\"Error initiating stream: {:?}\", e),\n }\n}"
400
408
  }
401
409
  ],
402
410
  "responses": { "200": {
@@ -422,17 +430,17 @@ var openapi_default = {
422
430
  {
423
431
  "label": "TypeScript RPC",
424
432
  "lang": "typescript",
425
- "source": "import { OpenApiRPC } from 'vovk-client';\n\nconst response = await OpenApiRPC.getSpec();"
433
+ "source": "import { OpenApiRPC } from 'vovk-hello-world';\n\nconst response = await OpenApiRPC.getSpec();"
426
434
  },
427
435
  {
428
436
  "label": "Python RPC",
429
437
  "lang": "python",
430
- "source": "from vovk_client import OpenApiRPC\n\nresponse = OpenApiRPC.get_spec()"
438
+ "source": "from vovk_hello_world import OpenApiRPC\n\nresponse = OpenApiRPC.get_spec()"
431
439
  },
432
440
  {
433
441
  "label": "Rust RPC",
434
442
  "lang": "rust",
435
- "source": "use vovk_client::open_api_rpc;\nuse serde_json::{ \n from_value, \n json \n};\n\npub fn main() {\n let response = open_api_rpc::get_spec(\n (), /* body */ \n (), /* query */ \n (), /* params */ \n None, /* headers (HashMap) */ \n None, /* api_root */\n false, /* disable_client_validation */\n );\n}"
443
+ "source": "use vovk_hello_world::open_api_rpc;\nuse serde_json::{ \n from_value, \n json \n};\n\npub fn main() {\n let response = open_api_rpc::get_spec(\n (), /* body */ \n (), /* query */ \n (), /* params */ \n None, /* headers (HashMap) */ \n None, /* api_root */\n false, /* disable_client_validation */\n );\n}"
436
444
  }
437
445
  ]
438
446
  } }
package/index.d.cts CHANGED
@@ -178,24 +178,33 @@ declare const schema: {
178
178
  //#endregion
179
179
  //#region tmp_prebundle/openapi.d.ts
180
180
  declare let openapi: string;
181
- declare let info: {};
181
+ declare namespace info {
182
+ let title: string;
183
+ let version: string;
184
+ let description: string;
185
+ namespace license {
186
+ let name: string;
187
+ let url: string;
188
+ }
189
+ }
182
190
  declare namespace components {
183
191
  namespace schemas {
184
192
  namespace HttpStatus {
185
193
  export let type: string;
186
- export let description: string;
194
+ let description_1: string;
195
+ export { description_1 as description };
187
196
  let _enum: number[];
188
197
  export { _enum as enum };
189
198
  }
190
199
  namespace VovkErrorResponse {
191
200
  let type_1: string;
192
201
  export { type_1 as type };
193
- let description_1: string;
194
- export { description_1 as description };
202
+ let description_2: string;
203
+ export { description_2 as description };
195
204
  export namespace properties {
196
205
  namespace cause {
197
- let description_2: string;
198
- export { description_2 as description };
206
+ let description_3: string;
207
+ export { description_3 as description };
199
208
  }
200
209
  namespace statusCode {
201
210
  let $ref: string;
@@ -203,16 +212,16 @@ declare namespace components {
203
212
  namespace message {
204
213
  let type_2: string;
205
214
  export { type_2 as type };
206
- let description_3: string;
207
- export { description_3 as description };
215
+ let description_4: string;
216
+ export { description_4 as description };
208
217
  }
209
218
  namespace isError {
210
219
  let type_3: string;
211
220
  export { type_3 as type };
212
221
  let _const: boolean;
213
222
  export { _const as const };
214
- let description_4: string;
215
- export { description_4 as description };
223
+ let description_5: string;
224
+ export { description_5 as description };
216
225
  }
217
226
  }
218
227
  export let required: string[];
package/index.d.mts CHANGED
@@ -178,24 +178,33 @@ declare const schema: {
178
178
  //#endregion
179
179
  //#region tmp_prebundle/openapi.d.ts
180
180
  declare let openapi: string;
181
- declare let info: {};
181
+ declare namespace info {
182
+ let title: string;
183
+ let version: string;
184
+ let description: string;
185
+ namespace license {
186
+ let name: string;
187
+ let url: string;
188
+ }
189
+ }
182
190
  declare namespace components {
183
191
  namespace schemas {
184
192
  namespace HttpStatus {
185
193
  export let type: string;
186
- export let description: string;
194
+ let description_1: string;
195
+ export { description_1 as description };
187
196
  let _enum: number[];
188
197
  export { _enum as enum };
189
198
  }
190
199
  namespace VovkErrorResponse {
191
200
  let type_1: string;
192
201
  export { type_1 as type };
193
- let description_1: string;
194
- export { description_1 as description };
202
+ let description_2: string;
203
+ export { description_2 as description };
195
204
  export namespace properties {
196
205
  namespace cause {
197
- let description_2: string;
198
- export { description_2 as description };
206
+ let description_3: string;
207
+ export { description_3 as description };
199
208
  }
200
209
  namespace statusCode {
201
210
  let $ref: string;
@@ -203,16 +212,16 @@ declare namespace components {
203
212
  namespace message {
204
213
  let type_2: string;
205
214
  export { type_2 as type };
206
- let description_3: string;
207
- export { description_3 as description };
215
+ let description_4: string;
216
+ export { description_4 as description };
208
217
  }
209
218
  namespace isError {
210
219
  let type_3: string;
211
220
  export { type_3 as type };
212
221
  let _const: boolean;
213
222
  export { _const as const };
214
- let description_4: string;
215
- export { description_4 as description };
223
+ let description_5: string;
224
+ export { description_5 as description };
216
225
  }
217
226
  }
218
227
  export let required: string[];
package/index.mjs CHANGED
@@ -174,7 +174,15 @@ const schema = {
174
174
  //#region tmp_prebundle/openapi.json
175
175
  var openapi_default = {
176
176
  openapi: "3.1.0",
177
- info: {},
177
+ info: {
178
+ "title": "\"Hello World\" app API",
179
+ "version": "1.0.0",
180
+ "description": "API for \"Hello World\" app hosted at https://hello-world.vovk.dev/. Source code is available on Github https://github.com/finom/vovk-hello-world.",
181
+ "license": {
182
+ "name": "MIT",
183
+ "url": "https://opensource.org/licenses/MIT"
184
+ }
185
+ },
178
186
  components: { "schemas": {
179
187
  "HttpStatus": {
180
188
  "type": "integer",
@@ -262,17 +270,17 @@ var openapi_default = {
262
270
  {
263
271
  "label": "TypeScript RPC",
264
272
  "lang": "typescript",
265
- "source": "import { UserRPC } from 'vovk-client';\n\nconst response = await UserRPC.updateUser({\n body: {\n // -----\n // User data object\n // -----\n // User email\n email: \"john@example.com\",\n // User profile object\n profile: {\n // User full name\n name: \"John Doe\",\n // User age\n age: 25\n }\n },\n query: {\n // -----\n // Query parameters\n // -----\n // Notification type\n notify: \"email\"\n },\n params: {\n // -----\n // Path parameters\n // -----\n // User ID\n id: \"123e4567-e89b-12d3-a456-426614174000\"\n },\n});\n\nconsole.log(response); \n/* \n{\n // -----\n // Response object\n // -----\n // Success status\n success: true\n}\n*/"
273
+ "source": "import { UserRPC } from 'vovk-hello-world';\n\nconst response = await UserRPC.updateUser({\n body: {\n // -----\n // User data object\n // -----\n // User email\n email: \"john@example.com\",\n // User profile object\n profile: {\n // User full name\n name: \"John Doe\",\n // User age\n age: 25\n }\n },\n query: {\n // -----\n // Query parameters\n // -----\n // Notification type\n notify: \"email\"\n },\n params: {\n // -----\n // Path parameters\n // -----\n // User ID\n id: \"123e4567-e89b-12d3-a456-426614174000\"\n },\n});\n\nconsole.log(response); \n/* \n{\n // -----\n // Response object\n // -----\n // Success status\n success: true\n}\n*/"
266
274
  },
267
275
  {
268
276
  "label": "Python RPC",
269
277
  "lang": "python",
270
- "source": "from vovk_client import UserRPC\n\nresponse = UserRPC.update_user(\n body={\n # -----\n # User data object\n # -----\n # User email\n \"email\": \"john@example.com\",\n # User profile object\n \"profile\": {\n # User full name\n \"name\": \"John Doe\",\n # User age\n \"age\": 25\n }\n },\n query={\n # -----\n # Query parameters\n # -----\n # Notification type\n \"notify\": \"email\"\n },\n params={\n # -----\n # Path parameters\n # -----\n # User ID\n \"id\": \"123e4567-e89b-12d3-a456-426614174000\"\n },\n)\n\nprint(response)\n{\n # -----\n # Response object\n # -----\n # Success status\n \"success\": true\n}"
278
+ "source": "from vovk_hello_world import UserRPC\n\nresponse = UserRPC.update_user(\n body={\n # -----\n # User data object\n # -----\n # User email\n \"email\": \"john@example.com\",\n # User profile object\n \"profile\": {\n # User full name\n \"name\": \"John Doe\",\n # User age\n \"age\": 25\n }\n },\n query={\n # -----\n # Query parameters\n # -----\n # Notification type\n \"notify\": \"email\"\n },\n params={\n # -----\n # Path parameters\n # -----\n # User ID\n \"id\": \"123e4567-e89b-12d3-a456-426614174000\"\n },\n)\n\nprint(response)\n{\n # -----\n # Response object\n # -----\n # Success status\n \"success\": true\n}"
271
279
  },
272
280
  {
273
281
  "label": "Rust RPC",
274
282
  "lang": "rust",
275
- "source": "use vovk_client::user_rpc;\nuse serde_json::{ \n from_value, \n json \n};\n\npub fn main() {\n let response = user_rpc::update_user(\n from_value(json!({\n // -----\n // User data object\n // -----\n // User email\n \"email\": \"john@example.com\",\n // User profile object\n \"profile\": {\n // User full name\n \"name\": \"John Doe\",\n // User age\n \"age\": 25\n }\n })).unwrap(), /* body */ \n from_value(json!({\n // -----\n // Query parameters\n // -----\n // Notification type\n \"notify\": \"email\"\n })).unwrap(), /* query */ \n from_value(json!({\n // -----\n // Path parameters\n // -----\n // User ID\n \"id\": \"123e4567-e89b-12d3-a456-426614174000\"\n })).unwrap(), /* params */ \n None, /* headers (HashMap) */ \n None, /* api_root */\n false, /* disable_client_validation */\n );\n\nmatch response {\n Ok(output) => println!(\"{:?}\", output),\n /* \n output {\n // -----\n // Response object\n // -----\n // Success status\n success: true\n } \n */\n Err(e) => println!(\"error: {:?}\", e),\n }\n}"
283
+ "source": "use vovk_hello_world::user_rpc;\nuse serde_json::{ \n from_value, \n json \n};\n\npub fn main() {\n let response = user_rpc::update_user(\n from_value(json!({\n // -----\n // User data object\n // -----\n // User email\n \"email\": \"john@example.com\",\n // User profile object\n \"profile\": {\n // User full name\n \"name\": \"John Doe\",\n // User age\n \"age\": 25\n }\n })).unwrap(), /* body */ \n from_value(json!({\n // -----\n // Query parameters\n // -----\n // Notification type\n \"notify\": \"email\"\n })).unwrap(), /* query */ \n from_value(json!({\n // -----\n // Path parameters\n // -----\n // User ID\n \"id\": \"123e4567-e89b-12d3-a456-426614174000\"\n })).unwrap(), /* params */ \n None, /* headers (HashMap) */ \n None, /* api_root */\n false, /* disable_client_validation */\n );\n\nmatch response {\n Ok(output) => println!(\"{:?}\", output),\n /* \n output {\n // -----\n // Response object\n // -----\n // Success status\n success: true\n } \n */\n Err(e) => println!(\"error: {:?}\", e),\n }\n}"
276
284
  }
277
285
  ],
278
286
  "parameters": [{
@@ -362,17 +370,17 @@ var openapi_default = {
362
370
  {
363
371
  "label": "TypeScript RPC",
364
372
  "lang": "typescript",
365
- "source": "import { StreamRPC } from 'vovk-client';\n\nusing response = await StreamRPC.streamTokens();\n\nfor await (const item of response) {\n console.log(item); \n /*\n {\n // -----\n // Streamed token object\n // -----\n // Message from the token\n message: \"string\"\n }\n */\n}"
373
+ "source": "import { StreamRPC } from 'vovk-hello-world';\n\nusing response = await StreamRPC.streamTokens();\n\nfor await (const item of response) {\n console.log(item); \n /*\n {\n // -----\n // Streamed token object\n // -----\n // Message from the token\n message: \"string\"\n }\n */\n}"
366
374
  },
367
375
  {
368
376
  "label": "Python RPC",
369
377
  "lang": "python",
370
- "source": "from vovk_client import StreamRPC\n\nresponse = StreamRPC.stream_tokens()\n\nfor i, item in enumerate(response):\n print(f\"iteration #{i}:\\n {item}\")\n # iteration #0:\n {\n # -----\n # Streamed token object\n # -----\n # Message from the token\n \"message\": \"string\"\n }"
378
+ "source": "from vovk_hello_world import StreamRPC\n\nresponse = StreamRPC.stream_tokens()\n\nfor i, item in enumerate(response):\n print(f\"iteration #{i}:\\n {item}\")\n # iteration #0:\n {\n # -----\n # Streamed token object\n # -----\n # Message from the token\n \"message\": \"string\"\n }"
371
379
  },
372
380
  {
373
381
  "label": "Rust RPC",
374
382
  "lang": "rust",
375
- "source": "use vovk_client::stream_rpc;\nuse serde_json::{ \n from_value, \n json \n};\n\npub fn main() {\n let response = stream_rpc::stream_tokens(\n (), /* body */ \n (), /* query */ \n (), /* params */ \n None, /* headers (HashMap) */ \n None, /* api_root */\n false, /* disable_client_validation */\n );\n\nmatch response {\n Ok(stream) => {\n for (i, item) in stream.enumerate() {\n println!(\"#{}: {:?}\", i, item);\n /*\n #0: iteration {\n // -----\n // Streamed token object\n // -----\n // Message from the token\n message: \"string\"\n }\n */\n }\n },\n Err(e) => println!(\"Error initiating stream: {:?}\", e),\n }\n}"
383
+ "source": "use vovk_hello_world::stream_rpc;\nuse serde_json::{ \n from_value, \n json \n};\n\npub fn main() {\n let response = stream_rpc::stream_tokens(\n (), /* body */ \n (), /* query */ \n (), /* params */ \n None, /* headers (HashMap) */ \n None, /* api_root */\n false, /* disable_client_validation */\n );\n\nmatch response {\n Ok(stream) => {\n for (i, item) in stream.enumerate() {\n println!(\"#{}: {:?}\", i, item);\n /*\n #0: iteration {\n // -----\n // Streamed token object\n // -----\n // Message from the token\n message: \"string\"\n }\n */\n }\n },\n Err(e) => println!(\"Error initiating stream: {:?}\", e),\n }\n}"
376
384
  }
377
385
  ],
378
386
  "responses": { "200": {
@@ -398,17 +406,17 @@ var openapi_default = {
398
406
  {
399
407
  "label": "TypeScript RPC",
400
408
  "lang": "typescript",
401
- "source": "import { OpenApiRPC } from 'vovk-client';\n\nconst response = await OpenApiRPC.getSpec();"
409
+ "source": "import { OpenApiRPC } from 'vovk-hello-world';\n\nconst response = await OpenApiRPC.getSpec();"
402
410
  },
403
411
  {
404
412
  "label": "Python RPC",
405
413
  "lang": "python",
406
- "source": "from vovk_client import OpenApiRPC\n\nresponse = OpenApiRPC.get_spec()"
414
+ "source": "from vovk_hello_world import OpenApiRPC\n\nresponse = OpenApiRPC.get_spec()"
407
415
  },
408
416
  {
409
417
  "label": "Rust RPC",
410
418
  "lang": "rust",
411
- "source": "use vovk_client::open_api_rpc;\nuse serde_json::{ \n from_value, \n json \n};\n\npub fn main() {\n let response = open_api_rpc::get_spec(\n (), /* body */ \n (), /* query */ \n (), /* params */ \n None, /* headers (HashMap) */ \n None, /* api_root */\n false, /* disable_client_validation */\n );\n}"
419
+ "source": "use vovk_hello_world::open_api_rpc;\nuse serde_json::{ \n from_value, \n json \n};\n\npub fn main() {\n let response = open_api_rpc::get_spec(\n (), /* body */ \n (), /* query */ \n (), /* params */ \n None, /* headers (HashMap) */ \n None, /* api_root */\n false, /* disable_client_validation */\n );\n}"
412
420
  }
413
421
  ]
414
422
  } }
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  }
11
11
  },
12
12
  "name": "vovk-hello-world",
13
- "version": "0.0.50",
13
+ "version": "0.0.52",
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
  }