qualifire 1.1.6 → 1.1.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/lib/types.d.ts CHANGED
@@ -340,71 +340,76 @@ export declare const evaluationResponseSchema: z.ZodObject<{
340
340
  evaluationResults: z.ZodArray<z.ZodObject<{
341
341
  type: z.ZodString;
342
342
  results: z.ZodArray<z.ZodObject<{
343
- claim: z.ZodString;
344
- contradiction: z.ZodBoolean;
345
- passed: z.ZodBoolean;
346
- matchScore: z.ZodNumber;
347
- reason: z.ZodString;
348
- quote: z.ZodString;
349
- includedInContent: z.ZodBoolean;
350
- monitorId: z.ZodString;
351
- createdAt: z.ZodString;
352
- organizationId: z.ZodString;
353
- callId: z.ZodString;
343
+ claim: z.ZodOptional<z.ZodString>;
344
+ contradiction: z.ZodOptional<z.ZodBoolean>;
345
+ passed: z.ZodOptional<z.ZodBoolean>;
346
+ matchScore: z.ZodOptional<z.ZodNumber>;
347
+ reason: z.ZodOptional<z.ZodString>;
348
+ quote: z.ZodOptional<z.ZodString>;
349
+ includedInContent: z.ZodOptional<z.ZodBoolean>;
350
+ monitorId: z.ZodOptional<z.ZodString>;
351
+ createdAt: z.ZodOptional<z.ZodString>;
352
+ organizationId: z.ZodOptional<z.ZodString>;
353
+ callId: z.ZodOptional<z.ZodString>;
354
+ label: z.ZodOptional<z.ZodString>;
354
355
  }, "strip", z.ZodTypeAny, {
355
- claim: string;
356
- contradiction: boolean;
357
- passed: boolean;
358
- matchScore: number;
359
- reason: string;
360
- quote: string;
361
- includedInContent: boolean;
362
- monitorId: string;
363
- createdAt: string;
364
- organizationId: string;
365
- callId: string;
356
+ claim?: string | undefined;
357
+ contradiction?: boolean | undefined;
358
+ passed?: boolean | undefined;
359
+ matchScore?: number | undefined;
360
+ reason?: string | undefined;
361
+ quote?: string | undefined;
362
+ includedInContent?: boolean | undefined;
363
+ monitorId?: string | undefined;
364
+ createdAt?: string | undefined;
365
+ organizationId?: string | undefined;
366
+ callId?: string | undefined;
367
+ label?: string | undefined;
366
368
  }, {
367
- claim: string;
368
- contradiction: boolean;
369
- passed: boolean;
370
- matchScore: number;
371
- reason: string;
372
- quote: string;
373
- includedInContent: boolean;
374
- monitorId: string;
375
- createdAt: string;
376
- organizationId: string;
377
- callId: string;
369
+ claim?: string | undefined;
370
+ contradiction?: boolean | undefined;
371
+ passed?: boolean | undefined;
372
+ matchScore?: number | undefined;
373
+ reason?: string | undefined;
374
+ quote?: string | undefined;
375
+ includedInContent?: boolean | undefined;
376
+ monitorId?: string | undefined;
377
+ createdAt?: string | undefined;
378
+ organizationId?: string | undefined;
379
+ callId?: string | undefined;
380
+ label?: string | undefined;
378
381
  }>, "many">;
379
382
  }, "strip", z.ZodTypeAny, {
380
383
  type: string;
381
384
  results: {
382
- claim: string;
383
- contradiction: boolean;
384
- passed: boolean;
385
- matchScore: number;
386
- reason: string;
387
- quote: string;
388
- includedInContent: boolean;
389
- monitorId: string;
390
- createdAt: string;
391
- organizationId: string;
392
- callId: string;
385
+ claim?: string | undefined;
386
+ contradiction?: boolean | undefined;
387
+ passed?: boolean | undefined;
388
+ matchScore?: number | undefined;
389
+ reason?: string | undefined;
390
+ quote?: string | undefined;
391
+ includedInContent?: boolean | undefined;
392
+ monitorId?: string | undefined;
393
+ createdAt?: string | undefined;
394
+ organizationId?: string | undefined;
395
+ callId?: string | undefined;
396
+ label?: string | undefined;
393
397
  }[];
394
398
  }, {
395
399
  type: string;
396
400
  results: {
397
- claim: string;
398
- contradiction: boolean;
399
- passed: boolean;
400
- matchScore: number;
401
- reason: string;
402
- quote: string;
403
- includedInContent: boolean;
404
- monitorId: string;
405
- createdAt: string;
406
- organizationId: string;
407
- callId: string;
401
+ claim?: string | undefined;
402
+ contradiction?: boolean | undefined;
403
+ passed?: boolean | undefined;
404
+ matchScore?: number | undefined;
405
+ reason?: string | undefined;
406
+ quote?: string | undefined;
407
+ includedInContent?: boolean | undefined;
408
+ monitorId?: string | undefined;
409
+ createdAt?: string | undefined;
410
+ organizationId?: string | undefined;
411
+ callId?: string | undefined;
412
+ label?: string | undefined;
408
413
  }[];
409
414
  }>, "many">;
410
415
  score: z.ZodNumber;
@@ -425,17 +430,18 @@ export declare const evaluationResponseSchema: z.ZodObject<{
425
430
  evaluationResults: {
426
431
  type: string;
427
432
  results: {
428
- claim: string;
429
- contradiction: boolean;
430
- passed: boolean;
431
- matchScore: number;
432
- reason: string;
433
- quote: string;
434
- includedInContent: boolean;
435
- monitorId: string;
436
- createdAt: string;
437
- organizationId: string;
438
- callId: string;
433
+ claim?: string | undefined;
434
+ contradiction?: boolean | undefined;
435
+ passed?: boolean | undefined;
436
+ matchScore?: number | undefined;
437
+ reason?: string | undefined;
438
+ quote?: string | undefined;
439
+ includedInContent?: boolean | undefined;
440
+ monitorId?: string | undefined;
441
+ createdAt?: string | undefined;
442
+ organizationId?: string | undefined;
443
+ callId?: string | undefined;
444
+ label?: string | undefined;
439
445
  }[];
440
446
  }[];
441
447
  score: number;
@@ -449,17 +455,18 @@ export declare const evaluationResponseSchema: z.ZodObject<{
449
455
  evaluationResults: {
450
456
  type: string;
451
457
  results: {
452
- claim: string;
453
- contradiction: boolean;
454
- passed: boolean;
455
- matchScore: number;
456
- reason: string;
457
- quote: string;
458
- includedInContent: boolean;
459
- monitorId: string;
460
- createdAt: string;
461
- organizationId: string;
462
- callId: string;
458
+ claim?: string | undefined;
459
+ contradiction?: boolean | undefined;
460
+ passed?: boolean | undefined;
461
+ matchScore?: number | undefined;
462
+ reason?: string | undefined;
463
+ quote?: string | undefined;
464
+ includedInContent?: boolean | undefined;
465
+ monitorId?: string | undefined;
466
+ createdAt?: string | undefined;
467
+ organizationId?: string | undefined;
468
+ callId?: string | undefined;
469
+ label?: string | undefined;
463
470
  }[];
464
471
  }[];
465
472
  score: number;
package/lib/types.js CHANGED
@@ -35,17 +35,18 @@ exports.evaluationSchema = zod_1.z.object({
35
35
  output: exports.outputSchema,
36
36
  });
37
37
  const resultSchema = zod_1.z.object({
38
- claim: zod_1.z.string(),
39
- contradiction: zod_1.z.boolean(),
40
- passed: zod_1.z.boolean(),
41
- matchScore: zod_1.z.number(),
42
- reason: zod_1.z.string(),
43
- quote: zod_1.z.string(),
44
- includedInContent: zod_1.z.boolean(),
45
- monitorId: zod_1.z.string(),
46
- createdAt: zod_1.z.string(),
47
- organizationId: zod_1.z.string(),
48
- callId: zod_1.z.string(),
38
+ claim: zod_1.z.string().optional(),
39
+ contradiction: zod_1.z.boolean().optional(),
40
+ passed: zod_1.z.boolean().optional(),
41
+ matchScore: zod_1.z.number().optional(),
42
+ reason: zod_1.z.string().optional(),
43
+ quote: zod_1.z.string().optional(),
44
+ includedInContent: zod_1.z.boolean().optional(),
45
+ monitorId: zod_1.z.string().optional(),
46
+ createdAt: zod_1.z.string().optional(),
47
+ organizationId: zod_1.z.string().optional(),
48
+ callId: zod_1.z.string().optional(),
49
+ label: zod_1.z.string().optional(),
49
50
  });
50
51
  const evaluationResultSchema = zod_1.z.object({
51
52
  type: zod_1.z.string(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qualifire",
3
- "version": "1.1.6",
3
+ "version": "1.1.8",
4
4
  "description": "Qualifire client SDK",
5
5
  "main": "./lib/index.js",
6
6
  "files": [