asfur 1.0.74 → 1.0.80
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/index.d.ts +6 -0
- package/dist/index.js +3 -1
- package/dist/types.d.ts +16 -0
- package/dist/types.js +3 -1
- package/index.ts +2 -0
- package/package.json +2 -2
- package/types.ts +2 -0
package/dist/index.d.ts
CHANGED
|
@@ -217,6 +217,7 @@ export declare const MongoQuerySchema: Schema<any, import("mongoose").Model<any,
|
|
|
217
217
|
virtuals: true;
|
|
218
218
|
};
|
|
219
219
|
}, {
|
|
220
|
+
timestamp: number;
|
|
220
221
|
geos: string[];
|
|
221
222
|
user_id: string;
|
|
222
223
|
sources: string[];
|
|
@@ -225,7 +226,9 @@ export declare const MongoQuerySchema: Schema<any, import("mongoose").Model<any,
|
|
|
225
226
|
title?: string | null | undefined;
|
|
226
227
|
query?: string | null | undefined;
|
|
227
228
|
user_instructions?: string | null | undefined;
|
|
229
|
+
user_time_zone?: string | null | undefined;
|
|
228
230
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
231
|
+
timestamp: number;
|
|
229
232
|
geos: string[];
|
|
230
233
|
user_id: string;
|
|
231
234
|
sources: string[];
|
|
@@ -234,7 +237,9 @@ export declare const MongoQuerySchema: Schema<any, import("mongoose").Model<any,
|
|
|
234
237
|
title?: string | null | undefined;
|
|
235
238
|
query?: string | null | undefined;
|
|
236
239
|
user_instructions?: string | null | undefined;
|
|
240
|
+
user_time_zone?: string | null | undefined;
|
|
237
241
|
}>, {}> & import("mongoose").FlatRecord<{
|
|
242
|
+
timestamp: number;
|
|
238
243
|
geos: string[];
|
|
239
244
|
user_id: string;
|
|
240
245
|
sources: string[];
|
|
@@ -243,6 +248,7 @@ export declare const MongoQuerySchema: Schema<any, import("mongoose").Model<any,
|
|
|
243
248
|
title?: string | null | undefined;
|
|
244
249
|
query?: string | null | undefined;
|
|
245
250
|
user_instructions?: string | null | undefined;
|
|
251
|
+
user_time_zone?: string | null | undefined;
|
|
246
252
|
}> & {
|
|
247
253
|
_id: import("mongoose").Types.ObjectId;
|
|
248
254
|
} & {
|
package/dist/index.js
CHANGED
|
@@ -106,7 +106,9 @@ exports.MongoQuerySchema = new mongoose_1.Schema({
|
|
|
106
106
|
required: true,
|
|
107
107
|
},
|
|
108
108
|
user_id: { type: String, required: true },
|
|
109
|
-
user_instructions: { type: String },
|
|
109
|
+
user_instructions: { type: String },
|
|
110
|
+
user_time_zone: { type: String },
|
|
111
|
+
timestamp: { type: Number, default: Date.now }, // creation date
|
|
110
112
|
}, {
|
|
111
113
|
versionKey: false,
|
|
112
114
|
toJSON: { virtuals: true },
|
package/dist/types.d.ts
CHANGED
|
@@ -280,6 +280,8 @@ export declare const zodQuerySchema: z.ZodObject<{
|
|
|
280
280
|
user_instructions: z.ZodOptional<z.ZodString>;
|
|
281
281
|
user_id: z.ZodString;
|
|
282
282
|
thread_id: z.ZodOptional<z.ZodString>;
|
|
283
|
+
user_time_zone: z.ZodOptional<z.ZodString>;
|
|
284
|
+
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
283
285
|
}, "strip", z.ZodTypeAny, {
|
|
284
286
|
user_id: string;
|
|
285
287
|
time_range: {
|
|
@@ -291,6 +293,7 @@ export declare const zodQuerySchema: z.ZodObject<{
|
|
|
291
293
|
end: number | Date;
|
|
292
294
|
};
|
|
293
295
|
_id?: string | undefined;
|
|
296
|
+
timestamp?: number | undefined;
|
|
294
297
|
title?: string | undefined;
|
|
295
298
|
geos?: string[] | undefined;
|
|
296
299
|
query?: string | undefined;
|
|
@@ -298,6 +301,7 @@ export declare const zodQuerySchema: z.ZodObject<{
|
|
|
298
301
|
geos_ids?: string[] | undefined;
|
|
299
302
|
user_instructions?: string | undefined;
|
|
300
303
|
thread_id?: string | undefined;
|
|
304
|
+
user_time_zone?: string | undefined;
|
|
301
305
|
}, {
|
|
302
306
|
user_id: string;
|
|
303
307
|
time_range: {
|
|
@@ -309,6 +313,7 @@ export declare const zodQuerySchema: z.ZodObject<{
|
|
|
309
313
|
end: number | Date;
|
|
310
314
|
};
|
|
311
315
|
_id?: string | undefined;
|
|
316
|
+
timestamp?: number | undefined;
|
|
312
317
|
title?: string | undefined;
|
|
313
318
|
geos?: string[] | undefined;
|
|
314
319
|
query?: string | undefined;
|
|
@@ -316,6 +321,7 @@ export declare const zodQuerySchema: z.ZodObject<{
|
|
|
316
321
|
geos_ids?: string[] | undefined;
|
|
317
322
|
user_instructions?: string | undefined;
|
|
318
323
|
thread_id?: string | undefined;
|
|
324
|
+
user_time_zone?: string | undefined;
|
|
319
325
|
}>;
|
|
320
326
|
export declare const zodInstructionsSchema: z.ZodObject<{
|
|
321
327
|
_id: z.ZodOptional<z.ZodString>;
|
|
@@ -481,6 +487,8 @@ export declare const zodJobSchema: z.ZodObject<{
|
|
|
481
487
|
user_instructions: z.ZodOptional<z.ZodString>;
|
|
482
488
|
user_id: z.ZodString;
|
|
483
489
|
thread_id: z.ZodOptional<z.ZodString>;
|
|
490
|
+
user_time_zone: z.ZodOptional<z.ZodString>;
|
|
491
|
+
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
484
492
|
}, "strip", z.ZodTypeAny, {
|
|
485
493
|
user_id: string;
|
|
486
494
|
time_range: {
|
|
@@ -492,6 +500,7 @@ export declare const zodJobSchema: z.ZodObject<{
|
|
|
492
500
|
end: number | Date;
|
|
493
501
|
};
|
|
494
502
|
_id?: string | undefined;
|
|
503
|
+
timestamp?: number | undefined;
|
|
495
504
|
title?: string | undefined;
|
|
496
505
|
geos?: string[] | undefined;
|
|
497
506
|
query?: string | undefined;
|
|
@@ -499,6 +508,7 @@ export declare const zodJobSchema: z.ZodObject<{
|
|
|
499
508
|
geos_ids?: string[] | undefined;
|
|
500
509
|
user_instructions?: string | undefined;
|
|
501
510
|
thread_id?: string | undefined;
|
|
511
|
+
user_time_zone?: string | undefined;
|
|
502
512
|
}, {
|
|
503
513
|
user_id: string;
|
|
504
514
|
time_range: {
|
|
@@ -510,6 +520,7 @@ export declare const zodJobSchema: z.ZodObject<{
|
|
|
510
520
|
end: number | Date;
|
|
511
521
|
};
|
|
512
522
|
_id?: string | undefined;
|
|
523
|
+
timestamp?: number | undefined;
|
|
513
524
|
title?: string | undefined;
|
|
514
525
|
geos?: string[] | undefined;
|
|
515
526
|
query?: string | undefined;
|
|
@@ -517,6 +528,7 @@ export declare const zodJobSchema: z.ZodObject<{
|
|
|
517
528
|
geos_ids?: string[] | undefined;
|
|
518
529
|
user_instructions?: string | undefined;
|
|
519
530
|
thread_id?: string | undefined;
|
|
531
|
+
user_time_zone?: string | undefined;
|
|
520
532
|
}>;
|
|
521
533
|
active_until: z.ZodOptional<z.ZodUnion<[z.ZodDate, z.ZodNumber]>>;
|
|
522
534
|
conversation_id: z.ZodOptional<z.ZodString>;
|
|
@@ -536,6 +548,7 @@ export declare const zodJobSchema: z.ZodObject<{
|
|
|
536
548
|
end: number | Date;
|
|
537
549
|
};
|
|
538
550
|
_id?: string | undefined;
|
|
551
|
+
timestamp?: number | undefined;
|
|
539
552
|
title?: string | undefined;
|
|
540
553
|
geos?: string[] | undefined;
|
|
541
554
|
query?: string | undefined;
|
|
@@ -543,6 +556,7 @@ export declare const zodJobSchema: z.ZodObject<{
|
|
|
543
556
|
geos_ids?: string[] | undefined;
|
|
544
557
|
user_instructions?: string | undefined;
|
|
545
558
|
thread_id?: string | undefined;
|
|
559
|
+
user_time_zone?: string | undefined;
|
|
546
560
|
};
|
|
547
561
|
job_name: string;
|
|
548
562
|
_id?: string | undefined;
|
|
@@ -568,6 +582,7 @@ export declare const zodJobSchema: z.ZodObject<{
|
|
|
568
582
|
end: number | Date;
|
|
569
583
|
};
|
|
570
584
|
_id?: string | undefined;
|
|
585
|
+
timestamp?: number | undefined;
|
|
571
586
|
title?: string | undefined;
|
|
572
587
|
geos?: string[] | undefined;
|
|
573
588
|
query?: string | undefined;
|
|
@@ -575,6 +590,7 @@ export declare const zodJobSchema: z.ZodObject<{
|
|
|
575
590
|
geos_ids?: string[] | undefined;
|
|
576
591
|
user_instructions?: string | undefined;
|
|
577
592
|
thread_id?: string | undefined;
|
|
593
|
+
user_time_zone?: string | undefined;
|
|
578
594
|
};
|
|
579
595
|
job_name: string;
|
|
580
596
|
_id?: string | undefined;
|
package/dist/types.js
CHANGED
|
@@ -127,7 +127,9 @@ exports.zodQuerySchema = zod_1.z.object({
|
|
|
127
127
|
time_range: exports.zodRelativeTimeRangeSchema.or(exports.zodAbsoluteTimeRangeSchema),
|
|
128
128
|
user_instructions: zod_1.z.string().optional(),
|
|
129
129
|
user_id: zod_1.z.string().nonempty('User ID must be provided'),
|
|
130
|
-
thread_id: zod_1.z.string().optional(),
|
|
130
|
+
thread_id: zod_1.z.string().optional(),
|
|
131
|
+
user_time_zone: zod_1.z.string().optional(),
|
|
132
|
+
timestamp: zod_1.z.number().optional(), // creation date
|
|
131
133
|
});
|
|
132
134
|
exports.zodInstructionsSchema = zod_1.z.object({
|
|
133
135
|
_id: zod_1.z.string().optional(),
|
package/index.ts
CHANGED
|
@@ -105,6 +105,8 @@ export const MongoQuerySchema = new Schema(
|
|
|
105
105
|
},
|
|
106
106
|
user_id: { type: String, required: true }, // user identifier
|
|
107
107
|
user_instructions: { type: String }, // optional user instructions for the query
|
|
108
|
+
user_time_zone: { type: String }, // user's timezone
|
|
109
|
+
timestamp: { type: Number, default: Date.now }, // creation date
|
|
108
110
|
},
|
|
109
111
|
{
|
|
110
112
|
versionKey: false,
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "asfur",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.80",
|
|
4
4
|
"description": "SDK for interacting with the Asfur API",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"repository": {
|
|
8
|
-
"url": "https://github.com/
|
|
8
|
+
"url": "git+https://github.com/badgerdefense/asfur.sdk.git",
|
|
9
9
|
"type": "git"
|
|
10
10
|
},
|
|
11
11
|
"scripts": {
|
package/types.ts
CHANGED
|
@@ -139,6 +139,8 @@ export const zodQuerySchema = z.object({
|
|
|
139
139
|
user_instructions: z.string().optional(), // optional user instructions for the query
|
|
140
140
|
user_id: z.string().nonempty('User ID must be provided'), // user identifier
|
|
141
141
|
thread_id: z.string().optional(), // thread ID for the user settings
|
|
142
|
+
user_time_zone: z.string().optional(), // user's timezone
|
|
143
|
+
timestamp: z.number().optional(), // creation date
|
|
142
144
|
});
|
|
143
145
|
|
|
144
146
|
export const zodInstructionsSchema = z.object({
|