@lcas58/esmi-api-types 1.0.25 → 1.0.26

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.
@@ -238,6 +238,7 @@ export const chatStream = async (c) => {
238
238
  history: body.history,
239
239
  city: body.city,
240
240
  state: body.state,
241
+ enableWebSearch: body.enableWebSearch,
241
242
  }, writer);
242
243
  }
243
244
  catch (err) {
@@ -336,13 +336,14 @@ declare const router: import("@hono/zod-openapi").OpenAPIHono<import("../../shar
336
336
  json: {
337
337
  message: string;
338
338
  sportId: string;
339
+ city: string;
340
+ state: string;
339
341
  sportName: string;
340
- city?: string | undefined;
341
- state?: string | undefined;
342
342
  history?: {
343
343
  content: string;
344
344
  role: "user" | "assistant";
345
345
  }[] | undefined;
346
+ enableWebSearch?: boolean | undefined;
346
347
  };
347
348
  };
348
349
  output: {
@@ -355,13 +356,14 @@ declare const router: import("@hono/zod-openapi").OpenAPIHono<import("../../shar
355
356
  json: {
356
357
  message: string;
357
358
  sportId: string;
359
+ city: string;
360
+ state: string;
358
361
  sportName: string;
359
- city?: string | undefined;
360
- state?: string | undefined;
361
362
  history?: {
362
363
  content: string;
363
364
  role: "user" | "assistant";
364
365
  }[] | undefined;
366
+ enableWebSearch?: boolean | undefined;
365
367
  };
366
368
  };
367
369
  output: {
@@ -1413,14 +1413,16 @@ export declare const chatRequestSchema: z.ZodObject<{
1413
1413
  content: string;
1414
1414
  role: "user" | "assistant";
1415
1415
  }>, "many">>;
1416
- city: z.ZodOptional<z.ZodString>;
1417
- state: z.ZodOptional<z.ZodString>;
1416
+ city: z.ZodString;
1417
+ state: z.ZodString;
1418
+ enableWebSearch: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1418
1419
  }, "strip", z.ZodTypeAny, {
1419
1420
  message: string;
1420
1421
  sportId: string;
1422
+ city: string;
1423
+ state: string;
1421
1424
  sportName: string;
1422
- city?: string | undefined;
1423
- state?: string | undefined;
1425
+ enableWebSearch: boolean;
1424
1426
  history?: {
1425
1427
  content: string;
1426
1428
  role: "user" | "assistant";
@@ -1428,13 +1430,14 @@ export declare const chatRequestSchema: z.ZodObject<{
1428
1430
  }, {
1429
1431
  message: string;
1430
1432
  sportId: string;
1433
+ city: string;
1434
+ state: string;
1431
1435
  sportName: string;
1432
- city?: string | undefined;
1433
- state?: string | undefined;
1434
1436
  history?: {
1435
1437
  content: string;
1436
1438
  role: "user" | "assistant";
1437
1439
  }[] | undefined;
1440
+ enableWebSearch?: boolean | undefined;
1438
1441
  }>;
1439
1442
  export declare const chatResponseSchema: z.ZodObject<{
1440
1443
  reply: z.ZodString;
@@ -1535,14 +1538,16 @@ export declare const chat: {
1535
1538
  content: string;
1536
1539
  role: "user" | "assistant";
1537
1540
  }>, "many">>;
1538
- city: z.ZodOptional<z.ZodString>;
1539
- state: z.ZodOptional<z.ZodString>;
1541
+ city: z.ZodString;
1542
+ state: z.ZodString;
1543
+ enableWebSearch: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1540
1544
  }, "strip", z.ZodTypeAny, {
1541
1545
  message: string;
1542
1546
  sportId: string;
1547
+ city: string;
1548
+ state: string;
1543
1549
  sportName: string;
1544
- city?: string | undefined;
1545
- state?: string | undefined;
1550
+ enableWebSearch: boolean;
1546
1551
  history?: {
1547
1552
  content: string;
1548
1553
  role: "user" | "assistant";
@@ -1550,13 +1555,14 @@ export declare const chat: {
1550
1555
  }, {
1551
1556
  message: string;
1552
1557
  sportId: string;
1558
+ city: string;
1559
+ state: string;
1553
1560
  sportName: string;
1554
- city?: string | undefined;
1555
- state?: string | undefined;
1556
1561
  history?: {
1557
1562
  content: string;
1558
1563
  role: "user" | "assistant";
1559
1564
  }[] | undefined;
1565
+ enableWebSearch?: boolean | undefined;
1560
1566
  }>;
1561
1567
  };
1562
1568
  };
@@ -89,8 +89,9 @@ export const chatRequestSchema = z.object({
89
89
  sportId: z.string().min(1),
90
90
  sportName: z.string().min(1),
91
91
  history: z.array(chatMessageSchema).optional(),
92
- city: z.string().optional(),
93
- state: z.string().optional(),
92
+ city: z.string().min(1),
93
+ state: z.string().min(1),
94
+ enableWebSearch: z.boolean().optional().default(false),
94
95
  });
95
96
  export const chatResponseSchema = z.object({
96
97
  reply: z.string(),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lcas58/esmi-api-types",
3
3
  "type": "module",
4
- "version": "1.0.25",
4
+ "version": "1.0.26",
5
5
  "license": "MIT",
6
6
  "exports": {
7
7
  ".": {