evo360-types 1.3.654 → 1.3.659

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.
Files changed (32) hide show
  1. package/dist/apps/evo-csq/zod-schemas.d.ts +908 -26
  2. package/dist/apps/evo-csq/zod-schemas.js +54 -2
  3. package/dist/apps/evo-csq/zod-schemas.ts +58 -0
  4. package/dist/apps/evo-modules/zod-schemas.d.ts +446 -0
  5. package/dist/apps/evo-modules/zod-schemas.js +143 -0
  6. package/dist/apps/evo-modules/zod-schemas.ts +153 -0
  7. package/dist/apps/hub-automation/zod-schemas.d.ts +66 -0
  8. package/dist/apps/hub-automation/zod-schemas.js +3 -0
  9. package/dist/apps/hub-automation/zod-schemas.ts +3 -0
  10. package/dist/index.d.ts +2 -0
  11. package/dist/index.js +2 -0
  12. package/dist/index.ts +2 -0
  13. package/dist/types/evo-csq/index.d.ts +77 -0
  14. package/dist/types/evo-csq/index.ts +92 -0
  15. package/dist/types/evo-modules/activation.d.ts +46 -0
  16. package/dist/types/evo-modules/activation.js +131 -0
  17. package/dist/types/evo-modules/activation.ts +150 -0
  18. package/dist/types/evo-modules/catalog.d.ts +28 -0
  19. package/dist/types/evo-modules/catalog.js +130 -0
  20. package/dist/types/evo-modules/catalog.ts +131 -0
  21. package/dist/types/evo-modules/index.d.ts +227 -0
  22. package/dist/types/evo-modules/index.js +75 -0
  23. package/dist/types/evo-modules/index.ts +329 -0
  24. package/dist/types/evo-telemedicine/fb_collections.js +1 -1
  25. package/dist/types/evo-telemedicine/fb_collections.ts +1 -1
  26. package/dist/types/evo-telemedicine/index.d.ts +8 -12
  27. package/dist/types/evo-telemedicine/index.ts +8 -12
  28. package/dist/types/evo-tenant/index.ts +3 -1
  29. package/dist/types/hub-automation/index.d.ts +2 -0
  30. package/dist/types/hub-automation/index.ts +6 -0
  31. package/fixtures/tenant-modules/is-module-active.parity.json +364 -0
  32. package/package.json +7 -4
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.zCsqPromptBlockUsageSchema = exports.zCsqTriageDecisionSchema = exports.zCsqTriageReasonSchema = exports.zCsqTriageModeSchema = exports.zCsqReviewSchema = exports.zCsqReviewCriterionDisagreementSchema = exports.zCsqReviewMissedAlertSchema = 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.zCsqAlertResolvedReasonSchema = 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 = exports.zCsqOverlapFactSchema = exports.zCsqOverlapFamilyHintsSchema = exports.zCsqOverlapAppointmentFactSchema = exports.zCsqAppointmentFactSchema = exports.zCsqJudgeOutputSchema = exports.zCsqJudgeResolvedAlertSchema = exports.zCsqJudgeRevalidationSchema = exports.zCsqLlmUsageSchema = exports.zCsqTranscriptMessageSchema = exports.zCsqTicketSummarySchema = exports.zCsqTrailEntrySchema = void 0;
3
+ exports.zCsqAppointmentEventKindSchema = exports.zCsqTriageDecisionSchema = exports.zCsqTriageReasonSchema = exports.zCsqTriageModeSchema = exports.zCsqReviewSchema = exports.zCsqReviewCriterionDisagreementSchema = exports.zCsqReviewMissedAlertSchema = 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.zCsqAlertResolvedReasonSchema = 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 = exports.zCsqOverlapFactSchema = exports.zCsqOverlapFamilyHintsSchema = exports.zCsqOverlapAppointmentFactSchema = exports.zCsqAppointmentFactSchema = exports.zCsqJudgeOutputSchema = exports.zCsqJudgeResolvedAlertSchema = exports.zCsqJudgeRevalidationSchema = exports.zCsqLlmUsageSchema = exports.zCsqTranscriptMessageSchema = exports.zCsqTicketSummarySchema = exports.zCsqTrailEntrySchema = exports.zCsqPromptBlockUsageSchema = exports.zCsqDetectorReportSchema = exports.zCsqDetectorLlmSchema = exports.zCsqDetectorModeSchema = exports.zCsqAppointmentEventSchema = 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
@@ -224,6 +224,9 @@ exports.zCsqClaimAppointmentInformedSchema = zod_1.z.object({
224
224
  patient_name: zod_1.z.string().optional(),
225
225
  /** feat-206 F6: cancelado ou substituido depois, na mesma jornada. */
226
226
  superseded: zod_1.z.boolean().optional(),
227
+ /** feat-206 F3: origem do claim (ausente = juiz). */
228
+ source: zod_1.z.enum(["judge", "detector", "both"]).optional(),
229
+ superseded_by: zod_1.z.string().optional(),
227
230
  evidence: zod_1.z.array(exports.zCsqEvidenceSchema),
228
231
  });
