asfur 1.0.111 → 1.0.112

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 CHANGED
@@ -489,7 +489,7 @@ export declare const MongoScenarioScoreSchema: Schema<any, import("mongoose").Mo
489
489
  score_type: "ten_score" | "hundred_score" | "percentage_score" | "four_point_scale";
490
490
  scenario_id: string;
491
491
  score: number;
492
- key_evidence: string[];
492
+ key_evidence: any[];
493
493
  text?: string | null | undefined;
494
494
  alert?: any;
495
495
  confidence_level?: string | null | undefined;
@@ -501,7 +501,7 @@ export declare const MongoScenarioScoreSchema: Schema<any, import("mongoose").Mo
501
501
  score_type: "ten_score" | "hundred_score" | "percentage_score" | "four_point_scale";
502
502
  scenario_id: string;
503
503
  score: number;
504
- key_evidence: string[];
504
+ key_evidence: any[];
505
505
  text?: string | null | undefined;
506
506
  alert?: any;
507
507
  confidence_level?: string | null | undefined;
@@ -513,7 +513,7 @@ export declare const MongoScenarioScoreSchema: Schema<any, import("mongoose").Mo
513
513
  score_type: "ten_score" | "hundred_score" | "percentage_score" | "four_point_scale";
514
514
  scenario_id: string;
515
515
  score: number;
516
- key_evidence: string[];
516
+ key_evidence: any[];
517
517
  text?: string | null | undefined;
518
518
  alert?: any;
519
519
  confidence_level?: string | null | undefined;
package/dist/index.js CHANGED
@@ -216,7 +216,7 @@ exports.MongoScenarioScoreSchema = new mongoose_1.Schema({
216
216
  alert: { type: mongoose_1.Schema.Types.Mixed },
217
217
  created_at: { type: Number, default: Date.now },
218
218
  updated_at: { type: Number, default: Date.now },
219
- key_evidence: { type: [String] },
219
+ key_evidence: { type: [mongoose_1.Schema.Types.Mixed] },
220
220
  confidence_level: { type: String }, // optional confidence level for the score (e.g., "high", "medium", "low")
221
221
  }, {
222
222
  versionKey: false,
package/dist/types.d.ts CHANGED
@@ -1240,7 +1240,19 @@ export declare const zodScenarioScoreSchema: z.ZodObject<{
1240
1240
  by_whatsapp?: boolean | undefined;
1241
1241
  phone_numbers?: string[] | undefined;
1242
1242
  }>>;
1243
- key_evidence: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1243
+ key_evidence: z.ZodOptional<z.ZodArray<z.ZodObject<{
1244
+ evidence: z.ZodString;
1245
+ url: z.ZodOptional<z.ZodString>;
1246
+ source_name: z.ZodOptional<z.ZodString>;
1247
+ }, "strip", z.ZodTypeAny, {
1248
+ evidence: string;
1249
+ url?: string | undefined;
1250
+ source_name?: string | undefined;
1251
+ }, {
1252
+ evidence: string;
1253
+ url?: string | undefined;
1254
+ source_name?: string | undefined;
1255
+ }>, "many">>;
1244
1256
  confidence_level: z.ZodOptional<z.ZodString>;
1245
1257
  }, "strip", z.ZodTypeAny, {
1246
1258
  text: string;
@@ -1292,7 +1304,11 @@ export declare const zodScenarioScoreSchema: z.ZodObject<{
1292
1304
  is_sent?: boolean | undefined;
1293
1305
  phone_numbers?: string[] | undefined;
1294
1306
  } | undefined;
1295
- key_evidence?: string[] | undefined;
1307
+ key_evidence?: {
1308
+ evidence: string;
1309
+ url?: string | undefined;
1310
+ source_name?: string | undefined;
1311
+ }[] | undefined;
1296
1312
  confidence_level?: string | undefined;
1297
1313
  }, {
1298
1314
  text: string;
@@ -1344,7 +1360,11 @@ export declare const zodScenarioScoreSchema: z.ZodObject<{
1344
1360
  by_whatsapp?: boolean | undefined;
1345
1361
  phone_numbers?: string[] | undefined;
1346
1362
  } | undefined;
1347
- key_evidence?: string[] | undefined;
1363
+ key_evidence?: {
1364
+ evidence: string;
1365
+ url?: string | undefined;
1366
+ source_name?: string | undefined;
1367
+ }[] | undefined;
1348
1368
  confidence_level?: string | undefined;
1349
1369
  }>;
1350
1370
  /**
package/dist/types.js CHANGED
@@ -259,6 +259,12 @@ exports.zodScenarioScoreSchema = zod_1.z.object({
259
259
  created_at: zod_1.z.number().optional(),
260
260
  updated_at: zod_1.z.number().optional(),
261
261
  alert: exports.zodAlertSchema.optional(),
262
- key_evidence: zod_1.z.array(zod_1.z.string()).optional(),
262
+ key_evidence: zod_1.z
263
+ .array(zod_1.z.object({
264
+ evidence: zod_1.z.string(),
265
+ url: zod_1.z.string().url().optional(),
266
+ source_name: zod_1.z.string().optional(), // optional name of the source for the evidence
267
+ }))
268
+ .optional(),
263
269
  confidence_level: zod_1.z.string().optional(), // optional confidence level for the score (e.g., "high", "medium", "low")
264
270
  });
package/index.ts CHANGED
@@ -243,7 +243,7 @@ export const MongoScenarioScoreSchema = new Schema(
243
243
  alert: { type: Schema.Types.Mixed }, // optional alert configuration for the scenario score
244
244
  created_at: { type: Number, default: Date.now }, // creation date
245
245
  updated_at: { type: Number, default: Date.now }, // last update date
246
- key_evidence: { type: [String] }, // array of key evidence supporting the score
246
+ key_evidence: { type: [Schema.Types.Mixed] }, // array of key evidence supporting the score
247
247
  confidence_level: { type: String }, // optional confidence level for the score (e.g., "high", "medium", "low")
248
248
  },
249
249
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asfur",
3
- "version": "1.0.111",
3
+ "version": "1.0.112",
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
@@ -306,7 +306,15 @@ export const zodScenarioScoreSchema = z.object({
306
306
  created_at: z.number().optional(), // creation date
307
307
  updated_at: z.number().optional(), // last update date
308
308
  alert: zodAlertSchema.optional(), // optional alert configuration for the scenario score
309
- key_evidence: z.array(z.string()).optional(), // array of key evidence supporting the score
309
+ key_evidence: z
310
+ .array(
311
+ z.object({
312
+ evidence: z.string(), // description of the evidence
313
+ url: z.string().url().optional(), // optional URL for the evidence
314
+ source_name: z.string().optional(), // optional name of the source for the evidence
315
+ }),
316
+ )
317
+ .optional(), // array of key evidence supporting the score
310
318
  confidence_level: z.string().optional(), // optional confidence level for the score (e.g., "high", "medium", "low")
311
319
  });
312
320