asfur 1.0.7 → 1.0.8

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
@@ -152,14 +152,14 @@ export declare const zodQuerySchema: z.ZodObject<{
152
152
  sources: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
153
153
  query: z.ZodOptional<z.ZodString>;
154
154
  time_range: z.ZodOptional<z.ZodObject<{
155
- start: z.ZodOptional<z.ZodDate>;
156
- end: z.ZodOptional<z.ZodDate>;
155
+ start: z.ZodOptional<z.ZodUnion<[z.ZodDate, z.ZodNumber]>>;
156
+ end: z.ZodOptional<z.ZodUnion<[z.ZodDate, z.ZodNumber]>>;
157
157
  }, "strip", z.ZodTypeAny, {
158
- start?: Date | undefined;
159
- end?: Date | undefined;
158
+ start?: number | Date | undefined;
159
+ end?: number | Date | undefined;
160
160
  }, {
161
- start?: Date | undefined;
162
- end?: Date | undefined;
161
+ start?: number | Date | undefined;
162
+ end?: number | Date | undefined;
163
163
  }>>;
164
164
  user_id: z.ZodOptional<z.ZodString>;
165
165
  thread_id: z.ZodOptional<z.ZodString>;
@@ -167,8 +167,8 @@ export declare const zodQuerySchema: z.ZodObject<{
167
167
  sources?: string[] | undefined;
168
168
  query?: string | undefined;
169
169
  time_range?: {
170
- start?: Date | undefined;
171
- end?: Date | undefined;
170
+ start?: number | Date | undefined;
171
+ end?: number | Date | undefined;
172
172
  } | undefined;
173
173
  user_id?: string | undefined;
174
174
  thread_id?: string | undefined;
@@ -176,8 +176,8 @@ export declare const zodQuerySchema: z.ZodObject<{
176
176
  sources?: string[] | undefined;
177
177
  query?: string | undefined;
178
178
  time_range?: {
179
- start?: Date | undefined;
180
- end?: Date | undefined;
179
+ start?: number | Date | undefined;
180
+ end?: number | Date | undefined;
181
181
  } | undefined;
182
182
  user_id?: string | undefined;
183
183
  thread_id?: string | undefined;
package/dist/types.js CHANGED
@@ -74,8 +74,8 @@ exports.zodQuerySchema = zod_1.z.object({
74
74
  query: zod_1.z.string().optional(),
75
75
  time_range: zod_1.z
76
76
  .object({
77
- start: zod_1.z.coerce.date().optional(),
78
- end: zod_1.z.coerce.date().optional(), // end date
77
+ start: zod_1.z.coerce.date().or(zod_1.z.number()).optional(),
78
+ end: zod_1.z.coerce.date().or(zod_1.z.number()).optional(), // end date
79
79
  })
80
80
  .optional(),
81
81
  user_id: zod_1.z.string().optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asfur",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
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
@@ -78,8 +78,8 @@ export const zodQuerySchema = z.object({
78
78
  query: z.string().optional(), // search query includes geo information where it should be extracted with LLM
79
79
  time_range: z
80
80
  .object({
81
- start: z.coerce.date().optional(), // start date
82
- end: z.coerce.date().optional(), // end date
81
+ start: z.coerce.date().or(z.number()).optional(), // start date
82
+ end: z.coerce.date().or(z.number()).optional(), // end date
83
83
  })
84
84
  .optional(),
85
85
  user_id: z.string().optional(), // optional user identifier