evo360-types 1.3.596 → 1.3.598
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.
|
@@ -10,6 +10,7 @@ export declare const zCsqAlertLifecycleSchema: z.ZodEnum<["open", "resolved"]>;
|
|
|
10
10
|
export declare const zCsqVerificationStateSchema: z.ZodEnum<["pending", "confirmed_ok", "confirmed", "inconclusive"]>;
|
|
11
11
|
export declare const zCsqRunStatusSchema: z.ZodEnum<["running", "done", "failed", "quarantined"]>;
|
|
12
12
|
export declare const zCsqPhaseSchema: z.ZodEnum<["f0", "f1"]>;
|
|
13
|
+
export declare const zCsqLlmConnectionSourceSchema: z.ZodEnum<["tenant", "legacy_channel", "platform_default", "constant", "kill_switch"]>;
|
|
13
14
|
export declare const zCsqReviewVerdictSchema: z.ZodEnum<["agree", "disagree"]>;
|
|
14
15
|
export declare const zCsqAuthorKindSchema: z.ZodEnum<["lead", "human", "automation", "hubia", "event", "note"]>;
|
|
15
16
|
/** Escala por criterio: 0 / 50 / 100 / N/A. */
|
|
@@ -6438,6 +6439,10 @@ export declare const zCsqLeadReportSchema: z.ZodObject<{
|
|
|
6438
6439
|
rounds?: number | undefined;
|
|
6439
6440
|
}>>;
|
|
6440
6441
|
cost_usd_est: z.ZodNullable<z.ZodNumber>;
|
|
6442
|
+
llm_provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6443
|
+
llm_location: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6444
|
+
llm_connection_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6445
|
+
llm_connection_source: z.ZodOptional<z.ZodNullable<z.ZodEnum<["tenant", "legacy_channel", "platform_default", "constant", "kill_switch"]>>>;
|
|
6441
6446
|
trail: z.ZodArray<z.ZodObject<{
|
|
6442
6447
|
ticket_id: z.ZodString;
|
|
6443
6448
|
closed_at: z.ZodEffects<z.ZodDate, Date, unknown>;
|
|
@@ -8455,6 +8460,10 @@ export declare const zCsqLeadReportSchema: z.ZodObject<{
|
|
|
8455
8460
|
rounds?: number | undefined;
|
|
8456
8461
|
}>>;
|
|
8457
8462
|
cost_usd_est: z.ZodNullable<z.ZodNumber>;
|
|
8463
|
+
llm_provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8464
|
+
llm_location: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8465
|
+
llm_connection_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8466
|
+
llm_connection_source: z.ZodOptional<z.ZodNullable<z.ZodEnum<["tenant", "legacy_channel", "platform_default", "constant", "kill_switch"]>>>;
|
|
8458
8467
|
trail: z.ZodArray<z.ZodObject<{
|
|
8459
8468
|
ticket_id: z.ZodString;
|
|
8460
8469
|
closed_at: z.ZodEffects<z.ZodDate, Date, unknown>;
|
|
@@ -10472,6 +10481,10 @@ export declare const zCsqLeadReportSchema: z.ZodObject<{
|
|
|
10472
10481
|
rounds?: number | undefined;
|
|
10473
10482
|
}>>;
|
|
10474
10483
|
cost_usd_est: z.ZodNullable<z.ZodNumber>;
|
|
10484
|
+
llm_provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10485
|
+
llm_location: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10486
|
+
llm_connection_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10487
|
+
llm_connection_source: z.ZodOptional<z.ZodNullable<z.ZodEnum<["tenant", "legacy_channel", "platform_default", "constant", "kill_switch"]>>>;
|
|
10475
10488
|
trail: z.ZodArray<z.ZodObject<{
|
|
10476
10489
|
ticket_id: z.ZodString;
|
|
10477
10490
|
closed_at: z.ZodEffects<z.ZodDate, Date, unknown>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.zCsqLeadReportSchema = exports.zCsqRunSchema = exports.zCsqAlertCountsSchema = exports.zCsqEligibilitySchema = exports.zCsqEvaluatedForSchema = exports.zCsqReportHeaderSchema = exports.zCsqReportAttendantSchema = exports.zCsqReportPatientSchema = exports.zCsqReportLeadSchema = exports.zCsqSystemFactsSchema = exports.zCsqBillingFactSchema = void 0;
|
|
3
|
+
exports.zCsqOverlapFactSchema = exports.zCsqAppointmentFactSchema = exports.zCsqJudgeOutputSchema = exports.zCsqLlmUsageSchema = exports.zCsqTranscriptMessageSchema = exports.zCsqTicketSummarySchema = exports.zCsqTrailEntrySchema = exports.zCsqReviewSchema = exports.zCsqDataQualitySchema = exports.zCsqCoverageSchema = exports.zCsqContributorSchema = exports.zCsqEvaluationSchema = exports.zCsqPillarScoreSchema = exports.zCsqPillarCoverageSchema = exports.zCsqCriterionScoreSchema = exports.zCsqCrossCheckSchema = exports.zCsqClaimTypeSchema = exports.zCsqClaimSchema = exports.zCsqClaimPriceInformedSchema = exports.zCsqClaimPatientStatusSchema = exports.zCsqClaimFirstConcreteOfferSchema = exports.zCsqClaimQuestionRequiresAnswerSchema = exports.zCsqClaimOutcomeSchema = exports.zCsqClaimRequiredDataSchema = exports.zCsqClaimDataCollectedSchema = exports.zCsqClaimPromiseSchema = exports.zCsqClaimAppointmentInformedSchema = exports.zCsqLeadStateSchema = exports.zCsqLeadStateListFieldSchema = exports.zCsqLeadStateFieldSchema = exports.zCsqIndicatorsSchema = exports.zCsqIndicatorsSetSchema = exports.zCsqAlertSchema = exports.zCsqEvidenceSchema = exports.zCsqAlertSubtypeSchema = exports.zCsqAlertCodeSchema = exports.zCsqPillarCodeSchema = exports.zCsqCriterionScoreValueSchema = exports.zCsqAuthorKindSchema = exports.zCsqReviewVerdictSchema = exports.zCsqLlmConnectionSourceSchema = exports.zCsqPhaseSchema = exports.zCsqRunStatusSchema = exports.zCsqVerificationStateSchema = exports.zCsqAlertLifecycleSchema = exports.zCsqAlertScopeSchema = exports.zCsqAlertSourceSchema = exports.zCsqSeveritySchema = exports.zCsqStatusSchema = exports.zCsqModeSchema = void 0;
|
|
4
|
+
exports.zCsqLeadReportSchema = exports.zCsqRunSchema = exports.zCsqAlertCountsSchema = exports.zCsqEligibilitySchema = exports.zCsqEvaluatedForSchema = exports.zCsqReportHeaderSchema = exports.zCsqReportAttendantSchema = exports.zCsqReportPatientSchema = exports.zCsqReportLeadSchema = exports.zCsqSystemFactsSchema = exports.zCsqBillingFactSchema = exports.zCsqPreviousTicketFactSchema = void 0;
|
|
5
5
|
const zod_1 = require("zod");
|
|
6
6
|
const zod_schemas_1 = require("../shared/zod-schemas");
|
|
7
7
|
// Schemas zod do CSQ 2.0 (feat-154). As interfaces TS equivalentes ficam em
|
|
@@ -36,6 +36,13 @@ exports.zCsqRunStatusSchema = zod_1.z.enum([
|
|
|
36
36
|
"quarantined",
|
|
37
37
|
]);
|
|
38
38
|
exports.zCsqPhaseSchema = zod_1.z.enum(["f0", "f1"]);
|
|
39
|
+
exports.zCsqLlmConnectionSourceSchema = zod_1.z.enum([
|
|
40
|
+
"tenant",
|
|
41
|
+
"legacy_channel",
|
|
42
|
+
"platform_default",
|
|
43
|
+
"constant",
|
|
44
|
+
"kill_switch",
|
|
45
|
+
]);
|
|
39
46
|
exports.zCsqReviewVerdictSchema = zod_1.z.enum(["agree", "disagree"]);
|
|
40
47
|
exports.zCsqAuthorKindSchema = zod_1.z.enum([
|
|
41
48
|
"lead",
|
|
@@ -549,6 +556,10 @@ exports.zCsqLeadReportSchema = zod_schemas_1.zFireDocSchema
|
|
|
549
556
|
dictionary_snapshot_hash: zod_1.z.string().nullable(),
|
|
550
557
|
llm_usage: exports.zCsqLlmUsageSchema.nullable(),
|
|
551
558
|
cost_usd_est: zod_1.z.number().nullable(),
|
|
559
|
+
llm_provider: zod_1.z.string().nullable().optional(),
|
|
560
|
+
llm_location: zod_1.z.string().nullable().optional(),
|
|
561
|
+
llm_connection_id: zod_1.z.string().nullable().optional(),
|
|
562
|
+
llm_connection_source: exports.zCsqLlmConnectionSourceSchema.nullable().optional(),
|
|
552
563
|
trail: zod_1.z.array(exports.zCsqTrailEntrySchema),
|
|
553
564
|
judge_error: zod_1.z.string().optional(),
|
|
554
565
|
})
|
|
@@ -45,6 +45,14 @@ export const zCsqRunStatusSchema = z.enum([
|
|
|
45
45
|
|
|
46
46
|
export const zCsqPhaseSchema = z.enum(["f0", "f1"]);
|
|
47
47
|
|
|
48
|
+
export const zCsqLlmConnectionSourceSchema = z.enum([
|
|
49
|
+
"tenant",
|
|
50
|
+
"legacy_channel",
|
|
51
|
+
"platform_default",
|
|
52
|
+
"constant",
|
|
53
|
+
"kill_switch",
|
|
54
|
+
]);
|
|
55
|
+
|
|
48
56
|
export const zCsqReviewVerdictSchema = z.enum(["agree", "disagree"]);
|
|
49
57
|
|
|
50
58
|
export const zCsqAuthorKindSchema = z.enum([
|
|
@@ -630,6 +638,10 @@ export const zCsqLeadReportSchema = zFireDocSchema
|
|
|
630
638
|
|
|
631
639
|
llm_usage: zCsqLlmUsageSchema.nullable(),
|
|
632
640
|
cost_usd_est: z.number().nullable(),
|
|
641
|
+
llm_provider: z.string().nullable().optional(),
|
|
642
|
+
llm_location: z.string().nullable().optional(),
|
|
643
|
+
llm_connection_id: z.string().nullable().optional(),
|
|
644
|
+
llm_connection_source: zCsqLlmConnectionSourceSchema.nullable().optional(),
|
|
633
645
|
trail: z.array(zCsqTrailEntrySchema),
|
|
634
646
|
judge_error: z.string().optional(),
|
|
635
647
|
})
|
|
@@ -46,6 +46,12 @@ export type CsqReviewVerdict = "agree" | "disagree";
|
|
|
46
46
|
/** Fase do pipeline: `f0` = so indicadores + alertas deterministicos;
|
|
47
47
|
* `f1` = com o juiz LLM. */
|
|
48
48
|
export type CsqPhase = "f0" | "f1";
|
|
49
|
+
/** De onde veio a conexao de LLM do juiz (feat-191 §2.3), na ordem de
|
|
50
|
+
* resolucao: `tenant` (`judge_connection_id`), `legacy_channel`
|
|
51
|
+
* (`channel_config.csq_judge_model`), `platform_default`, `constant`; e
|
|
52
|
+
* `kill_switch` quando `/platform/evo-csq.llm.transport_kill_switch` forca a
|
|
53
|
+
* Anthropic direta. */
|
|
54
|
+
export type CsqLlmConnectionSource = "tenant" | "legacy_channel" | "platform_default" | "constant" | "kill_switch";
|
|
49
55
|
/** Autor de uma mensagem da transcricao entregue ao juiz. */
|
|
50
56
|
export type CsqAuthorKind = "lead" | "human" | "automation" | "hubia" | "event" | "note";
|
|
51
57
|
/** Codigos de alerta v1. Os subtipos de `POLITICA_VIOLADA` e
|
|
@@ -640,6 +646,13 @@ export interface ICsqLeadReport extends IFireDoc {
|
|
|
640
646
|
dictionary_snapshot_hash: string | null;
|
|
641
647
|
llm_usage: ICsqLlmUsage | null;
|
|
642
648
|
cost_usd_est: number | null;
|
|
649
|
+
/** Provedor do juiz (`vertex-anthropic`, `anthropic` no kill-switch). Null na F0. */
|
|
650
|
+
llm_provider?: string | null;
|
|
651
|
+
/** Regiao do provedor (`us`, `eu`); null na API direta e na F0. */
|
|
652
|
+
llm_location?: string | null;
|
|
653
|
+
/** `/platform/evo-csq/llm-connections/{id}` usada; null quando sintetica. */
|
|
654
|
+
llm_connection_id?: string | null;
|
|
655
|
+
llm_connection_source?: CsqLlmConnectionSource | null;
|
|
643
656
|
trail: ICsqTrailEntry[];
|
|
644
657
|
judge_error?: string;
|
|
645
658
|
}
|
|
@@ -83,6 +83,18 @@ export type CsqReviewVerdict = "agree" | "disagree";
|
|
|
83
83
|
* `f1` = com o juiz LLM. */
|
|
84
84
|
export type CsqPhase = "f0" | "f1";
|
|
85
85
|
|
|
86
|
+
/** De onde veio a conexao de LLM do juiz (feat-191 §2.3), na ordem de
|
|
87
|
+
* resolucao: `tenant` (`judge_connection_id`), `legacy_channel`
|
|
88
|
+
* (`channel_config.csq_judge_model`), `platform_default`, `constant`; e
|
|
89
|
+
* `kill_switch` quando `/platform/evo-csq.llm.transport_kill_switch` forca a
|
|
90
|
+
* Anthropic direta. */
|
|
91
|
+
export type CsqLlmConnectionSource =
|
|
92
|
+
| "tenant"
|
|
93
|
+
| "legacy_channel"
|
|
94
|
+
| "platform_default"
|
|
95
|
+
| "constant"
|
|
96
|
+
| "kill_switch";
|
|
97
|
+
|
|
86
98
|
/** Autor de uma mensagem da transcricao entregue ao juiz. */
|
|
87
99
|
export type CsqAuthorKind =
|
|
88
100
|
| "lead"
|
|
@@ -908,6 +920,13 @@ export interface ICsqLeadReport extends IFireDoc {
|
|
|
908
920
|
|
|
909
921
|
llm_usage: ICsqLlmUsage | null;
|
|
910
922
|
cost_usd_est: number | null;
|
|
923
|
+
/** Provedor do juiz (`vertex-anthropic`, `anthropic` no kill-switch). Null na F0. */
|
|
924
|
+
llm_provider?: string | null;
|
|
925
|
+
/** Regiao do provedor (`us`, `eu`); null na API direta e na F0. */
|
|
926
|
+
llm_location?: string | null;
|
|
927
|
+
/** `/platform/evo-csq/llm-connections/{id}` usada; null quando sintetica. */
|
|
928
|
+
llm_connection_id?: string | null;
|
|
929
|
+
llm_connection_source?: CsqLlmConnectionSource | null;
|
|
911
930
|
trail: ICsqTrailEntry[];
|
|
912
931
|
judge_error?: string;
|
|
913
932
|
}
|