asfur 1.0.10 → 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.d.ts CHANGED
@@ -151,6 +151,7 @@ export declare const zodDataSchema: z.ZodObject<{
151
151
  export declare const zodQuerySchema: z.ZodObject<{
152
152
  sources: z.ZodArray<z.ZodString, "many">;
153
153
  query: z.ZodString;
154
+ user_instructions: z.ZodOptional<z.ZodString>;
154
155
  time_range: z.ZodObject<{
155
156
  start: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
156
157
  end: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
@@ -171,6 +172,7 @@ export declare const zodQuerySchema: z.ZodObject<{
171
172
  end: number | Date;
172
173
  };
173
174
  user_id: string;
175
+ user_instructions?: string | undefined;
174
176
  thread_id?: string | undefined;
175
177
  }, {
176
178
  sources: string[];
@@ -180,6 +182,7 @@ export declare const zodQuerySchema: z.ZodObject<{
180
182
  end: number | Date;
181
183
  };
182
184
  user_id: string;
185
+ user_instructions?: string | undefined;
183
186
  thread_id?: string | undefined;
184
187
  }>;
185
188
  export type SourceType = z.infer<typeof zodSourceSchema>;
package/dist/types.js CHANGED
@@ -70,8 +70,9 @@ 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
+ user_instructions: zod_1.z.string().optional(),
75
76
  time_range: zod_1.z.object({
76
77
  start: zod_1.z.coerce.date().or(zod_1.z.number()),
77
78
  end: zod_1.z.coerce.date().or(zod_1.z.number()), // end date
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asfur",
3
- "version": "1.0.10",
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,8 +74,9 @@ 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
+ user_instructions: z.string().optional(), // optional user instructions for the query
79
80
  time_range: z.object({
80
81
  start: z.coerce.date().or(z.number()), // start date
81
82
  end: z.coerce.date().or(z.number()), // end date