229
232
  exports.zCsqClaimPromiseSchema = zod_1.z.object({
@@ -396,6 +399,54 @@ exports.zCsqTriageDecisionSchema = zod_1.z.object({
396
399
  mode: exports.zCsqTriageModeSchema,
397
400
  reasons: zod_1.z.array(exports.zCsqTriageReasonSchema),
398
401
  });
402
+ // ───────── Detector de agenda (feat-206 F3) ─────────
403
+ exports.zCsqAppointmentEventKindSchema = zod_1.z.enum([
404
+ "slot_offered",
405
+ "slot_accepted",
406
+ "appointment_confirmed",
407
+ "reschedule_requested",
408
+ "appointment_cancelled",
409
+ ]);
410
+ exports.zCsqAppointmentEventSchema = zod_1.z.object({
411
+ kind: exports.zCsqAppointmentEventKindSchema,
412
+ date: zod_1.z.string().optional(),
413
+ time: zod_1.z.string().optional(),
414
+ professional: zod_1.z.string().optional(),
415
+ patient_name: zod_1.z.string().optional(),
416
+ modality: zod_1.z.string().optional(),
417
+ actor: zod_1.z.enum(["attendant", "lead", "hubia", "automation"]),
418
+ evidence: zod_1.z.array(exports.zCsqEvidenceSchema),
419
+ supersedes: zod_1.z.string().optional(),
420
+ });
421
+ exports.zCsqDetectorModeSchema = zod_1.z.enum(["off", "shadow", "on"]);
422
+ exports.zCsqDetectorLlmSchema = zod_1.z.object({
423
+ provider: zod_1.z.string(),
424
+ model: zod_1.z.string(),
425
+ connection_id: zod_1.z.string().nullable(),
426
+ connection_source: zod_1.z.enum(["extractor", "judge"]),
427
+ input_tokens: zod_1.z.number(),
428
+ cache_read_tokens: zod_1.z.number().optional(),
429
+ output_tokens: zod_1.z.number(),
430
+ rounds: zod_1.z.number(),
431
+ cost_usd_est: zod_1.z.number().nullable(),
432
+ duration_ms: zod_1.z.number(),
433
+ });
434
+ exports.zCsqDetectorReportSchema = zod_1.z.object({
435
+ mode: exports.zCsqDetectorModeSchema,
436
+ outcome: zod_1.z.enum(["no_signal", "ok", "failed", "skipped"]),
437
+ signals: zod_1.z.number(),
438
+ excerpt_messages: zod_1.z.number(),
439
+ events: zod_1.z.number(),
440
+ claims_detector: zod_1.z.number(),
441
+ claims_judge: zod_1.z.number(),
442
+ only_detector: zod_1.z.number(),
443
+ only_judge: zod_1.z.number(),
444
+ superseded_by_detector: zod_1.z.number(),
445
+ time_mismatch: zod_1.z.number().optional(),
446
+ event_list: zod_1.z.array(exports.zCsqAppointmentEventSchema).optional(),
447
+ llm: exports.zCsqDetectorLlmSchema.nullable().optional(),
448
+ error: zod_1.z.string().optional(),
449
+ });
399
450
  exports.zCsqPromptBlockUsageSchema = zod_1.z.object({
400
451
  name: zod_1.z.string(),
401
452
  chars: zod_1.z.number(),
@@ -660,5 +711,6 @@ exports.zCsqLeadReportSchema = zod_schemas_1.zFireDocSchema
660
711
  judge_error: zod_1.z.string().optional(),
661
712
  triage: exports.zCsqTriageDecisionSchema.optional(),
662
713
  judge_skipped_reasons: zod_1.z.array(exports.zCsqTriageReasonSchema).optional(),
714
+ detector: exports.zCsqDetectorReportSchema.optional(),
663
715
  })
664
716
  .passthrough();
@@ -254,6 +254,9 @@ export const zCsqClaimAppointmentInformedSchema = z.object({
254
254
  patient_name: z.string().optional(),
255
255
  /** feat-206 F6: cancelado ou substituido depois, na mesma jornada. */
256
256
  superseded: z.boolean().optional(),
257
+ /** feat-206 F3: origem do claim (ausente = juiz). */
258
+ source: z.enum(["judge", "detector", "both"]).optional(),
259
+ superseded_by: z.string().optional(),
257
260
  evidence: z.array(zCsqEvidenceSchema),
258
261
  });
259
262
 
@@ -455,6 +458,60 @@ export const zCsqTriageDecisionSchema = z.object({
455
458
  reasons: z.array(zCsqTriageReasonSchema),
456
459
  });
457
460
 
461
+ // ───────── Detector de agenda (feat-206 F3) ─────────
462
+
463
+ export const zCsqAppointmentEventKindSchema = z.enum([
464
+ "slot_offered",
465
+ "slot_accepted",
466
+ "appointment_confirmed",
467
+ "reschedule_requested",
468
+ "appointment_cancelled",
469
+ ]);
470
+
471
+ export const zCsqAppointmentEventSchema = z.object({
472
+ kind: zCsqAppointmentEventKindSchema,
473
+ date: z.string().optional(),
474
+ time: z.string().optional(),
475
+ professional: z.string().optional(),
476
+ patient_name: z.string().optional(),
477
+ modality: z.string().optional(),
478
+ actor: z.enum(["attendant", "lead", "hubia", "automation"]),
479
+ evidence: z.array(zCsqEvidenceSchema),
480
+ supersedes: z.string().optional(),
481
+ });
482
+
483
+ export const zCsqDetectorModeSchema = z.enum(["off", "shadow", "on"]);
484
+
485
+ export const zCsqDetectorLlmSchema = z.object({
486
+ provider: z.string(),
487
+ model: z.string(),
488
+ connection_id: z.string().nullable(),
489
+ connection_source: z.enum(["extractor", "judge"]),
490
+ input_tokens: z.number(),
491
+ cache_read_tokens: z.number().optional(),
492
+ output_tokens: z.number(),
493
+ rounds: z.number(),
494
+ cost_usd_est: z.number().nullable(),
495
+ duration_ms: z.number(),
496
+ });
497
+
498
+ export const zCsqDetectorReportSchema = z.object({
499
+ mode: zCsqDetectorModeSchema,
500
+ outcome: z.enum(["no_signal", "ok", "failed", "skipped"]),
501
+ signals: z.number(),
502
+ excerpt_messages: z.number(),
503
+ events: z.number(),
504
+ claims_detector: z.number(),
505
+ claims_judge: z.number(),
506
+ only_detector: z.number(),
507
+ only_judge: z.number(),
508
+ superseded_by_detector: z.number(),
509
+ time_mismatch: z.number().optional(),
510
+ event_list: z.array(zCsqAppointmentEventSchema).optional(),
511
+ llm: zCsqDetectorLlmSchema.nullable().optional(),
512
+ error: z.string().optional(),
513
+ });
514
+
458
515
  export const zCsqPromptBlockUsageSchema = z.object({
459
516
  name: z.string(),
460
517
  chars: z.number(),
@@ -754,5 +811,6 @@ export const zCsqLeadReportSchema = zFireDocSchema
754
811
  judge_error: z.string().optional(),
755
812
  triage: zCsqTriageDecisionSchema.optional(),
756
813
  judge_skipped_reasons: z.array(zCsqTriageReasonSchema).optional(),
814
+ detector: zCsqDetectorReportSchema.optional(),
757
815
  })
758
816
  .passthrough();
@@ -0,0 +1,446 @@
1
+ import { z } from "zod";
2
+ export declare const zModuleActionSchema: z.ZodEnum<["enable", "disable", "trial", "override"]>;
3
+ export declare const zModuleStepKindSchema: z.ZodEnum<["entitlement", "rbac_group", "rbac_recompute", "contract_allowance", "contract_check", "rollout_check"]>;
4
+ export declare const zModuleStepStatusSchema: z.ZodEnum<["pending", "noop", "change", "done", "failed", "blocked", "skipped"]>;
5
+ export declare const zModuleRunModeSchema: z.ZodEnum<["plan", "apply"]>;
6
+ export declare const zModuleRunStatusSchema: z.ZodEnum<["planned", "running", "done", "failed", "blocked", "superseded"]>;
7
+ export declare const zModuleChangeParamsSchema: z.ZodObject<{
8
+ expires_at: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodDate, Date, unknown>>>;
9
+ override_until: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodDate, Date, unknown>>>;
10
+ allow_without_contract: z.ZodOptional<z.ZodBoolean>;
11
+ purge_rbac: z.ZodOptional<z.ZodBoolean>;
12
+ suspend: z.ZodOptional<z.ZodBoolean>;
13
+ }, "strip", z.ZodTypeAny, {
14
+ expires_at?: Date | null | undefined;
15
+ allow_without_contract?: boolean | undefined;
16
+ override_until?: Date | null | undefined;
17
+ purge_rbac?: boolean | undefined;
18
+ suspend?: boolean | undefined;
19
+ }, {
20
+ expires_at?: unknown;
21
+ allow_without_contract?: boolean | undefined;
22
+ override_until?: unknown;
23
+ purge_rbac?: boolean | undefined;
24
+ suspend?: boolean | undefined;
25
+ }>;
26
+ /** Body de `nex_tenants-planModuleChange` (e entrada do runner). */
27
+ export declare const zModuleChangeRequestSchema: z.ZodEffects<z.ZodObject<{
28
+ tenant: z.ZodString;
29
+ module: z.ZodEffects<z.ZodString, string, string>;
30
+ action: z.ZodEnum<["enable", "disable", "trial", "override"]>;
31
+ params: z.ZodDefault<z.ZodOptional<z.ZodObject<{
32
+ expires_at: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodDate, Date, unknown>>>;
33
+ override_until: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodDate, Date, unknown>>>;
34
+ allow_without_contract: z.ZodOptional<z.ZodBoolean>;
35
+ purge_rbac: z.ZodOptional<z.ZodBoolean>;
36
+ suspend: z.ZodOptional<z.ZodBoolean>;
37
+ }, "strip", z.ZodTypeAny, {
38
+ expires_at?: Date | null | undefined;
39
+ allow_without_contract?: boolean | undefined;
40
+ override_until?: Date | null | undefined;
41
+ purge_rbac?: boolean | undefined;
42
+ suspend?: boolean | undefined;
43
+ }, {
44
+ expires_at?: unknown;
45
+ allow_without_contract?: boolean | undefined;
46
+ override_until?: unknown;
47
+ purge_rbac?: boolean | undefined;
48
+ suspend?: boolean | undefined;
49
+ }>>>;
50
+ reason: z.ZodString;
51
+ }, "strip", z.ZodTypeAny, {
52
+ tenant: string;
53
+ params: {
54
+ expires_at?: Date | null | undefined;
55
+ allow_without_contract?: boolean | undefined;
56
+ override_until?: Date | null | undefined;
57
+ purge_rbac?: boolean | undefined;
58
+ suspend?: boolean | undefined;
59
+ };
60
+ reason: string;
61
+ action: "trial" | "enable" | "disable" | "override";
62
+ module: string;
63
+ }, {
64
+ tenant: string;
65
+ reason: string;
66
+ action: "trial" | "enable" | "disable" | "override";
67
+ module: string;
68
+ params?: {
69
+ expires_at?: unknown;
70
+ allow_without_contract?: boolean | undefined;
71
+ override_until?: unknown;
72
+ purge_rbac?: boolean | undefined;
73
+ suspend?: boolean | undefined;
74
+ } | undefined;
75
+ }>, {
76
+ tenant: string;
77
+ params: {
78
+ expires_at?: Date | null | undefined;
79
+ allow_without_contract?: boolean | undefined;
80
+ override_until?: Date | null | undefined;
81
+ purge_rbac?: boolean | undefined;
82
+ suspend?: boolean | undefined;
83
+ };
84
+ reason: string;
85
+ action: "trial" | "enable" | "disable" | "override";
86
+ module: string;
87
+ }, {
88
+ tenant: string;
89
+ reason: string;
90
+ action: "trial" | "enable" | "disable" | "override";
91
+ module: string;
92
+ params?: {
93
+ expires_at?: unknown;
94
+ allow_without_contract?: boolean | undefined;
95
+ override_until?: unknown;
96
+ purge_rbac?: boolean | undefined;
97
+ suspend?: boolean | undefined;
98
+ } | undefined;
99
+ }>;
100
+ /** Body de `nex_tenants-applyModuleChange`: exatamente um de `plan_run_id` / `resume_run_id`. */
101
+ export declare const zModuleApplyRequestSchema: z.ZodEffects<z.ZodObject<{
102
+ tenant: z.ZodString;
103
+ plan_run_id: z.ZodOptional<z.ZodString>;
104
+ resume_run_id: z.ZodOptional<z.ZodString>;
105
+ params: z.ZodOptional<z.ZodObject<{
106
+ allow_without_contract: z.ZodOptional<z.ZodBoolean>;
107
+ }, "strip", z.ZodTypeAny, {
108
+ allow_without_contract?: boolean | undefined;
109
+ }, {
110
+ allow_without_contract?: boolean | undefined;
111
+ }>>;
112
+ }, "strip", z.ZodTypeAny, {
113
+ tenant: string;
114
+ params?: {
115
+ allow_without_contract?: boolean | undefined;
116
+ } | undefined;
117
+ plan_run_id?: string | undefined;
118
+ resume_run_id?: string | undefined;
119
+ }, {
120
+ tenant: string;
121
+ params?: {
122
+ allow_without_contract?: boolean | undefined;
123
+ } | undefined;
124
+ plan_run_id?: string | undefined;
125
+ resume_run_id?: string | undefined;
126
+ }>, {
127
+ tenant: string;
128
+ params?: {
129
+ allow_without_contract?: boolean | undefined;
130
+ } | undefined;
131
+ plan_run_id?: string | undefined;
132
+ resume_run_id?: string | undefined;
133
+ }, {
134
+ tenant: string;
135
+ params?: {
136
+ allow_without_contract?: boolean | undefined;
137
+ } | undefined;
138
+ plan_run_id?: string | undefined;
139
+ resume_run_id?: string | undefined;
140
+ }>;
141
+ /** Body de `nex_tenants-getModuleOverview`. */
142
+ export declare const zModuleOverviewRequestSchema: z.ZodObject<{
143
+ tenant: z.ZodString;
144
+ }, "strip", z.ZodTypeAny, {
145
+ tenant: string;
146
+ }, {
147
+ tenant: string;
148
+ }>;
149
+ export declare const zModuleProvisioningStepSchema: z.ZodObject<{
150
+ kind: z.ZodEnum<["entitlement", "rbac_group", "rbac_recompute", "contract_allowance", "contract_check", "rollout_check"]>;
151
+ status: z.ZodEnum<["pending", "noop", "change", "done", "failed", "blocked", "skipped"]>;
152
+ summary: z.ZodString;
153
+ before: z.ZodOptional<z.ZodUnknown>;
154
+ after: z.ZodOptional<z.ZodUnknown>;
155
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
156
+ started_at: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodDate, Date, unknown>>>;
157
+ finished_at: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodDate, Date, unknown>>>;
158
+ }, "strip", z.ZodTypeAny, {
159
+ kind: "entitlement" | "rbac_group" | "rbac_recompute" | "contract_allowance" | "contract_check" | "rollout_check";
160
+ status: "skipped" | "pending" | "blocked" | "failed" | "done" | "noop" | "change";
161
+ summary: string;
162
+ error?: string | null | undefined;
163
+ started_at?: Date | null | undefined;
164
+ finished_at?: Date | null | undefined;
165
+ before?: unknown;
166
+ after?: unknown;
167
+ }, {
168
+ kind: "entitlement" | "rbac_group" | "rbac_recompute" | "contract_allowance" | "contract_check" | "rollout_check";
169
+ status: "skipped" | "pending" | "blocked" | "failed" | "done" | "noop" | "change";
170
+ summary: string;
171
+ error?: string | null | undefined;
172
+ started_at?: unknown;
173
+ finished_at?: unknown;
174
+ before?: unknown;
175
+ after?: unknown;
176
+ }>;
177
+ export declare const zModuleRunActorSchema: z.ZodObject<{
178
+ type: z.ZodEnum<["user", "system", "script"]>;
179
+ id: z.ZodOptional<z.ZodString>;
180
+ login_id: z.ZodOptional<z.ZodString>;
181
+ }, "strip", z.ZodTypeAny, {
182
+ type: "user" | "system" | "script";
183
+ id?: string | undefined;
184
+ login_id?: string | undefined;
185
+ }, {
186
+ type: "user" | "system" | "script";
187
+ id?: string | undefined;
188
+ login_id?: string | undefined;
189
+ }>;
190
+ export declare const zModuleProvisioningRunSchema: z.ZodObject<{
191
+ id: z.ZodString;
192
+ ref: z.ZodAny;
193
+ model_ver: z.ZodDefault<z.ZodNumber>;
194
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
195
+ } & {
196
+ tenant: z.ZodString;
197
+ module: z.ZodString;
198
+ action: z.ZodEnum<["enable", "disable", "trial", "override"]>;
199
+ mode: z.ZodEnum<["plan", "apply"]>;
200
+ status: z.ZodEnum<["planned", "running", "done", "failed", "blocked", "superseded"]>;
201
+ params: z.ZodObject<{
202
+ expires_at: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodDate, Date, unknown>>>;
203
+ override_until: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodDate, Date, unknown>>>;
204
+ allow_without_contract: z.ZodOptional<z.ZodBoolean>;
205
+ purge_rbac: z.ZodOptional<z.ZodBoolean>;
206
+ suspend: z.ZodOptional<z.ZodBoolean>;
207
+ }, "strip", z.ZodTypeAny, {
208
+ expires_at?: Date | null | undefined;
209
+ allow_without_contract?: boolean | undefined;
210
+ override_until?: Date | null | undefined;
211
+ purge_rbac?: boolean | undefined;
212
+ suspend?: boolean | undefined;
213
+ }, {
214
+ expires_at?: unknown;
215
+ allow_without_contract?: boolean | undefined;
216
+ override_until?: unknown;
217
+ purge_rbac?: boolean | undefined;
218
+ suspend?: boolean | undefined;
219
+ }>;
220
+ plan_hash: z.ZodString;
221
+ types_version: z.ZodString;
222
+ steps: z.ZodArray<z.ZodObject<{
223
+ kind: z.ZodEnum<["entitlement", "rbac_group", "rbac_recompute", "contract_allowance", "contract_check", "rollout_check"]>;
224
+ status: z.ZodEnum<["pending", "noop", "change", "done", "failed", "blocked", "skipped"]>;
225
+ summary: z.ZodString;
226
+ before: z.ZodOptional<z.ZodUnknown>;
227
+ after: z.ZodOptional<z.ZodUnknown>;
228
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
229
+ started_at: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodDate, Date, unknown>>>;
230
+ finished_at: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodDate, Date, unknown>>>;
231
+ }, "strip", z.ZodTypeAny, {
232
+ kind: "entitlement" | "rbac_group" | "rbac_recompute" | "contract_allowance" | "contract_check" | "rollout_check";
233
+ status: "skipped" | "pending" | "blocked" | "failed" | "done" | "noop" | "change";
234
+ summary: string;
235
+ error?: string | null | undefined;
236
+ started_at?: Date | null | undefined;
237
+ finished_at?: Date | null | undefined;
238
+ before?: unknown;
239
+ after?: unknown;
240
+ }, {
241
+ kind: "entitlement" | "rbac_group" | "rbac_recompute" | "contract_allowance" | "contract_check" | "rollout_check";
242
+ status: "skipped" | "pending" | "blocked" | "failed" | "done" | "noop" | "change";
243
+ summary: string;
244
+ error?: string | null | undefined;
245
+ started_at?: unknown;
246
+ finished_at?: unknown;
247
+ before?: unknown;
248
+ after?: unknown;
249
+ }>, "many">;
250
+ actor: z.ZodObject<{
251
+ type: z.ZodEnum<["user", "system", "script"]>;
252
+ id: z.ZodOptional<z.ZodString>;
253
+ login_id: z.ZodOptional<z.ZodString>;
254
+ }, "strip", z.ZodTypeAny, {
255
+ type: "user" | "system" | "script";
256
+ id?: string | undefined;
257
+ login_id?: string | undefined;
258
+ }, {
259
+ type: "user" | "system" | "script";
260
+ id?: string | undefined;
261
+ login_id?: string | undefined;
262
+ }>;
263
+ reason: z.ZodString;
264
+ resumed_from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
265
+ plan_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
266
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
267
+ finished_at: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodDate, Date, unknown>>>;
268
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodDate, Date, unknown>>>;
269
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodDate, Date, unknown>>>;
270
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
271
+ id: z.ZodString;
272
+ ref: z.ZodAny;
273
+ model_ver: z.ZodDefault<z.ZodNumber>;
274
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
275
+ } & {
276
+ tenant: z.ZodString;
277
+ module: z.ZodString;
278
+ action: z.ZodEnum<["enable", "disable", "trial", "override"]>;
279
+ mode: z.ZodEnum<["plan", "apply"]>;
280
+ status: z.ZodEnum<["planned", "running", "done", "failed", "blocked", "superseded"]>;
281
+ params: z.ZodObject<{
282
+ expires_at: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodDate, Date, unknown>>>;
283
+ override_until: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodDate, Date, unknown>>>;
284
+ allow_without_contract: z.ZodOptional<z.ZodBoolean>;
285
+ purge_rbac: z.ZodOptional<z.ZodBoolean>;
286
+ suspend: z.ZodOptional<z.ZodBoolean>;
287
+ }, "strip", z.ZodTypeAny, {
288
+ expires_at?: Date | null | undefined;
289
+ allow_without_contract?: boolean | undefined;
290
+ override_until?: Date | null | undefined;
291
+ purge_rbac?: boolean | undefined;
292
+ suspend?: boolean | undefined;
293
+ }, {
294
+ expires_at?: unknown;
295
+ allow_without_contract?: boolean | undefined;
296
+ override_until?: unknown;
297
+ purge_rbac?: boolean | undefined;
298
+ suspend?: boolean | undefined;
299
+ }>;
300
+ plan_hash: z.ZodString;
301
+ types_version: z.ZodString;
302
+ steps: z.ZodArray<z.ZodObject<{
303
+ kind: z.ZodEnum<["entitlement", "rbac_group", "rbac_recompute", "contract_allowance", "contract_check", "rollout_check"]>;
304
+ status: z.ZodEnum<["pending", "noop", "change", "done", "failed", "blocked", "skipped"]>;
305
+ summary: z.ZodString;
306
+ before: z.ZodOptional<z.ZodUnknown>;
307
+ after: z.ZodOptional<z.ZodUnknown>;
308
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
309
+ started_at: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodDate, Date, unknown>>>;
310
+ finished_at: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodDate, Date, unknown>>>;
311
+ }, "strip", z.ZodTypeAny, {
312
+ kind: "entitlement" | "rbac_group" | "rbac_recompute" | "contract_allowance" | "contract_check" | "rollout_check";
313
+ status: "skipped" | "pending" | "blocked" | "failed" | "done" | "noop" | "change";
314
+ summary: string;
315
+ error?: string | null | undefined;
316
+ started_at?: Date | null | undefined;
317
+ finished_at?: Date | null | undefined;
318
+ before?: unknown;
319
+ after?: unknown;
320
+ }, {
321
+ kind: "entitlement" | "rbac_group" | "rbac_recompute" | "contract_allowance" | "contract_check" | "rollout_check";
322
+ status: "skipped" | "pending" | "blocked" | "failed" | "done" | "noop" | "change";
323
+ summary: string;
324
+ error?: string | null | undefined;
325
+ started_at?: unknown;
326
+ finished_at?: unknown;
327
+ before?: unknown;
328
+ after?: unknown;
329
+ }>, "many">;
330
+ actor: z.ZodObject<{
331
+ type: z.ZodEnum<["user", "system", "script"]>;
332
+ id: z.ZodOptional<z.ZodString>;
333
+ login_id: z.ZodOptional<z.ZodString>;
334
+ }, "strip", z.ZodTypeAny, {
335
+ type: "user" | "system" | "script";
336
+ id?: string | undefined;
337
+ login_id?: string | undefined;
338
+ }, {
339
+ type: "user" | "system" | "script";
340
+ id?: string | undefined;
341
+ login_id?: string | undefined;
342
+ }>;
343
+ reason: z.ZodString;
344
+ resumed_from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
345
+ plan_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
346
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
347
+ finished_at: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodDate, Date, unknown>>>;
348
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodDate, Date, unknown>>>;
349
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodDate, Date, unknown>>>;
350
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
351
+ id: z.ZodString;
352
+ ref: z.ZodAny;
353
+ model_ver: z.ZodDefault<z.ZodNumber>;
354
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
355
+ } & {
356
+ tenant: z.ZodString;
357
+ module: z.ZodString;
358
+ action: z.ZodEnum<["enable", "disable", "trial", "override"]>;
359
+ mode: z.ZodEnum<["plan", "apply"]>;
360
+ status: z.ZodEnum<["planned", "running", "done", "failed", "blocked", "superseded"]>;
361
+ params: z.ZodObject<{
362
+ expires_at: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodDate, Date, unknown>>>;
363
+ override_until: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodDate, Date, unknown>>>;
364
+ allow_without_contract: z.ZodOptional<z.ZodBoolean>;
365
+ purge_rbac: z.ZodOptional<z.ZodBoolean>;
366
+ suspend: z.ZodOptional<z.ZodBoolean>;
367
+ }, "strip", z.ZodTypeAny, {
368
+ expires_at?: Date | null | undefined;
369
+ allow_without_contract?: boolean | undefined;
370
+ override_until?: Date | null | undefined;
371
+ purge_rbac?: boolean | undefined;
372
+ suspend?: boolean | undefined;
373
+ }, {
374
+ expires_at?: unknown;
375
+ allow_without_contract?: boolean | undefined;
376
+ override_until?: unknown;
377
+ purge_rbac?: boolean | undefined;
378
+ suspend?: boolean | undefined;
379
+ }>;
380
+ plan_hash: z.ZodString;
381
+ types_version: z.ZodString;
382
+ steps: z.ZodArray<z.ZodObject<{
383
+ kind: z.ZodEnum<["entitlement", "rbac_group", "rbac_recompute", "contract_allowance", "contract_check", "rollout_check"]>;
384
+ status: z.ZodEnum<["pending", "noop", "change", "done", "failed", "blocked", "skipped"]>;
385
+ summary: z.ZodString;
386
+ before: z.ZodOptional<z.ZodUnknown>;
387
+ after: z.ZodOptional<z.ZodUnknown>;
388
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
389
+ started_at: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodDate, Date, unknown>>>;
390
+ finished_at: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodDate, Date, unknown>>>;
391
+ }, "strip", z.ZodTypeAny, {
392
+ kind: "entitlement" | "rbac_group" | "rbac_recompute" | "contract_allowance" | "contract_check" | "rollout_check";
393
+ status: "skipped" | "pending" | "blocked" | "failed" | "done" | "noop" | "change";
394
+ summary: string;
395
+ error?: string | null | undefined;
396
+ started_at?: Date | null | undefined;
397
+ finished_at?: Date | null | undefined;
398
+ before?: unknown;
399
+ after?: unknown;
400
+ }, {
401
+ kind: "entitlement" | "rbac_group" | "rbac_recompute" | "contract_allowance" | "contract_check" | "rollout_check";
402
+ status: "skipped" | "pending" | "blocked" | "failed" | "done" | "noop" | "change";
403
+ summary: string;
404
+ error?: string | null | undefined;
405
+ started_at?: unknown;
406
+ finished_at?: unknown;
407
+ before?: unknown;
408
+ after?: unknown;
409
+ }>, "many">;
410
+ actor: z.ZodObject<{
411
+ type: z.ZodEnum<["user", "system", "script"]>;
412
+ id: z.ZodOptional<z.ZodString>;
413
+ login_id: z.ZodOptional<z.ZodString>;
414
+ }, "strip", z.ZodTypeAny, {
415
+ type: "user" | "system" | "script";
416
+ id?: string | undefined;
417
+ login_id?: string | undefined;
418
+ }, {
419
+ type: "user" | "system" | "script";
420
+ id?: string | undefined;
421
+ login_id?: string | undefined;
422
+ }>;
423
+ reason: z.ZodString;
424
+ resumed_from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
425
+ plan_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
426
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
427
+ finished_at: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodDate, Date, unknown>>>;
428
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodDate, Date, unknown>>>;
429
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodDate, Date, unknown>>>;
430
+ }, z.ZodTypeAny, "passthrough">>;
431
+ export declare const zModuleRolloutDocSchema: z.ZodObject<{
432
+ flags: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
433
+ emergency_kill: z.ZodDefault<z.ZodBoolean>;
434
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodDate, Date, unknown>>>;
435
+ updated_by: z.ZodOptional<z.ZodString>;
436
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
437
+ flags: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
438
+ emergency_kill: z.ZodDefault<z.ZodBoolean>;
439
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodDate, Date, unknown>>>;
440
+ updated_by: z.ZodOptional<z.ZodString>;
441
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
442
+ flags: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
443
+ emergency_kill: z.ZodDefault<z.ZodBoolean>;
444
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodDate, Date, unknown>>>;
445
+ updated_by: z.ZodOptional<z.ZodString>;
446
+ }, z.ZodTypeAny, "passthrough">>;