asfur 1.0.11 → 1.0.12

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/dist/types.js CHANGED
@@ -70,7 +70,7 @@ exports.zodDataSchema = zod_1.z.object({
70
70
  .optional(), // media attachments
71
71
  });
72
72
  exports.zodQuerySchema = zod_1.z.object({
73
- sources: zod_1.z.array(zod_1.z.string()).min(1, 'Must include at least one source ID'),
73
+ sources: zod_1.z.array(zod_1.z.string()),
74
74
  query: zod_1.z.string().nonempty('Query cannot be empty'),
75
75
  user_instructions: zod_1.z.string().optional(),
76
76
  time_range: zod_1.z.object({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asfur",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
4
4
  "description": "SDK for interacting with the Asfur API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/types.ts CHANGED
@@ -74,7 +74,7 @@ export const zodDataSchema = z.object({
74
74
  });
75
75
 
76
76
  export const zodQuerySchema = z.object({
77
- sources: z.array(z.string()).min(1, 'Must include at least one source ID'), // array of source _id strings
77
+ sources: z.array(z.string()), // array of source _id strings
78
78
  query: z.string().nonempty('Query cannot be empty'), // search query includes geo information where it should be extracted with LLM
79
79
  user_instructions: z.string().optional(), // optional user instructions for the query
80
80
  time_range: z.object({