asfur 1.0.99 → 1.0.101
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 +4 -0
- package/dist/types.js +9 -6
- package/index.ts +1 -0
- package/package.json +1 -1
- package/types.ts +8 -4
package/dist/index.d.ts
CHANGED
|
@@ -122,6 +122,7 @@ export declare const MongoUserSettingsSchema: Schema<any, import("mongoose").Mod
|
|
|
122
122
|
sources: string[];
|
|
123
123
|
geos: string[];
|
|
124
124
|
user_id: string;
|
|
125
|
+
requested_content: string[];
|
|
125
126
|
created_at: NativeDate;
|
|
126
127
|
updated_at: NativeDate;
|
|
127
128
|
has_jobs_access: boolean;
|
|
@@ -137,6 +138,7 @@ export declare const MongoUserSettingsSchema: Schema<any, import("mongoose").Mod
|
|
|
137
138
|
sources: string[];
|
|
138
139
|
geos: string[];
|
|
139
140
|
user_id: string;
|
|
141
|
+
requested_content: string[];
|
|
140
142
|
created_at: NativeDate;
|
|
141
143
|
updated_at: NativeDate;
|
|
142
144
|
has_jobs_access: boolean;
|
|
@@ -152,6 +154,7 @@ export declare const MongoUserSettingsSchema: Schema<any, import("mongoose").Mod
|
|
|
152
154
|
sources: string[];
|
|
153
155
|
geos: string[];
|
|
154
156
|
user_id: string;
|
|
157
|
+
requested_content: string[];
|
|
155
158
|
created_at: NativeDate;
|
|
156
159
|
updated_at: NativeDate;
|
|
157
160
|
has_jobs_access: boolean;
|
package/dist/index.js
CHANGED
|
@@ -70,7 +70,8 @@ exports.MongoUserSettingsSchema = new mongoose_1.Schema({
|
|
|
70
70
|
},
|
|
71
71
|
logo_url: { type: String },
|
|
72
72
|
emails: { type: String },
|
|
73
|
-
name: { type: String },
|
|
73
|
+
name: { type: String },
|
|
74
|
+
requested_content: { type: [String], default: ['text'] }, // default requested content types
|
|
74
75
|
}, {
|
|
75
76
|
versionKey: false,
|
|
76
77
|
toJSON: { virtuals: true },
|
package/dist/types.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export interface GeoSelectionByRegion {
|
|
|
7
7
|
[region: string]: GeoSelectionWithRegion[];
|
|
8
8
|
}
|
|
9
9
|
export declare const relativeTimeRangeList: readonly ["last_30_minutes", "last_1_hour", "last_2_hours", "last_6_hours", "last_12_hours", "last_24_hours", "last_48_hours", "last_72_hours", "last_week"];
|
|
10
|
+
export declare const requestedContentList: readonly ["text", "table", "heatmap"];
|
|
10
11
|
export declare const zodRelativeTimeRangeSchema: z.ZodObject<{
|
|
11
12
|
type: z.ZodLiteral<"relative">;
|
|
12
13
|
time: z.ZodEnum<["last_30_minutes", "last_1_hour", "last_2_hours", "last_6_hours", "last_12_hours", "last_24_hours", "last_48_hours", "last_72_hours", "last_week"]>;
|
|
@@ -167,6 +168,7 @@ export declare const zodUserSettingsSchema: z.ZodObject<{
|
|
|
167
168
|
logo_url: z.ZodOptional<z.ZodString>;
|
|
168
169
|
emails: z.ZodOptional<z.ZodString>;
|
|
169
170
|
name: z.ZodOptional<z.ZodString>;
|
|
171
|
+
requested_content: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<["text", "table", "heatmap"]>, "many">>>;
|
|
170
172
|
}, "strip", z.ZodTypeAny, {
|
|
171
173
|
status: "active" | "inactive";
|
|
172
174
|
sources: string[];
|
|
@@ -179,6 +181,7 @@ export declare const zodUserSettingsSchema: z.ZodObject<{
|
|
|
179
181
|
end: number;
|
|
180
182
|
};
|
|
181
183
|
user_id: string;
|
|
184
|
+
requested_content: ("text" | "table" | "heatmap")[];
|
|
182
185
|
has_jobs_access: boolean;
|
|
183
186
|
active_jobs_limit: number;
|
|
184
187
|
_id?: string | undefined;
|
|
@@ -204,6 +207,7 @@ export declare const zodUserSettingsSchema: z.ZodObject<{
|
|
|
204
207
|
status?: "active" | "inactive" | undefined;
|
|
205
208
|
_id?: string | undefined;
|
|
206
209
|
geos?: string[] | undefined;
|
|
210
|
+
requested_content?: ("text" | "table" | "heatmap")[] | undefined;
|
|
207
211
|
created_at?: number | Date | undefined;
|
|
208
212
|
updated_at?: number | Date | undefined;
|
|
209
213
|
thread_id?: string | undefined;
|
package/dist/types.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.zodScenarioScoreSchema = exports.zodScenarioSchema = exports.scenarioScoreTypeList = exports.zodNotificationSchema = exports.notificationPriorityList = exports.zodReportSchema = exports.reportProcessStatusList = exports.zodApiKeySchema = exports.zodCronScheduleResponseSchema = exports.zodMessageSchema = exports.zodHeatmapSchema = exports.zodJobSchema = exports.zodConversationSchema = exports.zodUserSettingsSchema = exports.zodInstructionsSchema = exports.zodQuerySchema = exports.zodAbsoluteTimeRangeSchema = exports.zodRelativeTimeRangeSchema = exports.relativeTimeRangeList = exports.jobRunStatusList = exports.generalStatusList = void 0;
|
|
3
|
+
exports.zodScenarioScoreSchema = exports.zodScenarioSchema = exports.scenarioScoreTypeList = exports.zodNotificationSchema = exports.notificationPriorityList = exports.zodReportSchema = exports.reportProcessStatusList = exports.zodApiKeySchema = exports.zodCronScheduleResponseSchema = exports.zodMessageSchema = exports.zodHeatmapSchema = exports.zodJobSchema = exports.zodConversationSchema = exports.zodUserSettingsSchema = exports.zodInstructionsSchema = exports.zodQuerySchema = exports.zodAbsoluteTimeRangeSchema = exports.zodRelativeTimeRangeSchema = exports.requestedContentList = exports.relativeTimeRangeList = exports.jobRunStatusList = exports.generalStatusList = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.generalStatusList = ['active', 'inactive'];
|
|
6
6
|
exports.jobRunStatusList = ['done', 'failed', 'in_progress'];
|
|
@@ -15,6 +15,7 @@ exports.relativeTimeRangeList = [
|
|
|
15
15
|
'last_72_hours',
|
|
16
16
|
'last_week',
|
|
17
17
|
];
|
|
18
|
+
exports.requestedContentList = ['text', 'table', 'heatmap'];
|
|
18
19
|
exports.zodRelativeTimeRangeSchema = zod_1.z.object({
|
|
19
20
|
type: zod_1.z.literal('relative'),
|
|
20
21
|
time: zod_1.z.enum(exports.relativeTimeRangeList),
|
|
@@ -38,9 +39,7 @@ exports.zodQuerySchema = zod_1.z.object({
|
|
|
38
39
|
user_time_zone: zod_1.z.string().optional(),
|
|
39
40
|
timestamp: zod_1.z.number().optional(),
|
|
40
41
|
job_id: zod_1.z.string().optional(),
|
|
41
|
-
requested_content: zod_1.z
|
|
42
|
-
.array(zod_1.z.enum(['text', 'table', 'heatmap']))
|
|
43
|
-
.optional(), // array of requested content types
|
|
42
|
+
requested_content: zod_1.z.array(zod_1.z.enum(exports.requestedContentList)).optional(), // array of requested content types
|
|
44
43
|
});
|
|
45
44
|
exports.zodInstructionsSchema = zod_1.z.object({
|
|
46
45
|
_id: zod_1.z.string().optional(),
|
|
@@ -64,7 +63,11 @@ exports.zodUserSettingsSchema = zod_1.z.object({
|
|
|
64
63
|
status: zod_1.z.enum(exports.generalStatusList).optional().default('active'),
|
|
65
64
|
logo_url: zod_1.z.string().url().optional(),
|
|
66
65
|
emails: zod_1.z.string().email().optional(),
|
|
67
|
-
name: zod_1.z.string().optional(),
|
|
66
|
+
name: zod_1.z.string().optional(),
|
|
67
|
+
requested_content: zod_1.z
|
|
68
|
+
.array(zod_1.z.enum(exports.requestedContentList))
|
|
69
|
+
.optional()
|
|
70
|
+
.default(['text']), // default requested content types
|
|
68
71
|
});
|
|
69
72
|
exports.zodConversationSchema = zod_1.z.object({
|
|
70
73
|
_id: zod_1.z.string().optional(),
|
|
@@ -145,7 +148,7 @@ exports.zodMessageSchema = zod_1.z.object({
|
|
|
145
148
|
job_id: zod_1.z.string().optional(),
|
|
146
149
|
conversation_id: zod_1.z.string(),
|
|
147
150
|
sender: zod_1.z.enum(['user', 'assistant', 'system']),
|
|
148
|
-
requested_content: zod_1.z.array(zod_1.z.enum(
|
|
151
|
+
requested_content: zod_1.z.array(zod_1.z.enum(exports.requestedContentList)).optional(),
|
|
149
152
|
content: zod_1.z.object({
|
|
150
153
|
text: zod_1.z.string().optional(),
|
|
151
154
|
table: zod_1.z.string().optional(),
|
package/index.ts
CHANGED
|
@@ -70,6 +70,7 @@ export const MongoUserSettingsSchema = new Schema(
|
|
|
70
70
|
logo_url: { type: String }, // optional logo URL for the user
|
|
71
71
|
emails: { type: String }, // optional email for the user
|
|
72
72
|
name: { type: String }, // optional name for the user
|
|
73
|
+
requested_content: { type: [String], default: ['text'] }, // default requested content types
|
|
73
74
|
},
|
|
74
75
|
{
|
|
75
76
|
versionKey: false,
|
package/package.json
CHANGED
package/types.ts
CHANGED
|
@@ -38,6 +38,8 @@ export const relativeTimeRangeList = [
|
|
|
38
38
|
'last_week',
|
|
39
39
|
] as const;
|
|
40
40
|
|
|
41
|
+
export const requestedContentList = ['text', 'table', 'heatmap'] as const;
|
|
42
|
+
|
|
41
43
|
export const zodRelativeTimeRangeSchema = z.object({
|
|
42
44
|
type: z.literal('relative'),
|
|
43
45
|
time: z.enum(relativeTimeRangeList),
|
|
@@ -63,9 +65,7 @@ export const zodQuerySchema = z.object({
|
|
|
63
65
|
user_time_zone: z.string().optional(), // user's timezone
|
|
64
66
|
timestamp: z.number().optional(), // creation date
|
|
65
67
|
job_id: z.string().optional(), // optional job ID associated with the query
|
|
66
|
-
requested_content: z
|
|
67
|
-
.array(z.enum(['text', 'table', 'heatmap']))
|
|
68
|
-
.optional(), // array of requested content types
|
|
68
|
+
requested_content: z.array(z.enum(requestedContentList)).optional(), // array of requested content types
|
|
69
69
|
});
|
|
70
70
|
|
|
71
71
|
export const zodInstructionsSchema = z.object({
|
|
@@ -92,6 +92,10 @@ export const zodUserSettingsSchema = z.object({
|
|
|
92
92
|
logo_url: z.string().url().optional(), // optional logo URL for the user
|
|
93
93
|
emails: z.string().email().optional(), // optional email for the user
|
|
94
94
|
name: z.string().optional(), // optional name for the user
|
|
95
|
+
requested_content: z
|
|
96
|
+
.array(z.enum(requestedContentList))
|
|
97
|
+
.optional()
|
|
98
|
+
.default(['text']), // default requested content types
|
|
95
99
|
});
|
|
96
100
|
|
|
97
101
|
export const zodConversationSchema = z.object({
|
|
@@ -181,7 +185,7 @@ export const zodMessageSchema = z.object({
|
|
|
181
185
|
job_id: z.string().optional(), // optional job ID associated with the message
|
|
182
186
|
conversation_id: z.string(), // conversation identifier
|
|
183
187
|
sender: z.enum(['user', 'assistant', 'system']), // sender of the message
|
|
184
|
-
requested_content: z.array(z.enum(
|
|
188
|
+
requested_content: z.array(z.enum(requestedContentList)).optional(), // array of user messages
|
|
185
189
|
content: z.object({
|
|
186
190
|
text: z.string().optional(),
|
|
187
191
|
table: z.string().optional(),
|