asfur 1.0.74 → 1.0.79
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 +3 -0
- package/dist/index.js +2 -1
- package/dist/types.d.ts +8 -0
- package/dist/types.js +2 -1
- package/index.ts +1 -0
- package/package.json +2 -2
- package/types.ts +1 -0
package/dist/index.d.ts
CHANGED
|
@@ -225,6 +225,7 @@ export declare const MongoQuerySchema: Schema<any, import("mongoose").Model<any,
|
|
|
225
225
|
title?: string | null | undefined;
|
|
226
226
|
query?: string | null | undefined;
|
|
227
227
|
user_instructions?: string | null | undefined;
|
|
228
|
+
user_time_zone?: string | null | undefined;
|
|
228
229
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
229
230
|
geos: string[];
|
|
230
231
|
user_id: string;
|
|
@@ -234,6 +235,7 @@ export declare const MongoQuerySchema: Schema<any, import("mongoose").Model<any,
|
|
|
234
235
|
title?: string | null | undefined;
|
|
235
236
|
query?: string | null | undefined;
|
|
236
237
|
user_instructions?: string | null | undefined;
|
|
238
|
+
user_time_zone?: string | null | undefined;
|
|
237
239
|
}>, {}> & import("mongoose").FlatRecord<{
|
|
238
240
|
geos: string[];
|
|
239
241
|
user_id: string;
|
|
@@ -243,6 +245,7 @@ export declare const MongoQuerySchema: Schema<any, import("mongoose").Model<any,
|
|
|
243
245
|
title?: string | null | undefined;
|
|
244
246
|
query?: string | null | undefined;
|
|
245
247
|
user_instructions?: string | null | undefined;
|
|
248
|
+
user_time_zone?: string | null | undefined;
|
|
246
249
|
}> & {
|
|
247
250
|
_id: import("mongoose").Types.ObjectId;
|
|
248
251
|
} & {
|
package/dist/index.js
CHANGED
|
@@ -106,7 +106,8 @@ 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 }, // user's timezone
|
|
110
111
|
}, {
|
|
111
112
|
versionKey: false,
|
|
112
113
|
toJSON: { virtuals: true },
|
package/dist/types.d.ts
CHANGED
|
@@ -280,6 +280,7 @@ 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>;
|
|
283
284
|
}, "strip", z.ZodTypeAny, {
|
|
284
285
|
user_id: string;
|
|
285
286
|
time_range: {
|
|
@@ -298,6 +299,7 @@ export declare const zodQuerySchema: z.ZodObject<{
|
|
|
298
299
|
geos_ids?: string[] | undefined;
|
|
299
300
|
user_instructions?: string | undefined;
|
|
300
301
|
thread_id?: string | undefined;
|
|
302
|
+
user_time_zone?: string | undefined;
|
|
301
303
|
}, {
|
|
302
304
|
user_id: string;
|
|
303
305
|
time_range: {
|
|
@@ -316,6 +318,7 @@ export declare const zodQuerySchema: z.ZodObject<{
|
|
|
316
318
|
geos_ids?: string[] | undefined;
|
|
317
319
|
user_instructions?: string | undefined;
|
|
318
320
|
thread_id?: string | undefined;
|
|
321
|
+
user_time_zone?: string | undefined;
|
|
319
322
|
}>;
|
|
320
323
|
export declare const zodInstructionsSchema: z.ZodObject<{
|
|
321
324
|
_id: z.ZodOptional<z.ZodString>;
|
|
@@ -481,6 +484,7 @@ export declare const zodJobSchema: z.ZodObject<{
|
|
|
481
484
|
user_instructions: z.ZodOptional<z.ZodString>;
|
|
482
485
|
user_id: z.ZodString;
|
|
483
486
|
thread_id: z.ZodOptional<z.ZodString>;
|
|
487
|
+
user_time_zone: z.ZodOptional<z.ZodString>;
|
|
484
488
|
}, "strip", z.ZodTypeAny, {
|
|
485
489
|
user_id: string;
|
|
486
490
|
time_range: {
|
|
@@ -499,6 +503,7 @@ export declare const zodJobSchema: z.ZodObject<{
|
|
|
499
503
|
geos_ids?: string[] | undefined;
|
|
500
504
|
user_instructions?: string | undefined;
|
|
501
505
|
thread_id?: string | undefined;
|
|
506
|
+
user_time_zone?: string | undefined;
|
|
502
507
|
}, {
|
|
503
508
|
user_id: string;
|
|
504
509
|
time_range: {
|
|
@@ -517,6 +522,7 @@ export declare const zodJobSchema: z.ZodObject<{
|
|
|
517
522
|
geos_ids?: string[] | undefined;
|
|
518
523
|
user_instructions?: string | undefined;
|
|
519
524
|
thread_id?: string | undefined;
|
|
525
|
+
user_time_zone?: string | undefined;
|
|
520
526
|
}>;
|
|
521
527
|
active_until: z.ZodOptional<z.ZodUnion<[z.ZodDate, z.ZodNumber]>>;
|
|
522
528
|
conversation_id: z.ZodOptional<z.ZodString>;
|
|
@@ -543,6 +549,7 @@ export declare const zodJobSchema: z.ZodObject<{
|
|
|
543
549
|
geos_ids?: string[] | undefined;
|
|
544
550
|
user_instructions?: string | undefined;
|
|
545
551
|
thread_id?: string | undefined;
|
|
552
|
+
user_time_zone?: string | undefined;
|
|
546
553
|
};
|
|
547
554
|
job_name: string;
|
|
548
555
|
_id?: string | undefined;
|
|
@@ -575,6 +582,7 @@ export declare const zodJobSchema: z.ZodObject<{
|
|
|
575
582
|
geos_ids?: string[] | undefined;
|
|
576
583
|
user_instructions?: string | undefined;
|
|
577
584
|
thread_id?: string | undefined;
|
|
585
|
+
user_time_zone?: string | undefined;
|
|
578
586
|
};
|
|
579
587
|
job_name: string;
|
|
580
588
|
_id?: string | undefined;
|
package/dist/types.js
CHANGED
|
@@ -127,7 +127,8 @@ 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(), // user's timezone
|
|
131
132
|
});
|
|
132
133
|
exports.zodInstructionsSchema = zod_1.z.object({
|
|
133
134
|
_id: zod_1.z.string().optional(),
|
package/index.ts
CHANGED
|
@@ -105,6 +105,7 @@ 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
|
|
108
109
|
},
|
|
109
110
|
{
|
|
110
111
|
versionKey: false,
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "asfur",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.79",
|
|
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,7 @@ 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
|
|
142
143
|
});
|
|
143
144
|
|
|
144
145
|
export const zodInstructionsSchema = z.object({
|