@intutic/shared-types 2.4.0 → 2.5.1

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 (130) hide show
  1. package/README.md +9 -9
  2. package/dist/anomaly.d.ts +0 -19
  3. package/dist/anomaly.d.ts.map +1 -1
  4. package/dist/apiKeyScopes.d.ts +100 -0
  5. package/dist/apiKeyScopes.d.ts.map +1 -0
  6. package/dist/apiKeyScopes.js +142 -0
  7. package/dist/apiKeyScopes.js.map +1 -0
  8. package/dist/attenuation.d.ts +10 -5
  9. package/dist/attenuation.d.ts.map +1 -1
  10. package/dist/attenuation.js +17 -4
  11. package/dist/attenuation.js.map +1 -1
  12. package/dist/auth.d.ts +35 -4
  13. package/dist/auth.d.ts.map +1 -1
  14. package/dist/auth.js +26 -6
  15. package/dist/auth.js.map +1 -1
  16. package/dist/chaos.d.ts +2225 -0
  17. package/dist/chaos.d.ts.map +1 -0
  18. package/dist/chaos.js +358 -0
  19. package/dist/chaos.js.map +1 -0
  20. package/dist/chaosGate.d.ts +166 -0
  21. package/dist/chaosGate.d.ts.map +1 -0
  22. package/dist/chaosGate.js +383 -0
  23. package/dist/chaosGate.js.map +1 -0
  24. package/dist/enums.d.ts +9 -26
  25. package/dist/enums.d.ts.map +1 -1
  26. package/dist/enums.js +11 -28
  27. package/dist/enums.js.map +1 -1
  28. package/dist/errors.d.ts +6 -1
  29. package/dist/errors.d.ts.map +1 -1
  30. package/dist/errors.js +6 -1
  31. package/dist/errors.js.map +1 -1
  32. package/dist/finops.d.ts +4 -20
  33. package/dist/finops.d.ts.map +1 -1
  34. package/dist/guardrailIr.d.ts +6 -6
  35. package/dist/guardrailRender.d.ts +51 -0
  36. package/dist/guardrailRender.d.ts.map +1 -1
  37. package/dist/guardrailRender.js +69 -1
  38. package/dist/guardrailRender.js.map +1 -1
  39. package/dist/identity.d.ts +0 -18
  40. package/dist/identity.d.ts.map +1 -1
  41. package/dist/identity.js +1 -5
  42. package/dist/identity.js.map +1 -1
  43. package/dist/index.d.ts +22 -14
  44. package/dist/index.d.ts.map +1 -1
  45. package/dist/index.js +75 -13
  46. package/dist/index.js.map +1 -1
  47. package/dist/intelligence.d.ts +3 -100
  48. package/dist/intelligence.d.ts.map +1 -1
  49. package/dist/intelligence.js +3 -3
  50. package/dist/intelligence.js.map +1 -1
  51. package/dist/mcpBudgets.d.ts +16 -16
  52. package/dist/mcpDaemonPolicyCache.d.ts +32 -0
  53. package/dist/mcpDaemonPolicyCache.d.ts.map +1 -0
  54. package/dist/mcpDaemonPolicyCache.js +43 -0
  55. package/dist/mcpDaemonPolicyCache.js.map +1 -0
  56. package/dist/notifications.d.ts +1 -1
  57. package/dist/notifications.d.ts.map +1 -1
  58. package/dist/notifications.js +9 -4
  59. package/dist/notifications.js.map +1 -1
  60. package/dist/observability.d.ts +0 -31
  61. package/dist/observability.d.ts.map +1 -1
  62. package/dist/observability.js +0 -7
  63. package/dist/observability.js.map +1 -1
  64. package/dist/opaqueRefusal.d.ts +40 -0
  65. package/dist/opaqueRefusal.d.ts.map +1 -0
  66. package/dist/opaqueRefusal.js +53 -0
  67. package/dist/opaqueRefusal.js.map +1 -0
  68. package/dist/piiDetectors.d.ts +3 -0
  69. package/dist/piiDetectors.d.ts.map +1 -1
  70. package/dist/piiDetectors.js.map +1 -1
  71. package/dist/piiDetectors.json +11 -6
  72. package/dist/policyGuardrails.d.ts +5 -5
  73. package/dist/posturePresets.d.ts.map +1 -1
  74. package/dist/posturePresets.js +12 -3
  75. package/dist/posturePresets.js.map +1 -1
  76. package/dist/responses/common.d.ts +53 -0
  77. package/dist/responses/common.d.ts.map +1 -0
  78. package/dist/responses/common.js +43 -0
  79. package/dist/responses/common.js.map +1 -0
  80. package/dist/responses/gateways.d.ts +4999 -0
  81. package/dist/responses/gateways.d.ts.map +1 -0
  82. package/dist/responses/gateways.js +394 -0
  83. package/dist/responses/gateways.js.map +1 -0
  84. package/dist/responses/guardrails.d.ts +5200 -0
  85. package/dist/responses/guardrails.d.ts.map +1 -0
  86. package/dist/responses/guardrails.js +374 -0
  87. package/dist/responses/guardrails.js.map +1 -0
  88. package/dist/responses/identity.d.ts +1667 -0
  89. package/dist/responses/identity.d.ts.map +1 -0
  90. package/dist/responses/identity.js +292 -0
  91. package/dist/responses/identity.js.map +1 -0
  92. package/dist/responses/index.d.ts +15 -0
  93. package/dist/responses/index.d.ts.map +1 -0
  94. package/dist/responses/index.js +31 -0
  95. package/dist/responses/index.js.map +1 -0
  96. package/dist/responses/integrations.d.ts +4118 -0
  97. package/dist/responses/integrations.d.ts.map +1 -0
  98. package/dist/responses/integrations.js +400 -0
  99. package/dist/responses/integrations.js.map +1 -0
  100. package/dist/responses/observability.d.ts +3222 -0
  101. package/dist/responses/observability.d.ts.map +1 -0
  102. package/dist/responses/observability.js +598 -0
  103. package/dist/responses/observability.js.map +1 -0
  104. package/dist/responses/orgSops.d.ts +112 -0
  105. package/dist/responses/orgSops.d.ts.map +1 -0
  106. package/dist/responses/orgSops.js +29 -0
  107. package/dist/responses/orgSops.js.map +1 -0
  108. package/dist/responses/rules.d.ts +1948 -0
  109. package/dist/responses/rules.d.ts.map +1 -0
  110. package/dist/responses/rules.js +352 -0
  111. package/dist/responses/rules.js.map +1 -0
  112. package/dist/skillScan.d.ts +31 -0
  113. package/dist/skillScan.d.ts.map +1 -1
  114. package/dist/skillScan.js +25 -1
  115. package/dist/skillScan.js.map +1 -1
  116. package/dist/sop.d.ts +8 -1
  117. package/dist/sop.d.ts.map +1 -1
  118. package/dist/sop.js.map +1 -1
  119. package/dist/taskManagement.d.ts +34 -82
  120. package/dist/taskManagement.d.ts.map +1 -1
  121. package/dist/taskManagement.js +4 -4
  122. package/dist/toolPoison.d.ts +15 -2
  123. package/dist/toolPoison.d.ts.map +1 -1
  124. package/dist/toolPoison.js +14 -4
  125. package/dist/toolPoison.js.map +1 -1
  126. package/dist/workspaceSettings.d.ts +33 -14
  127. package/dist/workspaceSettings.d.ts.map +1 -1
  128. package/dist/workspaceSettings.js +3 -1
  129. package/dist/workspaceSettings.js.map +1 -1
  130. package/package.json +2 -2
@@ -0,0 +1,4118 @@
1
+ /**
2
+ * Responses of the control plane routes in notifications.ts, siem.ts, mcpServers.ts, attenuate.ts, compliance.ts, githubWebhooks.ts,
3
+ * openaiAgentTraces.ts, gateLiveness.ts, intelligence.ts and routing.ts.
4
+ *
5
+ * @module
6
+ */
7
+ import { z } from 'zod';
8
+ /**
9
+ * A rule's channel config as `notificationHubService.ts` `redactChannelConfig`
10
+ * returns it: the webhook signing secret dropped, the PagerDuty routing key
11
+ * masked.
12
+ */
13
+ export declare const NotificationChannelConfigResponse: z.ZodObject<{
14
+ slackChannelId: z.ZodOptional<z.ZodString>;
15
+ slackChannelName: z.ZodOptional<z.ZodString>;
16
+ emailRecipients: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
17
+ webhookUrl: z.ZodOptional<z.ZodString>;
18
+ pagerdutyRoutingKey: z.ZodOptional<z.ZodString>;
19
+ }, "strip", z.ZodTypeAny, {
20
+ slackChannelId?: string | undefined;
21
+ slackChannelName?: string | undefined;
22
+ emailRecipients?: string[] | undefined;
23
+ webhookUrl?: string | undefined;
24
+ pagerdutyRoutingKey?: string | undefined;
25
+ }, {
26
+ slackChannelId?: string | undefined;
27
+ slackChannelName?: string | undefined;
28
+ emailRecipients?: string[] | undefined;
29
+ webhookUrl?: string | undefined;
30
+ pagerdutyRoutingKey?: string | undefined;
31
+ }>;
32
+ export type NotificationChannelConfigResponse = z.infer<typeof NotificationChannelConfigResponse>;
33
+ /** A notification rule, as `notificationHubService.ts` `mapRowToRule` returns it. */
34
+ export declare const NotificationRuleResponse: z.ZodObject<{
35
+ ruleId: z.ZodString;
36
+ workspaceId: z.ZodString;
37
+ eventType: z.ZodEnum<["anomaly.detected", "anomaly.finding", "incident.created", "incident.escalated", "sop.status_changed", "session.ended", "decision.pending", "decision.approved", "decision.rejected", "trajectory.alert", "calibration.threshold_breach", "anomaly.drift.detected", "anomaly.capability_miss", "anomaly.trust.updated", "sop.stale.detected", "sop.cascade.alert", "sop.cascade.invalidated", "sop.integrity.drift", "sop.lifecycle.transitioned", "sop.upstream.changed", "guardrail.ready", "guardrail.stale", "mcp.server.candidate", "mcp.server.tool_change_risk", "mcp.server.decided", "mcp.server.tool_toggled", "mcp.budget.threshold", "mcp.budget.exceeded", "judge.review.queued", "finops.budget.exceeded", "finops.budget.threshold", "finops.tokens.classified", "trial.started", "trial.expired_downgraded", "trial.day7_report_sent", "trial.day13_report_sent", "plan.captured", "plan.approved", "plan.deviation.detected", "identity.offboarding.completed", "auth.login.failed", "scim.user.changed", "scim.group.changed", "webhook.secret.rotated", "evidence.exported", "credential.changed", "workspace.context.updated", "gateway.stale.detected", "gateway.cell.stuck_pending", "region.sync.stale", "org.cells.deprovision_scheduled", "org.cells.deprovision_canceled", "org.cells.deprovisioned", "device.enforcement.stale", "device.enforcement.disabled", "governance.gate.silent", "governance.gate.recovered", "governance.integrity.failed", "inventory.ungoverned.detected", "provider.outage.detected", "billing.subscription.past_due", "skill.malware.detected", "skill.semantic.flagged"]>;
38
+ channel: z.ZodEnum<["slack", "email", "webhook", "pagerduty"]>;
39
+ channelConfig: z.ZodObject<{
40
+ slackChannelId: z.ZodOptional<z.ZodString>;
41
+ slackChannelName: z.ZodOptional<z.ZodString>;
42
+ emailRecipients: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
43
+ webhookUrl: z.ZodOptional<z.ZodString>;
44
+ pagerdutyRoutingKey: z.ZodOptional<z.ZodString>;
45
+ }, "strip", z.ZodTypeAny, {
46
+ slackChannelId?: string | undefined;
47
+ slackChannelName?: string | undefined;
48
+ emailRecipients?: string[] | undefined;
49
+ webhookUrl?: string | undefined;
50
+ pagerdutyRoutingKey?: string | undefined;
51
+ }, {
52
+ slackChannelId?: string | undefined;
53
+ slackChannelName?: string | undefined;
54
+ emailRecipients?: string[] | undefined;
55
+ webhookUrl?: string | undefined;
56
+ pagerdutyRoutingKey?: string | undefined;
57
+ }>;
58
+ filters: z.ZodObject<{
59
+ severity: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
60
+ harnessType: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
61
+ userId: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
62
+ }, "strip", z.ZodTypeAny, {
63
+ userId?: string[] | undefined;
64
+ harnessType?: string[] | undefined;
65
+ severity?: string[] | undefined;
66
+ }, {
67
+ userId?: string[] | undefined;
68
+ harnessType?: string[] | undefined;
69
+ severity?: string[] | undefined;
70
+ }>;
71
+ cooldownMinutes: z.ZodNumber;
72
+ enabled: z.ZodBoolean;
73
+ createdAt: z.ZodString;
74
+ updatedAt: z.ZodString;
75
+ signingSecret: z.ZodOptional<z.ZodString>;
76
+ }, "strip", z.ZodTypeAny, {
77
+ workspaceId: string;
78
+ ruleId: string;
79
+ enabled: boolean;
80
+ createdAt: string;
81
+ updatedAt: string;
82
+ eventType: "anomaly.detected" | "anomaly.finding" | "incident.created" | "incident.escalated" | "sop.status_changed" | "session.ended" | "decision.pending" | "decision.approved" | "decision.rejected" | "trajectory.alert" | "calibration.threshold_breach" | "anomaly.drift.detected" | "anomaly.capability_miss" | "anomaly.trust.updated" | "sop.stale.detected" | "sop.cascade.alert" | "sop.cascade.invalidated" | "sop.integrity.drift" | "sop.lifecycle.transitioned" | "sop.upstream.changed" | "guardrail.ready" | "guardrail.stale" | "mcp.server.candidate" | "mcp.server.tool_change_risk" | "mcp.server.decided" | "mcp.server.tool_toggled" | "mcp.budget.threshold" | "mcp.budget.exceeded" | "judge.review.queued" | "finops.budget.exceeded" | "finops.budget.threshold" | "finops.tokens.classified" | "trial.started" | "trial.expired_downgraded" | "trial.day7_report_sent" | "trial.day13_report_sent" | "plan.captured" | "plan.approved" | "plan.deviation.detected" | "identity.offboarding.completed" | "auth.login.failed" | "scim.user.changed" | "scim.group.changed" | "webhook.secret.rotated" | "evidence.exported" | "credential.changed" | "workspace.context.updated" | "gateway.stale.detected" | "gateway.cell.stuck_pending" | "region.sync.stale" | "org.cells.deprovision_scheduled" | "org.cells.deprovision_canceled" | "org.cells.deprovisioned" | "device.enforcement.stale" | "device.enforcement.disabled" | "governance.gate.silent" | "governance.gate.recovered" | "governance.integrity.failed" | "inventory.ungoverned.detected" | "provider.outage.detected" | "billing.subscription.past_due" | "skill.malware.detected" | "skill.semantic.flagged";
83
+ channel: "email" | "webhook" | "slack" | "pagerduty";
84
+ channelConfig: {
85
+ slackChannelId?: string | undefined;
86
+ slackChannelName?: string | undefined;
87
+ emailRecipients?: string[] | undefined;
88
+ webhookUrl?: string | undefined;
89
+ pagerdutyRoutingKey?: string | undefined;
90
+ };
91
+ filters: {
92
+ userId?: string[] | undefined;
93
+ harnessType?: string[] | undefined;
94
+ severity?: string[] | undefined;
95
+ };
96
+ cooldownMinutes: number;
97
+ signingSecret?: string | undefined;
98
+ }, {
99
+ workspaceId: string;
100
+ ruleId: string;
101
+ enabled: boolean;
102
+ createdAt: string;
103
+ updatedAt: string;
104
+ eventType: "anomaly.detected" | "anomaly.finding" | "incident.created" | "incident.escalated" | "sop.status_changed" | "session.ended" | "decision.pending" | "decision.approved" | "decision.rejected" | "trajectory.alert" | "calibration.threshold_breach" | "anomaly.drift.detected" | "anomaly.capability_miss" | "anomaly.trust.updated" | "sop.stale.detected" | "sop.cascade.alert" | "sop.cascade.invalidated" | "sop.integrity.drift" | "sop.lifecycle.transitioned" | "sop.upstream.changed" | "guardrail.ready" | "guardrail.stale" | "mcp.server.candidate" | "mcp.server.tool_change_risk" | "mcp.server.decided" | "mcp.server.tool_toggled" | "mcp.budget.threshold" | "mcp.budget.exceeded" | "judge.review.queued" | "finops.budget.exceeded" | "finops.budget.threshold" | "finops.tokens.classified" | "trial.started" | "trial.expired_downgraded" | "trial.day7_report_sent" | "trial.day13_report_sent" | "plan.captured" | "plan.approved" | "plan.deviation.detected" | "identity.offboarding.completed" | "auth.login.failed" | "scim.user.changed" | "scim.group.changed" | "webhook.secret.rotated" | "evidence.exported" | "credential.changed" | "workspace.context.updated" | "gateway.stale.detected" | "gateway.cell.stuck_pending" | "region.sync.stale" | "org.cells.deprovision_scheduled" | "org.cells.deprovision_canceled" | "org.cells.deprovisioned" | "device.enforcement.stale" | "device.enforcement.disabled" | "governance.gate.silent" | "governance.gate.recovered" | "governance.integrity.failed" | "inventory.ungoverned.detected" | "provider.outage.detected" | "billing.subscription.past_due" | "skill.malware.detected" | "skill.semantic.flagged";
105
+ channel: "email" | "webhook" | "slack" | "pagerduty";
106
+ channelConfig: {
107
+ slackChannelId?: string | undefined;
108
+ slackChannelName?: string | undefined;
109
+ emailRecipients?: string[] | undefined;
110
+ webhookUrl?: string | undefined;
111
+ pagerdutyRoutingKey?: string | undefined;
112
+ };
113
+ filters: {
114
+ userId?: string[] | undefined;
115
+ harnessType?: string[] | undefined;
116
+ severity?: string[] | undefined;
117
+ };
118
+ cooldownMinutes: number;
119
+ signingSecret?: string | undefined;
120
+ }>;
121
+ export type NotificationRuleResponse = z.infer<typeof NotificationRuleResponse>;
122
+ /** `GET /api/v1/notifications/rules`: the workspace's rules, oldest first. */
123
+ export declare const NotificationRuleListResponse: z.ZodObject<{
124
+ listProperty: z.ZodLiteral<"rules">;
125
+ rowCase: z.ZodLiteral<"camel">;
126
+ } & {
127
+ rules: z.ZodArray<z.ZodObject<{
128
+ ruleId: z.ZodString;
129
+ workspaceId: z.ZodString;
130
+ eventType: z.ZodEnum<["anomaly.detected", "anomaly.finding", "incident.created", "incident.escalated", "sop.status_changed", "session.ended", "decision.pending", "decision.approved", "decision.rejected", "trajectory.alert", "calibration.threshold_breach", "anomaly.drift.detected", "anomaly.capability_miss", "anomaly.trust.updated", "sop.stale.detected", "sop.cascade.alert", "sop.cascade.invalidated", "sop.integrity.drift", "sop.lifecycle.transitioned", "sop.upstream.changed", "guardrail.ready", "guardrail.stale", "mcp.server.candidate", "mcp.server.tool_change_risk", "mcp.server.decided", "mcp.server.tool_toggled", "mcp.budget.threshold", "mcp.budget.exceeded", "judge.review.queued", "finops.budget.exceeded", "finops.budget.threshold", "finops.tokens.classified", "trial.started", "trial.expired_downgraded", "trial.day7_report_sent", "trial.day13_report_sent", "plan.captured", "plan.approved", "plan.deviation.detected", "identity.offboarding.completed", "auth.login.failed", "scim.user.changed", "scim.group.changed", "webhook.secret.rotated", "evidence.exported", "credential.changed", "workspace.context.updated", "gateway.stale.detected", "gateway.cell.stuck_pending", "region.sync.stale", "org.cells.deprovision_scheduled", "org.cells.deprovision_canceled", "org.cells.deprovisioned", "device.enforcement.stale", "device.enforcement.disabled", "governance.gate.silent", "governance.gate.recovered", "governance.integrity.failed", "inventory.ungoverned.detected", "provider.outage.detected", "billing.subscription.past_due", "skill.malware.detected", "skill.semantic.flagged"]>;
131
+ channel: z.ZodEnum<["slack", "email", "webhook", "pagerduty"]>;
132
+ channelConfig: z.ZodObject<{
133
+ slackChannelId: z.ZodOptional<z.ZodString>;
134
+ slackChannelName: z.ZodOptional<z.ZodString>;
135
+ emailRecipients: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
136
+ webhookUrl: z.ZodOptional<z.ZodString>;
137
+ pagerdutyRoutingKey: z.ZodOptional<z.ZodString>;
138
+ }, "strip", z.ZodTypeAny, {
139
+ slackChannelId?: string | undefined;
140
+ slackChannelName?: string | undefined;
141
+ emailRecipients?: string[] | undefined;
142
+ webhookUrl?: string | undefined;
143
+ pagerdutyRoutingKey?: string | undefined;
144
+ }, {
145
+ slackChannelId?: string | undefined;
146
+ slackChannelName?: string | undefined;
147
+ emailRecipients?: string[] | undefined;
148
+ webhookUrl?: string | undefined;
149
+ pagerdutyRoutingKey?: string | undefined;
150
+ }>;
151
+ filters: z.ZodObject<{
152
+ severity: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
153
+ harnessType: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
154
+ userId: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
155
+ }, "strip", z.ZodTypeAny, {
156
+ userId?: string[] | undefined;
157
+ harnessType?: string[] | undefined;
158
+ severity?: string[] | undefined;
159
+ }, {
160
+ userId?: string[] | undefined;
161
+ harnessType?: string[] | undefined;
162
+ severity?: string[] | undefined;
163
+ }>;
164
+ cooldownMinutes: z.ZodNumber;
165
+ enabled: z.ZodBoolean;
166
+ createdAt: z.ZodString;
167
+ updatedAt: z.ZodString;
168
+ signingSecret: z.ZodOptional<z.ZodString>;
169
+ }, "strip", z.ZodTypeAny, {
170
+ workspaceId: string;
171
+ ruleId: string;
172
+ enabled: boolean;
173
+ createdAt: string;
174
+ updatedAt: string;
175
+ eventType: "anomaly.detected" | "anomaly.finding" | "incident.created" | "incident.escalated" | "sop.status_changed" | "session.ended" | "decision.pending" | "decision.approved" | "decision.rejected" | "trajectory.alert" | "calibration.threshold_breach" | "anomaly.drift.detected" | "anomaly.capability_miss" | "anomaly.trust.updated" | "sop.stale.detected" | "sop.cascade.alert" | "sop.cascade.invalidated" | "sop.integrity.drift" | "sop.lifecycle.transitioned" | "sop.upstream.changed" | "guardrail.ready" | "guardrail.stale" | "mcp.server.candidate" | "mcp.server.tool_change_risk" | "mcp.server.decided" | "mcp.server.tool_toggled" | "mcp.budget.threshold" | "mcp.budget.exceeded" | "judge.review.queued" | "finops.budget.exceeded" | "finops.budget.threshold" | "finops.tokens.classified" | "trial.started" | "trial.expired_downgraded" | "trial.day7_report_sent" | "trial.day13_report_sent" | "plan.captured" | "plan.approved" | "plan.deviation.detected" | "identity.offboarding.completed" | "auth.login.failed" | "scim.user.changed" | "scim.group.changed" | "webhook.secret.rotated" | "evidence.exported" | "credential.changed" | "workspace.context.updated" | "gateway.stale.detected" | "gateway.cell.stuck_pending" | "region.sync.stale" | "org.cells.deprovision_scheduled" | "org.cells.deprovision_canceled" | "org.cells.deprovisioned" | "device.enforcement.stale" | "device.enforcement.disabled" | "governance.gate.silent" | "governance.gate.recovered" | "governance.integrity.failed" | "inventory.ungoverned.detected" | "provider.outage.detected" | "billing.subscription.past_due" | "skill.malware.detected" | "skill.semantic.flagged";
176
+ channel: "email" | "webhook" | "slack" | "pagerduty";
177
+ channelConfig: {
178
+ slackChannelId?: string | undefined;
179
+ slackChannelName?: string | undefined;
180
+ emailRecipients?: string[] | undefined;
181
+ webhookUrl?: string | undefined;
182
+ pagerdutyRoutingKey?: string | undefined;
183
+ };
184
+ filters: {
185
+ userId?: string[] | undefined;
186
+ harnessType?: string[] | undefined;
187
+ severity?: string[] | undefined;
188
+ };
189
+ cooldownMinutes: number;
190
+ signingSecret?: string | undefined;
191
+ }, {
192
+ workspaceId: string;
193
+ ruleId: string;
194
+ enabled: boolean;
195
+ createdAt: string;
196
+ updatedAt: string;
197
+ eventType: "anomaly.detected" | "anomaly.finding" | "incident.created" | "incident.escalated" | "sop.status_changed" | "session.ended" | "decision.pending" | "decision.approved" | "decision.rejected" | "trajectory.alert" | "calibration.threshold_breach" | "anomaly.drift.detected" | "anomaly.capability_miss" | "anomaly.trust.updated" | "sop.stale.detected" | "sop.cascade.alert" | "sop.cascade.invalidated" | "sop.integrity.drift" | "sop.lifecycle.transitioned" | "sop.upstream.changed" | "guardrail.ready" | "guardrail.stale" | "mcp.server.candidate" | "mcp.server.tool_change_risk" | "mcp.server.decided" | "mcp.server.tool_toggled" | "mcp.budget.threshold" | "mcp.budget.exceeded" | "judge.review.queued" | "finops.budget.exceeded" | "finops.budget.threshold" | "finops.tokens.classified" | "trial.started" | "trial.expired_downgraded" | "trial.day7_report_sent" | "trial.day13_report_sent" | "plan.captured" | "plan.approved" | "plan.deviation.detected" | "identity.offboarding.completed" | "auth.login.failed" | "scim.user.changed" | "scim.group.changed" | "webhook.secret.rotated" | "evidence.exported" | "credential.changed" | "workspace.context.updated" | "gateway.stale.detected" | "gateway.cell.stuck_pending" | "region.sync.stale" | "org.cells.deprovision_scheduled" | "org.cells.deprovision_canceled" | "org.cells.deprovisioned" | "device.enforcement.stale" | "device.enforcement.disabled" | "governance.gate.silent" | "governance.gate.recovered" | "governance.integrity.failed" | "inventory.ungoverned.detected" | "provider.outage.detected" | "billing.subscription.past_due" | "skill.malware.detected" | "skill.semantic.flagged";
198
+ channel: "email" | "webhook" | "slack" | "pagerduty";
199
+ channelConfig: {
200
+ slackChannelId?: string | undefined;
201
+ slackChannelName?: string | undefined;
202
+ emailRecipients?: string[] | undefined;
203
+ webhookUrl?: string | undefined;
204
+ pagerdutyRoutingKey?: string | undefined;
205
+ };
206
+ filters: {
207
+ userId?: string[] | undefined;
208
+ harnessType?: string[] | undefined;
209
+ severity?: string[] | undefined;
210
+ };
211
+ cooldownMinutes: number;
212
+ signingSecret?: string | undefined;
213
+ }>, "many">;
214
+ }, "strip", z.ZodTypeAny, {
215
+ rules: {
216
+ workspaceId: string;
217
+ ruleId: string;
218
+ enabled: boolean;
219
+ createdAt: string;
220
+ updatedAt: string;
221
+ eventType: "anomaly.detected" | "anomaly.finding" | "incident.created" | "incident.escalated" | "sop.status_changed" | "session.ended" | "decision.pending" | "decision.approved" | "decision.rejected" | "trajectory.alert" | "calibration.threshold_breach" | "anomaly.drift.detected" | "anomaly.capability_miss" | "anomaly.trust.updated" | "sop.stale.detected" | "sop.cascade.alert" | "sop.cascade.invalidated" | "sop.integrity.drift" | "sop.lifecycle.transitioned" | "sop.upstream.changed" | "guardrail.ready" | "guardrail.stale" | "mcp.server.candidate" | "mcp.server.tool_change_risk" | "mcp.server.decided" | "mcp.server.tool_toggled" | "mcp.budget.threshold" | "mcp.budget.exceeded" | "judge.review.queued" | "finops.budget.exceeded" | "finops.budget.threshold" | "finops.tokens.classified" | "trial.started" | "trial.expired_downgraded" | "trial.day7_report_sent" | "trial.day13_report_sent" | "plan.captured" | "plan.approved" | "plan.deviation.detected" | "identity.offboarding.completed" | "auth.login.failed" | "scim.user.changed" | "scim.group.changed" | "webhook.secret.rotated" | "evidence.exported" | "credential.changed" | "workspace.context.updated" | "gateway.stale.detected" | "gateway.cell.stuck_pending" | "region.sync.stale" | "org.cells.deprovision_scheduled" | "org.cells.deprovision_canceled" | "org.cells.deprovisioned" | "device.enforcement.stale" | "device.enforcement.disabled" | "governance.gate.silent" | "governance.gate.recovered" | "governance.integrity.failed" | "inventory.ungoverned.detected" | "provider.outage.detected" | "billing.subscription.past_due" | "skill.malware.detected" | "skill.semantic.flagged";
222
+ channel: "email" | "webhook" | "slack" | "pagerduty";
223
+ channelConfig: {
224
+ slackChannelId?: string | undefined;
225
+ slackChannelName?: string | undefined;
226
+ emailRecipients?: string[] | undefined;
227
+ webhookUrl?: string | undefined;
228
+ pagerdutyRoutingKey?: string | undefined;
229
+ };
230
+ filters: {
231
+ userId?: string[] | undefined;
232
+ harnessType?: string[] | undefined;
233
+ severity?: string[] | undefined;
234
+ };
235
+ cooldownMinutes: number;
236
+ signingSecret?: string | undefined;
237
+ }[];
238
+ listProperty: "rules";
239
+ rowCase: "camel";
240
+ }, {
241
+ rules: {
242
+ workspaceId: string;
243
+ ruleId: string;
244
+ enabled: boolean;
245
+ createdAt: string;
246
+ updatedAt: string;
247
+ eventType: "anomaly.detected" | "anomaly.finding" | "incident.created" | "incident.escalated" | "sop.status_changed" | "session.ended" | "decision.pending" | "decision.approved" | "decision.rejected" | "trajectory.alert" | "calibration.threshold_breach" | "anomaly.drift.detected" | "anomaly.capability_miss" | "anomaly.trust.updated" | "sop.stale.detected" | "sop.cascade.alert" | "sop.cascade.invalidated" | "sop.integrity.drift" | "sop.lifecycle.transitioned" | "sop.upstream.changed" | "guardrail.ready" | "guardrail.stale" | "mcp.server.candidate" | "mcp.server.tool_change_risk" | "mcp.server.decided" | "mcp.server.tool_toggled" | "mcp.budget.threshold" | "mcp.budget.exceeded" | "judge.review.queued" | "finops.budget.exceeded" | "finops.budget.threshold" | "finops.tokens.classified" | "trial.started" | "trial.expired_downgraded" | "trial.day7_report_sent" | "trial.day13_report_sent" | "plan.captured" | "plan.approved" | "plan.deviation.detected" | "identity.offboarding.completed" | "auth.login.failed" | "scim.user.changed" | "scim.group.changed" | "webhook.secret.rotated" | "evidence.exported" | "credential.changed" | "workspace.context.updated" | "gateway.stale.detected" | "gateway.cell.stuck_pending" | "region.sync.stale" | "org.cells.deprovision_scheduled" | "org.cells.deprovision_canceled" | "org.cells.deprovisioned" | "device.enforcement.stale" | "device.enforcement.disabled" | "governance.gate.silent" | "governance.gate.recovered" | "governance.integrity.failed" | "inventory.ungoverned.detected" | "provider.outage.detected" | "billing.subscription.past_due" | "skill.malware.detected" | "skill.semantic.flagged";
248
+ channel: "email" | "webhook" | "slack" | "pagerduty";
249
+ channelConfig: {
250
+ slackChannelId?: string | undefined;
251
+ slackChannelName?: string | undefined;
252
+ emailRecipients?: string[] | undefined;
253
+ webhookUrl?: string | undefined;
254
+ pagerdutyRoutingKey?: string | undefined;
255
+ };
256
+ filters: {
257
+ userId?: string[] | undefined;
258
+ harnessType?: string[] | undefined;
259
+ severity?: string[] | undefined;
260
+ };
261
+ cooldownMinutes: number;
262
+ signingSecret?: string | undefined;
263
+ }[];
264
+ listProperty: "rules";
265
+ rowCase: "camel";
266
+ }>;
267
+ export type NotificationRuleListResponse = z.infer<typeof NotificationRuleListResponse>;
268
+ /** `DELETE /api/v1/notifications/rules/:ruleId`. */
269
+ export declare const NotificationRuleDeletedResponse: z.ZodObject<{
270
+ ok: z.ZodLiteral<true>;
271
+ }, "strip", z.ZodTypeAny, {
272
+ ok: true;
273
+ }, {
274
+ ok: true;
275
+ }>;
276
+ export type NotificationRuleDeletedResponse = z.infer<typeof NotificationRuleDeletedResponse>;
277
+ /** `POST /api/v1/notifications/rules/:ruleId/signing-secret`: the new secret, returned once. */
278
+ export declare const NotificationRuleSigningSecretResponse: z.ZodObject<{
279
+ ruleId: z.ZodString;
280
+ signingSecret: z.ZodString;
281
+ }, "strip", z.ZodTypeAny, {
282
+ ruleId: string;
283
+ signingSecret: string;
284
+ }, {
285
+ ruleId: string;
286
+ signingSecret: string;
287
+ }>;
288
+ export type NotificationRuleSigningSecretResponse = z.infer<typeof NotificationRuleSigningSecretResponse>;
289
+ /** A destination as `GET /api/v1/siem/destinations` lists it: no config. */
290
+ export declare const SiemDestinationSummaryResponse: z.ZodObject<{
291
+ lastHeartbeatAt: z.ZodNullable<z.ZodString>;
292
+ lastError: z.ZodNullable<z.ZodString>;
293
+ createdAt: z.ZodString;
294
+ updatedAt: z.ZodString;
295
+ destinationId: z.ZodString;
296
+ workspaceId: z.ZodString;
297
+ name: z.ZodString;
298
+ adapterType: z.ZodEnum<["syslog_cef", "webhook_https", "gcs", "s3", "splunk_hec", "datadog_logs"]>;
299
+ isActive: z.ZodBoolean;
300
+ sourceTables: z.ZodArray<z.ZodString, "many">;
301
+ batchSize: z.ZodNumber;
302
+ flushIntervalMs: z.ZodNumber;
303
+ pausedReason: z.ZodNullable<z.ZodString>;
304
+ }, "strip", z.ZodTypeAny, {
305
+ workspaceId: string;
306
+ name: string;
307
+ isActive: boolean;
308
+ createdAt: string;
309
+ updatedAt: string;
310
+ lastHeartbeatAt: string | null;
311
+ lastError: string | null;
312
+ destinationId: string;
313
+ adapterType: "gcs" | "s3" | "syslog_cef" | "webhook_https" | "splunk_hec" | "datadog_logs";
314
+ sourceTables: string[];
315
+ batchSize: number;
316
+ flushIntervalMs: number;
317
+ pausedReason: string | null;
318
+ }, {
319
+ workspaceId: string;
320
+ name: string;
321
+ isActive: boolean;
322
+ createdAt: string;
323
+ updatedAt: string;
324
+ lastHeartbeatAt: string | null;
325
+ lastError: string | null;
326
+ destinationId: string;
327
+ adapterType: "gcs" | "s3" | "syslog_cef" | "webhook_https" | "splunk_hec" | "datadog_logs";
328
+ sourceTables: string[];
329
+ batchSize: number;
330
+ flushIntervalMs: number;
331
+ pausedReason: string | null;
332
+ }>;
333
+ export type SiemDestinationSummaryResponse = z.infer<typeof SiemDestinationSummaryResponse>;
334
+ /** `GET /api/v1/siem/destinations`: the destinations and the source names one can filter on. */
335
+ export declare const SiemDestinationListResponse: z.ZodObject<{
336
+ items: z.ZodArray<z.ZodObject<{
337
+ lastHeartbeatAt: z.ZodNullable<z.ZodString>;
338
+ lastError: z.ZodNullable<z.ZodString>;
339
+ createdAt: z.ZodString;
340
+ updatedAt: z.ZodString;
341
+ destinationId: z.ZodString;
342
+ workspaceId: z.ZodString;
343
+ name: z.ZodString;
344
+ adapterType: z.ZodEnum<["syslog_cef", "webhook_https", "gcs", "s3", "splunk_hec", "datadog_logs"]>;
345
+ isActive: z.ZodBoolean;
346
+ sourceTables: z.ZodArray<z.ZodString, "many">;
347
+ batchSize: z.ZodNumber;
348
+ flushIntervalMs: z.ZodNumber;
349
+ pausedReason: z.ZodNullable<z.ZodString>;
350
+ }, "strip", z.ZodTypeAny, {
351
+ workspaceId: string;
352
+ name: string;
353
+ isActive: boolean;
354
+ createdAt: string;
355
+ updatedAt: string;
356
+ lastHeartbeatAt: string | null;
357
+ lastError: string | null;
358
+ destinationId: string;
359
+ adapterType: "gcs" | "s3" | "syslog_cef" | "webhook_https" | "splunk_hec" | "datadog_logs";
360
+ sourceTables: string[];
361
+ batchSize: number;
362
+ flushIntervalMs: number;
363
+ pausedReason: string | null;
364
+ }, {
365
+ workspaceId: string;
366
+ name: string;
367
+ isActive: boolean;
368
+ createdAt: string;
369
+ updatedAt: string;
370
+ lastHeartbeatAt: string | null;
371
+ lastError: string | null;
372
+ destinationId: string;
373
+ adapterType: "gcs" | "s3" | "syslog_cef" | "webhook_https" | "splunk_hec" | "datadog_logs";
374
+ sourceTables: string[];
375
+ batchSize: number;
376
+ flushIntervalMs: number;
377
+ pausedReason: string | null;
378
+ }>, "many">;
379
+ sources: z.ZodObject<{
380
+ all: z.ZodArray<z.ZodString, "many">;
381
+ defaults: z.ZodArray<z.ZodString, "many">;
382
+ }, "strip", z.ZodTypeAny, {
383
+ all: string[];
384
+ defaults: string[];
385
+ }, {
386
+ all: string[];
387
+ defaults: string[];
388
+ }>;
389
+ }, "strip", z.ZodTypeAny, {
390
+ items: {
391
+ workspaceId: string;
392
+ name: string;
393
+ isActive: boolean;
394
+ createdAt: string;
395
+ updatedAt: string;
396
+ lastHeartbeatAt: string | null;
397
+ lastError: string | null;
398
+ destinationId: string;
399
+ adapterType: "gcs" | "s3" | "syslog_cef" | "webhook_https" | "splunk_hec" | "datadog_logs";
400
+ sourceTables: string[];
401
+ batchSize: number;
402
+ flushIntervalMs: number;
403
+ pausedReason: string | null;
404
+ }[];
405
+ sources: {
406
+ all: string[];
407
+ defaults: string[];
408
+ };
409
+ }, {
410
+ items: {
411
+ workspaceId: string;
412
+ name: string;
413
+ isActive: boolean;
414
+ createdAt: string;
415
+ updatedAt: string;
416
+ lastHeartbeatAt: string | null;
417
+ lastError: string | null;
418
+ destinationId: string;
419
+ adapterType: "gcs" | "s3" | "syslog_cef" | "webhook_https" | "splunk_hec" | "datadog_logs";
420
+ sourceTables: string[];
421
+ batchSize: number;
422
+ flushIntervalMs: number;
423
+ pausedReason: string | null;
424
+ }[];
425
+ sources: {
426
+ all: string[];
427
+ defaults: string[];
428
+ };
429
+ }>;
430
+ export type SiemDestinationListResponse = z.infer<typeof SiemDestinationListResponse>;
431
+ /** `GET /api/v1/siem/destinations/:id`. */
432
+ export declare const SiemDestinationResponse: z.ZodObject<{
433
+ config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
434
+ lastHeartbeatAt: z.ZodNullable<z.ZodString>;
435
+ lastError: z.ZodNullable<z.ZodString>;
436
+ createdAt: z.ZodString;
437
+ updatedAt: z.ZodString;
438
+ destinationId: z.ZodString;
439
+ workspaceId: z.ZodString;
440
+ name: z.ZodString;
441
+ adapterType: z.ZodEnum<["syslog_cef", "webhook_https", "gcs", "s3", "splunk_hec", "datadog_logs"]>;
442
+ isActive: z.ZodBoolean;
443
+ sourceTables: z.ZodArray<z.ZodString, "many">;
444
+ batchSize: z.ZodNumber;
445
+ flushIntervalMs: z.ZodNumber;
446
+ pausedReason: z.ZodNullable<z.ZodString>;
447
+ }, "strip", z.ZodTypeAny, {
448
+ workspaceId: string;
449
+ name: string;
450
+ isActive: boolean;
451
+ createdAt: string;
452
+ updatedAt: string;
453
+ lastHeartbeatAt: string | null;
454
+ config: Record<string, unknown>;
455
+ lastError: string | null;
456
+ destinationId: string;
457
+ adapterType: "gcs" | "s3" | "syslog_cef" | "webhook_https" | "splunk_hec" | "datadog_logs";
458
+ sourceTables: string[];
459
+ batchSize: number;
460
+ flushIntervalMs: number;
461
+ pausedReason: string | null;
462
+ }, {
463
+ workspaceId: string;
464
+ name: string;
465
+ isActive: boolean;
466
+ createdAt: string;
467
+ updatedAt: string;
468
+ lastHeartbeatAt: string | null;
469
+ config: Record<string, unknown>;
470
+ lastError: string | null;
471
+ destinationId: string;
472
+ adapterType: "gcs" | "s3" | "syslog_cef" | "webhook_https" | "splunk_hec" | "datadog_logs";
473
+ sourceTables: string[];
474
+ batchSize: number;
475
+ flushIntervalMs: number;
476
+ pausedReason: string | null;
477
+ }>;
478
+ export type SiemDestinationResponse = z.infer<typeof SiemDestinationResponse>;
479
+ /** `PUT /api/v1/siem/destinations/:id`: the destination after the edit. */
480
+ export declare const SiemDestinationUpdatedResponse: z.ZodObject<{
481
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
482
+ lastHeartbeatAt: z.ZodNullable<z.ZodString>;
483
+ lastError: z.ZodNullable<z.ZodString>;
484
+ createdAt: z.ZodString;
485
+ updatedAt: z.ZodString;
486
+ destinationId: z.ZodString;
487
+ workspaceId: z.ZodString;
488
+ name: z.ZodString;
489
+ adapterType: z.ZodEnum<["syslog_cef", "webhook_https", "gcs", "s3", "splunk_hec", "datadog_logs"]>;
490
+ isActive: z.ZodBoolean;
491
+ sourceTables: z.ZodArray<z.ZodString, "many">;
492
+ batchSize: z.ZodNumber;
493
+ flushIntervalMs: z.ZodNumber;
494
+ pausedReason: z.ZodNullable<z.ZodString>;
495
+ }, "strip", z.ZodTypeAny, {
496
+ workspaceId: string;
497
+ name: string;
498
+ isActive: boolean;
499
+ createdAt: string;
500
+ updatedAt: string;
501
+ lastHeartbeatAt: string | null;
502
+ lastError: string | null;
503
+ destinationId: string;
504
+ adapterType: "gcs" | "s3" | "syslog_cef" | "webhook_https" | "splunk_hec" | "datadog_logs";
505
+ sourceTables: string[];
506
+ batchSize: number;
507
+ flushIntervalMs: number;
508
+ pausedReason: string | null;
509
+ config?: Record<string, unknown> | undefined;
510
+ }, {
511
+ workspaceId: string;
512
+ name: string;
513
+ isActive: boolean;
514
+ createdAt: string;
515
+ updatedAt: string;
516
+ lastHeartbeatAt: string | null;
517
+ lastError: string | null;
518
+ destinationId: string;
519
+ adapterType: "gcs" | "s3" | "syslog_cef" | "webhook_https" | "splunk_hec" | "datadog_logs";
520
+ sourceTables: string[];
521
+ batchSize: number;
522
+ flushIntervalMs: number;
523
+ pausedReason: string | null;
524
+ config?: Record<string, unknown> | undefined;
525
+ }>;
526
+ export type SiemDestinationUpdatedResponse = z.infer<typeof SiemDestinationUpdatedResponse>;
527
+ /** `POST /api/v1/siem/destinations`: the new destination. */
528
+ export declare const SiemDestinationCreatedResponse: z.ZodObject<{
529
+ config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
530
+ signingSecret: z.ZodOptional<z.ZodString>;
531
+ destinationId: z.ZodString;
532
+ workspaceId: z.ZodString;
533
+ name: z.ZodString;
534
+ adapterType: z.ZodEnum<["syslog_cef", "webhook_https", "gcs", "s3", "splunk_hec", "datadog_logs"]>;
535
+ isActive: z.ZodBoolean;
536
+ sourceTables: z.ZodArray<z.ZodString, "many">;
537
+ batchSize: z.ZodNumber;
538
+ flushIntervalMs: z.ZodNumber;
539
+ pausedReason: z.ZodNullable<z.ZodString>;
540
+ }, "strip", z.ZodTypeAny, {
541
+ workspaceId: string;
542
+ name: string;
543
+ isActive: boolean;
544
+ config: Record<string, unknown>;
545
+ destinationId: string;
546
+ adapterType: "gcs" | "s3" | "syslog_cef" | "webhook_https" | "splunk_hec" | "datadog_logs";
547
+ sourceTables: string[];
548
+ batchSize: number;
549
+ flushIntervalMs: number;
550
+ pausedReason: string | null;
551
+ signingSecret?: string | undefined;
552
+ }, {
553
+ workspaceId: string;
554
+ name: string;
555
+ isActive: boolean;
556
+ config: Record<string, unknown>;
557
+ destinationId: string;
558
+ adapterType: "gcs" | "s3" | "syslog_cef" | "webhook_https" | "splunk_hec" | "datadog_logs";
559
+ sourceTables: string[];
560
+ batchSize: number;
561
+ flushIntervalMs: number;
562
+ pausedReason: string | null;
563
+ signingSecret?: string | undefined;
564
+ }>;
565
+ export type SiemDestinationCreatedResponse = z.infer<typeof SiemDestinationCreatedResponse>;
566
+ /** `DELETE /api/v1/siem/destinations/:id`: the destination is deactivated, not removed. */
567
+ export declare const SiemDestinationDeactivatedResponse: z.ZodObject<{
568
+ success: z.ZodLiteral<true>;
569
+ destinationId: z.ZodString;
570
+ isActive: z.ZodLiteral<false>;
571
+ }, "strip", z.ZodTypeAny, {
572
+ isActive: false;
573
+ success: true;
574
+ destinationId: string;
575
+ }, {
576
+ isActive: false;
577
+ success: true;
578
+ destinationId: string;
579
+ }>;
580
+ export type SiemDestinationDeactivatedResponse = z.infer<typeof SiemDestinationDeactivatedResponse>;
581
+ /** `POST /api/v1/siem/destinations/:id/signing-secret`: the new secret, returned once. */
582
+ export declare const SiemSigningSecretResponse: z.ZodObject<{
583
+ destinationId: z.ZodString;
584
+ signingSecret: z.ZodString;
585
+ }, "strip", z.ZodTypeAny, {
586
+ signingSecret: string;
587
+ destinationId: string;
588
+ }, {
589
+ signingSecret: string;
590
+ destinationId: string;
591
+ }>;
592
+ export type SiemSigningSecretResponse = z.infer<typeof SiemSigningSecretResponse>;
593
+ /** The latest scored change to a server's tool set (`mcpRegistryService.ts` `toToolChange`). */
594
+ export declare const McpToolChangeResponse: z.ZodObject<{
595
+ changeId: z.ZodString;
596
+ createdAt: z.ZodString;
597
+ riskScore: z.ZodNumber;
598
+ riskLevel: z.ZodEnum<["none", "low", "medium", "high"]>;
599
+ reasons: z.ZodArray<z.ZodObject<{
600
+ rule: z.ZodString;
601
+ tool: z.ZodString;
602
+ points: z.ZodNumber;
603
+ detail: z.ZodString;
604
+ }, "strip", z.ZodTypeAny, {
605
+ tool: string;
606
+ rule: string;
607
+ detail: string;
608
+ points: number;
609
+ }, {
610
+ tool: string;
611
+ rule: string;
612
+ detail: string;
613
+ points: number;
614
+ }>, "many">;
615
+ added: z.ZodArray<z.ZodString, "many">;
616
+ removed: z.ZodArray<z.ZodString, "many">;
617
+ changed: z.ZodArray<z.ZodString, "many">;
618
+ }, "strip", z.ZodTypeAny, {
619
+ createdAt: string;
620
+ reasons: {
621
+ tool: string;
622
+ rule: string;
623
+ detail: string;
624
+ points: number;
625
+ }[];
626
+ changeId: string;
627
+ riskScore: number;
628
+ riskLevel: "high" | "medium" | "low" | "none";
629
+ added: string[];
630
+ removed: string[];
631
+ changed: string[];
632
+ }, {
633
+ createdAt: string;
634
+ reasons: {
635
+ tool: string;
636
+ rule: string;
637
+ detail: string;
638
+ points: number;
639
+ }[];
640
+ changeId: string;
641
+ riskScore: number;
642
+ riskLevel: "high" | "medium" | "low" | "none";
643
+ added: string[];
644
+ removed: string[];
645
+ changed: string[];
646
+ }>;
647
+ export type McpToolChangeResponse = z.infer<typeof McpToolChangeResponse>;
648
+ /** An MCP server the workspace's proxies have seen (`mcpRegistryService.ts` `toRow`). */
649
+ export declare const McpServerResponse: z.ZodObject<{
650
+ serverId: z.ZodString;
651
+ serverName: z.ZodString;
652
+ status: z.ZodEnum<["candidate", "approved", "blocked"]>;
653
+ harness: z.ZodNullable<z.ZodString>;
654
+ transport: z.ZodNullable<z.ZodString>;
655
+ pinFingerprint: z.ZodNullable<z.ZodString>;
656
+ tools: z.ZodArray<z.ZodString, "many">;
657
+ disabledTools: z.ZodArray<z.ZodString, "many">;
658
+ firstSeenAt: z.ZodString;
659
+ lastSeenAt: z.ZodString;
660
+ decidedBy: z.ZodNullable<z.ZodString>;
661
+ decidedAt: z.ZodNullable<z.ZodString>;
662
+ ungovernedReason: z.ZodNullable<z.ZodString>;
663
+ heldForReview: z.ZodBoolean;
664
+ lastToolChange: z.ZodNullable<z.ZodObject<{
665
+ changeId: z.ZodString;
666
+ createdAt: z.ZodString;
667
+ riskScore: z.ZodNumber;
668
+ riskLevel: z.ZodEnum<["none", "low", "medium", "high"]>;
669
+ reasons: z.ZodArray<z.ZodObject<{
670
+ rule: z.ZodString;
671
+ tool: z.ZodString;
672
+ points: z.ZodNumber;
673
+ detail: z.ZodString;
674
+ }, "strip", z.ZodTypeAny, {
675
+ tool: string;
676
+ rule: string;
677
+ detail: string;
678
+ points: number;
679
+ }, {
680
+ tool: string;
681
+ rule: string;
682
+ detail: string;
683
+ points: number;
684
+ }>, "many">;
685
+ added: z.ZodArray<z.ZodString, "many">;
686
+ removed: z.ZodArray<z.ZodString, "many">;
687
+ changed: z.ZodArray<z.ZodString, "many">;
688
+ }, "strip", z.ZodTypeAny, {
689
+ createdAt: string;
690
+ reasons: {
691
+ tool: string;
692
+ rule: string;
693
+ detail: string;
694
+ points: number;
695
+ }[];
696
+ changeId: string;
697
+ riskScore: number;
698
+ riskLevel: "high" | "medium" | "low" | "none";
699
+ added: string[];
700
+ removed: string[];
701
+ changed: string[];
702
+ }, {
703
+ createdAt: string;
704
+ reasons: {
705
+ tool: string;
706
+ rule: string;
707
+ detail: string;
708
+ points: number;
709
+ }[];
710
+ changeId: string;
711
+ riskScore: number;
712
+ riskLevel: "high" | "medium" | "low" | "none";
713
+ added: string[];
714
+ removed: string[];
715
+ changed: string[];
716
+ }>>;
717
+ }, "strip", z.ZodTypeAny, {
718
+ status: "approved" | "candidate" | "blocked";
719
+ harness: string | null;
720
+ tools: string[];
721
+ disabledTools: string[];
722
+ decidedBy: string | null;
723
+ decidedAt: string | null;
724
+ firstSeenAt: string;
725
+ lastSeenAt: string;
726
+ transport: string | null;
727
+ serverId: string;
728
+ serverName: string;
729
+ pinFingerprint: string | null;
730
+ ungovernedReason: string | null;
731
+ heldForReview: boolean;
732
+ lastToolChange: {
733
+ createdAt: string;
734
+ reasons: {
735
+ tool: string;
736
+ rule: string;
737
+ detail: string;
738
+ points: number;
739
+ }[];
740
+ changeId: string;
741
+ riskScore: number;
742
+ riskLevel: "high" | "medium" | "low" | "none";
743
+ added: string[];
744
+ removed: string[];
745
+ changed: string[];
746
+ } | null;
747
+ }, {
748
+ status: "approved" | "candidate" | "blocked";
749
+ harness: string | null;
750
+ tools: string[];
751
+ disabledTools: string[];
752
+ decidedBy: string | null;
753
+ decidedAt: string | null;
754
+ firstSeenAt: string;
755
+ lastSeenAt: string;
756
+ transport: string | null;
757
+ serverId: string;
758
+ serverName: string;
759
+ pinFingerprint: string | null;
760
+ ungovernedReason: string | null;
761
+ heldForReview: boolean;
762
+ lastToolChange: {
763
+ createdAt: string;
764
+ reasons: {
765
+ tool: string;
766
+ rule: string;
767
+ detail: string;
768
+ points: number;
769
+ }[];
770
+ changeId: string;
771
+ riskScore: number;
772
+ riskLevel: "high" | "medium" | "low" | "none";
773
+ added: string[];
774
+ removed: string[];
775
+ changed: string[];
776
+ } | null;
777
+ }>;
778
+ export type McpServerResponse = z.infer<typeof McpServerResponse>;
779
+ /** One MCP call budget, as the `mcpBudgets` workspace setting stores it. */
780
+ export declare const McpBudgetResponse: z.ZodObject<{
781
+ id: z.ZodString;
782
+ scope: z.ZodEnum<["server", "tool", "member", "member_server"]>;
783
+ server: z.ZodOptional<z.ZodString>;
784
+ tool: z.ZodOptional<z.ZodString>;
785
+ memberId: z.ZodOptional<z.ZodString>;
786
+ period: z.ZodEnum<["hour", "day"]>;
787
+ limit: z.ZodNumber;
788
+ }, "strip", z.ZodTypeAny, {
789
+ period: "day" | "hour";
790
+ id: string;
791
+ limit: number;
792
+ scope: "member" | "tool" | "server" | "member_server";
793
+ tool?: string | undefined;
794
+ server?: string | undefined;
795
+ memberId?: string | undefined;
796
+ }, {
797
+ period: "day" | "hour";
798
+ id: string;
799
+ limit: number;
800
+ scope: "member" | "tool" | "server" | "member_server";
801
+ tool?: string | undefined;
802
+ server?: string | undefined;
803
+ memberId?: string | undefined;
804
+ }>;
805
+ export type McpBudgetResponse = z.infer<typeof McpBudgetResponse>;
806
+ /** `GET /api/v1/mcp/servers`: the servers, most recently seen first, and the registry's workspace settings. */
807
+ export declare const McpServerListResponse: z.ZodObject<{
808
+ listProperty: z.ZodLiteral<"servers">;
809
+ rowCase: z.ZodLiteral<"camel">;
810
+ } & {
811
+ servers: z.ZodArray<z.ZodObject<{
812
+ serverId: z.ZodString;
813
+ serverName: z.ZodString;
814
+ status: z.ZodEnum<["candidate", "approved", "blocked"]>;
815
+ harness: z.ZodNullable<z.ZodString>;
816
+ transport: z.ZodNullable<z.ZodString>;
817
+ pinFingerprint: z.ZodNullable<z.ZodString>;
818
+ tools: z.ZodArray<z.ZodString, "many">;
819
+ disabledTools: z.ZodArray<z.ZodString, "many">;
820
+ firstSeenAt: z.ZodString;
821
+ lastSeenAt: z.ZodString;
822
+ decidedBy: z.ZodNullable<z.ZodString>;
823
+ decidedAt: z.ZodNullable<z.ZodString>;
824
+ ungovernedReason: z.ZodNullable<z.ZodString>;
825
+ heldForReview: z.ZodBoolean;
826
+ lastToolChange: z.ZodNullable<z.ZodObject<{
827
+ changeId: z.ZodString;
828
+ createdAt: z.ZodString;
829
+ riskScore: z.ZodNumber;
830
+ riskLevel: z.ZodEnum<["none", "low", "medium", "high"]>;
831
+ reasons: z.ZodArray<z.ZodObject<{
832
+ rule: z.ZodString;
833
+ tool: z.ZodString;
834
+ points: z.ZodNumber;
835
+ detail: z.ZodString;
836
+ }, "strip", z.ZodTypeAny, {
837
+ tool: string;
838
+ rule: string;
839
+ detail: string;
840
+ points: number;
841
+ }, {
842
+ tool: string;
843
+ rule: string;
844
+ detail: string;
845
+ points: number;
846
+ }>, "many">;
847
+ added: z.ZodArray<z.ZodString, "many">;
848
+ removed: z.ZodArray<z.ZodString, "many">;
849
+ changed: z.ZodArray<z.ZodString, "many">;
850
+ }, "strip", z.ZodTypeAny, {
851
+ createdAt: string;
852
+ reasons: {
853
+ tool: string;
854
+ rule: string;
855
+ detail: string;
856
+ points: number;
857
+ }[];
858
+ changeId: string;
859
+ riskScore: number;
860
+ riskLevel: "high" | "medium" | "low" | "none";
861
+ added: string[];
862
+ removed: string[];
863
+ changed: string[];
864
+ }, {
865
+ createdAt: string;
866
+ reasons: {
867
+ tool: string;
868
+ rule: string;
869
+ detail: string;
870
+ points: number;
871
+ }[];
872
+ changeId: string;
873
+ riskScore: number;
874
+ riskLevel: "high" | "medium" | "low" | "none";
875
+ added: string[];
876
+ removed: string[];
877
+ changed: string[];
878
+ }>>;
879
+ }, "strip", z.ZodTypeAny, {
880
+ status: "approved" | "candidate" | "blocked";
881
+ harness: string | null;
882
+ tools: string[];
883
+ disabledTools: string[];
884
+ decidedBy: string | null;
885
+ decidedAt: string | null;
886
+ firstSeenAt: string;
887
+ lastSeenAt: string;
888
+ transport: string | null;
889
+ serverId: string;
890
+ serverName: string;
891
+ pinFingerprint: string | null;
892
+ ungovernedReason: string | null;
893
+ heldForReview: boolean;
894
+ lastToolChange: {
895
+ createdAt: string;
896
+ reasons: {
897
+ tool: string;
898
+ rule: string;
899
+ detail: string;
900
+ points: number;
901
+ }[];
902
+ changeId: string;
903
+ riskScore: number;
904
+ riskLevel: "high" | "medium" | "low" | "none";
905
+ added: string[];
906
+ removed: string[];
907
+ changed: string[];
908
+ } | null;
909
+ }, {
910
+ status: "approved" | "candidate" | "blocked";
911
+ harness: string | null;
912
+ tools: string[];
913
+ disabledTools: string[];
914
+ decidedBy: string | null;
915
+ decidedAt: string | null;
916
+ firstSeenAt: string;
917
+ lastSeenAt: string;
918
+ transport: string | null;
919
+ serverId: string;
920
+ serverName: string;
921
+ pinFingerprint: string | null;
922
+ ungovernedReason: string | null;
923
+ heldForReview: boolean;
924
+ lastToolChange: {
925
+ createdAt: string;
926
+ reasons: {
927
+ tool: string;
928
+ rule: string;
929
+ detail: string;
930
+ points: number;
931
+ }[];
932
+ changeId: string;
933
+ riskScore: number;
934
+ riskLevel: "high" | "medium" | "low" | "none";
935
+ added: string[];
936
+ removed: string[];
937
+ changed: string[];
938
+ } | null;
939
+ }>, "many">;
940
+ defaultPolicy: z.ZodEnum<["allow", "deny"]>;
941
+ highRiskToolChange: z.ZodEnum<["notify", "hold"]>;
942
+ budgets: z.ZodObject<{
943
+ budgets: z.ZodArray<z.ZodObject<{
944
+ id: z.ZodString;
945
+ scope: z.ZodEnum<["server", "tool", "member", "member_server"]>;
946
+ server: z.ZodOptional<z.ZodString>;
947
+ tool: z.ZodOptional<z.ZodString>;
948
+ memberId: z.ZodOptional<z.ZodString>;
949
+ period: z.ZodEnum<["hour", "day"]>;
950
+ limit: z.ZodNumber;
951
+ }, "strip", z.ZodTypeAny, {
952
+ period: "day" | "hour";
953
+ id: string;
954
+ limit: number;
955
+ scope: "member" | "tool" | "server" | "member_server";
956
+ tool?: string | undefined;
957
+ server?: string | undefined;
958
+ memberId?: string | undefined;
959
+ }, {
960
+ period: "day" | "hour";
961
+ id: string;
962
+ limit: number;
963
+ scope: "member" | "tool" | "server" | "member_server";
964
+ tool?: string | undefined;
965
+ server?: string | undefined;
966
+ memberId?: string | undefined;
967
+ }>, "many">;
968
+ warnAtPct: z.ZodOptional<z.ZodNumber>;
969
+ }, "strip", z.ZodTypeAny, {
970
+ budgets: {
971
+ period: "day" | "hour";
972
+ id: string;
973
+ limit: number;
974
+ scope: "member" | "tool" | "server" | "member_server";
975
+ tool?: string | undefined;
976
+ server?: string | undefined;
977
+ memberId?: string | undefined;
978
+ }[];
979
+ warnAtPct?: number | undefined;
980
+ }, {
981
+ budgets: {
982
+ period: "day" | "hour";
983
+ id: string;
984
+ limit: number;
985
+ scope: "member" | "tool" | "server" | "member_server";
986
+ tool?: string | undefined;
987
+ server?: string | undefined;
988
+ memberId?: string | undefined;
989
+ }[];
990
+ warnAtPct?: number | undefined;
991
+ }>;
992
+ pendingCount: z.ZodNumber;
993
+ }, "strip", z.ZodTypeAny, {
994
+ budgets: {
995
+ budgets: {
996
+ period: "day" | "hour";
997
+ id: string;
998
+ limit: number;
999
+ scope: "member" | "tool" | "server" | "member_server";
1000
+ tool?: string | undefined;
1001
+ server?: string | undefined;
1002
+ memberId?: string | undefined;
1003
+ }[];
1004
+ warnAtPct?: number | undefined;
1005
+ };
1006
+ defaultPolicy: "deny" | "allow";
1007
+ servers: {
1008
+ status: "approved" | "candidate" | "blocked";
1009
+ harness: string | null;
1010
+ tools: string[];
1011
+ disabledTools: string[];
1012
+ decidedBy: string | null;
1013
+ decidedAt: string | null;
1014
+ firstSeenAt: string;
1015
+ lastSeenAt: string;
1016
+ transport: string | null;
1017
+ serverId: string;
1018
+ serverName: string;
1019
+ pinFingerprint: string | null;
1020
+ ungovernedReason: string | null;
1021
+ heldForReview: boolean;
1022
+ lastToolChange: {
1023
+ createdAt: string;
1024
+ reasons: {
1025
+ tool: string;
1026
+ rule: string;
1027
+ detail: string;
1028
+ points: number;
1029
+ }[];
1030
+ changeId: string;
1031
+ riskScore: number;
1032
+ riskLevel: "high" | "medium" | "low" | "none";
1033
+ added: string[];
1034
+ removed: string[];
1035
+ changed: string[];
1036
+ } | null;
1037
+ }[];
1038
+ listProperty: "servers";
1039
+ rowCase: "camel";
1040
+ highRiskToolChange: "hold" | "notify";
1041
+ pendingCount: number;
1042
+ }, {
1043
+ budgets: {
1044
+ budgets: {
1045
+ period: "day" | "hour";
1046
+ id: string;
1047
+ limit: number;
1048
+ scope: "member" | "tool" | "server" | "member_server";
1049
+ tool?: string | undefined;
1050
+ server?: string | undefined;
1051
+ memberId?: string | undefined;
1052
+ }[];
1053
+ warnAtPct?: number | undefined;
1054
+ };
1055
+ defaultPolicy: "deny" | "allow";
1056
+ servers: {
1057
+ status: "approved" | "candidate" | "blocked";
1058
+ harness: string | null;
1059
+ tools: string[];
1060
+ disabledTools: string[];
1061
+ decidedBy: string | null;
1062
+ decidedAt: string | null;
1063
+ firstSeenAt: string;
1064
+ lastSeenAt: string;
1065
+ transport: string | null;
1066
+ serverId: string;
1067
+ serverName: string;
1068
+ pinFingerprint: string | null;
1069
+ ungovernedReason: string | null;
1070
+ heldForReview: boolean;
1071
+ lastToolChange: {
1072
+ createdAt: string;
1073
+ reasons: {
1074
+ tool: string;
1075
+ rule: string;
1076
+ detail: string;
1077
+ points: number;
1078
+ }[];
1079
+ changeId: string;
1080
+ riskScore: number;
1081
+ riskLevel: "high" | "medium" | "low" | "none";
1082
+ added: string[];
1083
+ removed: string[];
1084
+ changed: string[];
1085
+ } | null;
1086
+ }[];
1087
+ listProperty: "servers";
1088
+ rowCase: "camel";
1089
+ highRiskToolChange: "hold" | "notify";
1090
+ pendingCount: number;
1091
+ }>;
1092
+ export type McpServerListResponse = z.infer<typeof McpServerListResponse>;
1093
+ /** `POST /api/v1/mcp/servers/:serverId/status` and `/tools`: the server after the decision. */
1094
+ export declare const McpServerDecisionResponse: z.ZodObject<{
1095
+ ok: z.ZodLiteral<true>;
1096
+ server: z.ZodObject<{
1097
+ serverId: z.ZodString;
1098
+ serverName: z.ZodString;
1099
+ status: z.ZodEnum<["candidate", "approved", "blocked"]>;
1100
+ harness: z.ZodNullable<z.ZodString>;
1101
+ transport: z.ZodNullable<z.ZodString>;
1102
+ pinFingerprint: z.ZodNullable<z.ZodString>;
1103
+ tools: z.ZodArray<z.ZodString, "many">;
1104
+ disabledTools: z.ZodArray<z.ZodString, "many">;
1105
+ firstSeenAt: z.ZodString;
1106
+ lastSeenAt: z.ZodString;
1107
+ decidedBy: z.ZodNullable<z.ZodString>;
1108
+ decidedAt: z.ZodNullable<z.ZodString>;
1109
+ ungovernedReason: z.ZodNullable<z.ZodString>;
1110
+ heldForReview: z.ZodBoolean;
1111
+ lastToolChange: z.ZodNullable<z.ZodObject<{
1112
+ changeId: z.ZodString;
1113
+ createdAt: z.ZodString;
1114
+ riskScore: z.ZodNumber;
1115
+ riskLevel: z.ZodEnum<["none", "low", "medium", "high"]>;
1116
+ reasons: z.ZodArray<z.ZodObject<{
1117
+ rule: z.ZodString;
1118
+ tool: z.ZodString;
1119
+ points: z.ZodNumber;
1120
+ detail: z.ZodString;
1121
+ }, "strip", z.ZodTypeAny, {
1122
+ tool: string;
1123
+ rule: string;
1124
+ detail: string;
1125
+ points: number;
1126
+ }, {
1127
+ tool: string;
1128
+ rule: string;
1129
+ detail: string;
1130
+ points: number;
1131
+ }>, "many">;
1132
+ added: z.ZodArray<z.ZodString, "many">;
1133
+ removed: z.ZodArray<z.ZodString, "many">;
1134
+ changed: z.ZodArray<z.ZodString, "many">;
1135
+ }, "strip", z.ZodTypeAny, {
1136
+ createdAt: string;
1137
+ reasons: {
1138
+ tool: string;
1139
+ rule: string;
1140
+ detail: string;
1141
+ points: number;
1142
+ }[];
1143
+ changeId: string;
1144
+ riskScore: number;
1145
+ riskLevel: "high" | "medium" | "low" | "none";
1146
+ added: string[];
1147
+ removed: string[];
1148
+ changed: string[];
1149
+ }, {
1150
+ createdAt: string;
1151
+ reasons: {
1152
+ tool: string;
1153
+ rule: string;
1154
+ detail: string;
1155
+ points: number;
1156
+ }[];
1157
+ changeId: string;
1158
+ riskScore: number;
1159
+ riskLevel: "high" | "medium" | "low" | "none";
1160
+ added: string[];
1161
+ removed: string[];
1162
+ changed: string[];
1163
+ }>>;
1164
+ }, "strip", z.ZodTypeAny, {
1165
+ status: "approved" | "candidate" | "blocked";
1166
+ harness: string | null;
1167
+ tools: string[];
1168
+ disabledTools: string[];
1169
+ decidedBy: string | null;
1170
+ decidedAt: string | null;
1171
+ firstSeenAt: string;
1172
+ lastSeenAt: string;
1173
+ transport: string | null;
1174
+ serverId: string;
1175
+ serverName: string;
1176
+ pinFingerprint: string | null;
1177
+ ungovernedReason: string | null;
1178
+ heldForReview: boolean;
1179
+ lastToolChange: {
1180
+ createdAt: string;
1181
+ reasons: {
1182
+ tool: string;
1183
+ rule: string;
1184
+ detail: string;
1185
+ points: number;
1186
+ }[];
1187
+ changeId: string;
1188
+ riskScore: number;
1189
+ riskLevel: "high" | "medium" | "low" | "none";
1190
+ added: string[];
1191
+ removed: string[];
1192
+ changed: string[];
1193
+ } | null;
1194
+ }, {
1195
+ status: "approved" | "candidate" | "blocked";
1196
+ harness: string | null;
1197
+ tools: string[];
1198
+ disabledTools: string[];
1199
+ decidedBy: string | null;
1200
+ decidedAt: string | null;
1201
+ firstSeenAt: string;
1202
+ lastSeenAt: string;
1203
+ transport: string | null;
1204
+ serverId: string;
1205
+ serverName: string;
1206
+ pinFingerprint: string | null;
1207
+ ungovernedReason: string | null;
1208
+ heldForReview: boolean;
1209
+ lastToolChange: {
1210
+ createdAt: string;
1211
+ reasons: {
1212
+ tool: string;
1213
+ rule: string;
1214
+ detail: string;
1215
+ points: number;
1216
+ }[];
1217
+ changeId: string;
1218
+ riskScore: number;
1219
+ riskLevel: "high" | "medium" | "low" | "none";
1220
+ added: string[];
1221
+ removed: string[];
1222
+ changed: string[];
1223
+ } | null;
1224
+ }>;
1225
+ }, "strip", z.ZodTypeAny, {
1226
+ ok: true;
1227
+ server: {
1228
+ status: "approved" | "candidate" | "blocked";
1229
+ harness: string | null;
1230
+ tools: string[];
1231
+ disabledTools: string[];
1232
+ decidedBy: string | null;
1233
+ decidedAt: string | null;
1234
+ firstSeenAt: string;
1235
+ lastSeenAt: string;
1236
+ transport: string | null;
1237
+ serverId: string;
1238
+ serverName: string;
1239
+ pinFingerprint: string | null;
1240
+ ungovernedReason: string | null;
1241
+ heldForReview: boolean;
1242
+ lastToolChange: {
1243
+ createdAt: string;
1244
+ reasons: {
1245
+ tool: string;
1246
+ rule: string;
1247
+ detail: string;
1248
+ points: number;
1249
+ }[];
1250
+ changeId: string;
1251
+ riskScore: number;
1252
+ riskLevel: "high" | "medium" | "low" | "none";
1253
+ added: string[];
1254
+ removed: string[];
1255
+ changed: string[];
1256
+ } | null;
1257
+ };
1258
+ }, {
1259
+ ok: true;
1260
+ server: {
1261
+ status: "approved" | "candidate" | "blocked";
1262
+ harness: string | null;
1263
+ tools: string[];
1264
+ disabledTools: string[];
1265
+ decidedBy: string | null;
1266
+ decidedAt: string | null;
1267
+ firstSeenAt: string;
1268
+ lastSeenAt: string;
1269
+ transport: string | null;
1270
+ serverId: string;
1271
+ serverName: string;
1272
+ pinFingerprint: string | null;
1273
+ ungovernedReason: string | null;
1274
+ heldForReview: boolean;
1275
+ lastToolChange: {
1276
+ createdAt: string;
1277
+ reasons: {
1278
+ tool: string;
1279
+ rule: string;
1280
+ detail: string;
1281
+ points: number;
1282
+ }[];
1283
+ changeId: string;
1284
+ riskScore: number;
1285
+ riskLevel: "high" | "medium" | "low" | "none";
1286
+ added: string[];
1287
+ removed: string[];
1288
+ changed: string[];
1289
+ } | null;
1290
+ };
1291
+ }>;
1292
+ export type McpServerDecisionResponse = z.infer<typeof McpServerDecisionResponse>;
1293
+ /** `POST /api/v1/attenuate`: the child key, returned once. */
1294
+ export declare const AttenuationResponse: z.ZodObject<{
1295
+ childKey: z.ZodString;
1296
+ childKeyId: z.ZodString;
1297
+ attenuationChainId: z.ZodString;
1298
+ grantedCaps: z.ZodArray<z.ZodString, "many">;
1299
+ expiresAt: z.ZodString;
1300
+ }, "strip", z.ZodTypeAny, {
1301
+ expiresAt: string;
1302
+ childKey: string;
1303
+ childKeyId: string;
1304
+ attenuationChainId: string;
1305
+ grantedCaps: string[];
1306
+ }, {
1307
+ expiresAt: string;
1308
+ childKey: string;
1309
+ childKeyId: string;
1310
+ attenuationChainId: string;
1311
+ grantedCaps: string[];
1312
+ }>;
1313
+ export type AttenuationResponse = z.infer<typeof AttenuationResponse>;
1314
+ /** A link of a delegation chain. */
1315
+ export declare const AttenuationChainLinkResponse: z.ZodObject<{
1316
+ chainId: z.ZodString;
1317
+ parentKeyId: z.ZodString;
1318
+ childKeyId: z.ZodString;
1319
+ workspaceId: z.ZodString;
1320
+ grantedCaps: z.ZodArray<z.ZodString, "many">;
1321
+ expiresAt: z.ZodString;
1322
+ createdAt: z.ZodString;
1323
+ }, "strip", z.ZodTypeAny, {
1324
+ workspaceId: string;
1325
+ parentKeyId: string;
1326
+ createdAt: string;
1327
+ expiresAt: string;
1328
+ childKeyId: string;
1329
+ grantedCaps: string[];
1330
+ chainId: string;
1331
+ }, {
1332
+ workspaceId: string;
1333
+ parentKeyId: string;
1334
+ createdAt: string;
1335
+ expiresAt: string;
1336
+ childKeyId: string;
1337
+ grantedCaps: string[];
1338
+ chainId: string;
1339
+ }>;
1340
+ export type AttenuationChainLinkResponse = z.infer<typeof AttenuationChainLinkResponse>;
1341
+ /** `GET /api/v1/attenuate/chain/:chainId`: the chain's lineage, parent to child. */
1342
+ export declare const AttenuationChainResponse: z.ZodObject<{
1343
+ chain: z.ZodArray<z.ZodObject<{
1344
+ chainId: z.ZodString;
1345
+ parentKeyId: z.ZodString;
1346
+ childKeyId: z.ZodString;
1347
+ workspaceId: z.ZodString;
1348
+ grantedCaps: z.ZodArray<z.ZodString, "many">;
1349
+ expiresAt: z.ZodString;
1350
+ createdAt: z.ZodString;
1351
+ }, "strip", z.ZodTypeAny, {
1352
+ workspaceId: string;
1353
+ parentKeyId: string;
1354
+ createdAt: string;
1355
+ expiresAt: string;
1356
+ childKeyId: string;
1357
+ grantedCaps: string[];
1358
+ chainId: string;
1359
+ }, {
1360
+ workspaceId: string;
1361
+ parentKeyId: string;
1362
+ createdAt: string;
1363
+ expiresAt: string;
1364
+ childKeyId: string;
1365
+ grantedCaps: string[];
1366
+ chainId: string;
1367
+ }>, "many">;
1368
+ }, "strip", z.ZodTypeAny, {
1369
+ chain: {
1370
+ workspaceId: string;
1371
+ parentKeyId: string;
1372
+ createdAt: string;
1373
+ expiresAt: string;
1374
+ childKeyId: string;
1375
+ grantedCaps: string[];
1376
+ chainId: string;
1377
+ }[];
1378
+ }, {
1379
+ chain: {
1380
+ workspaceId: string;
1381
+ parentKeyId: string;
1382
+ createdAt: string;
1383
+ expiresAt: string;
1384
+ childKeyId: string;
1385
+ grantedCaps: string[];
1386
+ chainId: string;
1387
+ }[];
1388
+ }>;
1389
+ export type AttenuationChainResponse = z.infer<typeof AttenuationChainResponse>;
1390
+ /** A compliance probe's result (`complianceProbesService.ts` `ProbeResult`). */
1391
+ export declare const ProbeResultResponse: z.ZodObject<{
1392
+ probeId: z.ZodString;
1393
+ probeType: z.ZodEnum<["policy_check", "mfa_enforcement", "data_residency", "audit_log_integrity", "token_rotation", "sop_coverage", "auto_apply_provenance", "sop_git_drift", "guard_liveness", "guardrail_authority", "provider_availability"]>;
1394
+ status: z.ZodEnum<["pass", "fail", "warn", "error", "not_enforced"]>;
1395
+ score: z.ZodNumber;
1396
+ details: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1397
+ remediation: z.ZodNullable<z.ZodString>;
1398
+ probedAt: z.ZodString;
1399
+ observedSince: z.ZodString;
1400
+ observations: z.ZodNumber;
1401
+ }, "strip", z.ZodTypeAny, {
1402
+ status: "error" | "warn" | "pass" | "fail" | "not_enforced";
1403
+ score: number;
1404
+ probeId: string;
1405
+ probeType: "policy_check" | "mfa_enforcement" | "data_residency" | "audit_log_integrity" | "token_rotation" | "sop_coverage" | "auto_apply_provenance" | "sop_git_drift" | "guard_liveness" | "guardrail_authority" | "provider_availability";
1406
+ details: Record<string, unknown>;
1407
+ remediation: string | null;
1408
+ probedAt: string;
1409
+ observedSince: string;
1410
+ observations: number;
1411
+ }, {
1412
+ status: "error" | "warn" | "pass" | "fail" | "not_enforced";
1413
+ score: number;
1414
+ probeId: string;
1415
+ probeType: "policy_check" | "mfa_enforcement" | "data_residency" | "audit_log_integrity" | "token_rotation" | "sop_coverage" | "auto_apply_provenance" | "sop_git_drift" | "guard_liveness" | "guardrail_authority" | "provider_availability";
1416
+ details: Record<string, unknown>;
1417
+ remediation: string | null;
1418
+ probedAt: string;
1419
+ observedSince: string;
1420
+ observations: number;
1421
+ }>;
1422
+ export type ProbeResultResponse = z.infer<typeof ProbeResultResponse>;
1423
+ /** `GET /api/v1/compliance/frameworks/:frameworkId/coverage` (JSON): coverage of one framework from the latest probe results. */
1424
+ export declare const FrameworkCoverageResponse: z.ZodObject<{
1425
+ frameworkId: z.ZodEnum<["eu_ai_act", "iso_42001", "nist_ai_rmf", "mitre_atlas"]>;
1426
+ name: z.ZodString;
1427
+ citation: z.ZodString;
1428
+ scope: z.ZodString;
1429
+ mappingVersion: z.ZodString;
1430
+ generatedAt: z.ZodString;
1431
+ summary: z.ZodObject<{
1432
+ controls: z.ZodNumber;
1433
+ mapped: z.ZodNumber;
1434
+ full: z.ZodNumber;
1435
+ partial: z.ZodNumber;
1436
+ states: z.ZodObject<{
1437
+ evidenced: z.ZodNumber;
1438
+ warning: z.ZodNumber;
1439
+ failing: z.ZodNumber;
1440
+ not_evidenced: z.ZodNumber;
1441
+ records_only: z.ZodNumber;
1442
+ }, "strip", z.ZodTypeAny, {
1443
+ evidenced: number;
1444
+ warning: number;
1445
+ failing: number;
1446
+ not_evidenced: number;
1447
+ records_only: number;
1448
+ }, {
1449
+ evidenced: number;
1450
+ warning: number;
1451
+ failing: number;
1452
+ not_evidenced: number;
1453
+ records_only: number;
1454
+ }>;
1455
+ }, "strip", z.ZodTypeAny, {
1456
+ controls: number;
1457
+ mapped: number;
1458
+ full: number;
1459
+ partial: number;
1460
+ states: {
1461
+ evidenced: number;
1462
+ warning: number;
1463
+ failing: number;
1464
+ not_evidenced: number;
1465
+ records_only: number;
1466
+ };
1467
+ }, {
1468
+ controls: number;
1469
+ mapped: number;
1470
+ full: number;
1471
+ partial: number;
1472
+ states: {
1473
+ evidenced: number;
1474
+ warning: number;
1475
+ failing: number;
1476
+ not_evidenced: number;
1477
+ records_only: number;
1478
+ };
1479
+ }>;
1480
+ controls: z.ZodArray<z.ZodObject<{
1481
+ controlId: z.ZodString;
1482
+ title: z.ZodString;
1483
+ coverage: z.ZodEnum<["full", "partial", "not_mapped"]>;
1484
+ state: z.ZodNullable<z.ZodEnum<["evidenced", "warning", "failing", "not_evidenced", "records_only"]>>;
1485
+ evidence: z.ZodArray<z.ZodObject<{
1486
+ kind: z.ZodEnum<["probe", "artifact", "control"]>;
1487
+ id: z.ZodString;
1488
+ title: z.ZodString;
1489
+ reference: z.ZodNullable<z.ZodString>;
1490
+ satisfies: z.ZodString;
1491
+ state: z.ZodEnum<["pass", "fail", "warn", "error", "not_enforced", "not_run", "available"]>;
1492
+ probedAt: z.ZodNullable<z.ZodString>;
1493
+ }, "strip", z.ZodTypeAny, {
1494
+ id: string;
1495
+ kind: "probe" | "artifact" | "control";
1496
+ title: string;
1497
+ state: "error" | "warn" | "pass" | "fail" | "not_enforced" | "not_run" | "available";
1498
+ probedAt: string | null;
1499
+ reference: string | null;
1500
+ satisfies: string;
1501
+ }, {
1502
+ id: string;
1503
+ kind: "probe" | "artifact" | "control";
1504
+ title: string;
1505
+ state: "error" | "warn" | "pass" | "fail" | "not_enforced" | "not_run" | "available";
1506
+ probedAt: string | null;
1507
+ reference: string | null;
1508
+ satisfies: string;
1509
+ }>, "many">;
1510
+ gaps: z.ZodArray<z.ZodString, "many">;
1511
+ mitigates: z.ZodOptional<z.ZodArray<z.ZodObject<{
1512
+ id: z.ZodString;
1513
+ name: z.ZodString;
1514
+ }, "strip", z.ZodTypeAny, {
1515
+ name: string;
1516
+ id: string;
1517
+ }, {
1518
+ name: string;
1519
+ id: string;
1520
+ }>, "many">>;
1521
+ }, "strip", z.ZodTypeAny, {
1522
+ title: string;
1523
+ coverage: "full" | "partial" | "not_mapped";
1524
+ state: "evidenced" | "warning" | "failing" | "not_evidenced" | "records_only" | null;
1525
+ controlId: string;
1526
+ evidence: {
1527
+ id: string;
1528
+ kind: "probe" | "artifact" | "control";
1529
+ title: string;
1530
+ state: "error" | "warn" | "pass" | "fail" | "not_enforced" | "not_run" | "available";
1531
+ probedAt: string | null;
1532
+ reference: string | null;
1533
+ satisfies: string;
1534
+ }[];
1535
+ gaps: string[];
1536
+ mitigates?: {
1537
+ name: string;
1538
+ id: string;
1539
+ }[] | undefined;
1540
+ }, {
1541
+ title: string;
1542
+ coverage: "full" | "partial" | "not_mapped";
1543
+ state: "evidenced" | "warning" | "failing" | "not_evidenced" | "records_only" | null;
1544
+ controlId: string;
1545
+ evidence: {
1546
+ id: string;
1547
+ kind: "probe" | "artifact" | "control";
1548
+ title: string;
1549
+ state: "error" | "warn" | "pass" | "fail" | "not_enforced" | "not_run" | "available";
1550
+ probedAt: string | null;
1551
+ reference: string | null;
1552
+ satisfies: string;
1553
+ }[];
1554
+ gaps: string[];
1555
+ mitigates?: {
1556
+ name: string;
1557
+ id: string;
1558
+ }[] | undefined;
1559
+ }>, "many">;
1560
+ }, "strip", z.ZodTypeAny, {
1561
+ name: string;
1562
+ scope: string;
1563
+ summary: {
1564
+ controls: number;
1565
+ mapped: number;
1566
+ full: number;
1567
+ partial: number;
1568
+ states: {
1569
+ evidenced: number;
1570
+ warning: number;
1571
+ failing: number;
1572
+ not_evidenced: number;
1573
+ records_only: number;
1574
+ };
1575
+ };
1576
+ frameworkId: "eu_ai_act" | "iso_42001" | "nist_ai_rmf" | "mitre_atlas";
1577
+ citation: string;
1578
+ mappingVersion: string;
1579
+ generatedAt: string;
1580
+ controls: {
1581
+ title: string;
1582
+ coverage: "full" | "partial" | "not_mapped";
1583
+ state: "evidenced" | "warning" | "failing" | "not_evidenced" | "records_only" | null;
1584
+ controlId: string;
1585
+ evidence: {
1586
+ id: string;
1587
+ kind: "probe" | "artifact" | "control";
1588
+ title: string;
1589
+ state: "error" | "warn" | "pass" | "fail" | "not_enforced" | "not_run" | "available";
1590
+ probedAt: string | null;
1591
+ reference: string | null;
1592
+ satisfies: string;
1593
+ }[];
1594
+ gaps: string[];
1595
+ mitigates?: {
1596
+ name: string;
1597
+ id: string;
1598
+ }[] | undefined;
1599
+ }[];
1600
+ }, {
1601
+ name: string;
1602
+ scope: string;
1603
+ summary: {
1604
+ controls: number;
1605
+ mapped: number;
1606
+ full: number;
1607
+ partial: number;
1608
+ states: {
1609
+ evidenced: number;
1610
+ warning: number;
1611
+ failing: number;
1612
+ not_evidenced: number;
1613
+ records_only: number;
1614
+ };
1615
+ };
1616
+ frameworkId: "eu_ai_act" | "iso_42001" | "nist_ai_rmf" | "mitre_atlas";
1617
+ citation: string;
1618
+ mappingVersion: string;
1619
+ generatedAt: string;
1620
+ controls: {
1621
+ title: string;
1622
+ coverage: "full" | "partial" | "not_mapped";
1623
+ state: "evidenced" | "warning" | "failing" | "not_evidenced" | "records_only" | null;
1624
+ controlId: string;
1625
+ evidence: {
1626
+ id: string;
1627
+ kind: "probe" | "artifact" | "control";
1628
+ title: string;
1629
+ state: "error" | "warn" | "pass" | "fail" | "not_enforced" | "not_run" | "available";
1630
+ probedAt: string | null;
1631
+ reference: string | null;
1632
+ satisfies: string;
1633
+ }[];
1634
+ gaps: string[];
1635
+ mitigates?: {
1636
+ name: string;
1637
+ id: string;
1638
+ }[] | undefined;
1639
+ }[];
1640
+ }>;
1641
+ export type FrameworkCoverageResponse = z.infer<typeof FrameworkCoverageResponse>;
1642
+ /** A SOC 2 evidence archive (`soc2EvidenceService.ts` `Soc2EvidenceArchive`). */
1643
+ export declare const Soc2EvidenceArchiveResponse: z.ZodObject<{
1644
+ formatVersion: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
1645
+ workspaceId: z.ZodString;
1646
+ runId: z.ZodString;
1647
+ periodStart: z.ZodString;
1648
+ periodEnd: z.ZodString;
1649
+ collectedAt: z.ZodString;
1650
+ overallScore: z.ZodNullable<z.ZodNumber>;
1651
+ categories: z.ZodArray<z.ZodObject<{
1652
+ category: z.ZodEnum<["security", "availability", "processing_integrity", "confidentiality", "privacy"]>;
1653
+ score: z.ZodNullable<z.ZodNumber>;
1654
+ probes: z.ZodArray<z.ZodObject<{
1655
+ probeId: z.ZodString;
1656
+ probeType: z.ZodEnum<["policy_check", "mfa_enforcement", "data_residency", "audit_log_integrity", "token_rotation", "sop_coverage", "auto_apply_provenance", "sop_git_drift", "guard_liveness", "guardrail_authority", "provider_availability"]>;
1657
+ status: z.ZodEnum<["pass", "fail", "warn", "error", "not_enforced"]>;
1658
+ score: z.ZodNumber;
1659
+ details: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1660
+ remediation: z.ZodNullable<z.ZodString>;
1661
+ probedAt: z.ZodString;
1662
+ observedSince: z.ZodString;
1663
+ observations: z.ZodNumber;
1664
+ }, "strip", z.ZodTypeAny, {
1665
+ status: "error" | "warn" | "pass" | "fail" | "not_enforced";
1666
+ score: number;
1667
+ probeId: string;
1668
+ probeType: "policy_check" | "mfa_enforcement" | "data_residency" | "audit_log_integrity" | "token_rotation" | "sop_coverage" | "auto_apply_provenance" | "sop_git_drift" | "guard_liveness" | "guardrail_authority" | "provider_availability";
1669
+ details: Record<string, unknown>;
1670
+ remediation: string | null;
1671
+ probedAt: string;
1672
+ observedSince: string;
1673
+ observations: number;
1674
+ }, {
1675
+ status: "error" | "warn" | "pass" | "fail" | "not_enforced";
1676
+ score: number;
1677
+ probeId: string;
1678
+ probeType: "policy_check" | "mfa_enforcement" | "data_residency" | "audit_log_integrity" | "token_rotation" | "sop_coverage" | "auto_apply_provenance" | "sop_git_drift" | "guard_liveness" | "guardrail_authority" | "provider_availability";
1679
+ details: Record<string, unknown>;
1680
+ remediation: string | null;
1681
+ probedAt: string;
1682
+ observedSince: string;
1683
+ observations: number;
1684
+ }>, "many">;
1685
+ counts: z.ZodRecord<z.ZodString, z.ZodNumber>;
1686
+ sampleIds: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
1687
+ gaps: z.ZodArray<z.ZodString, "many">;
1688
+ }, "strip", z.ZodTypeAny, {
1689
+ probes: {
1690
+ status: "error" | "warn" | "pass" | "fail" | "not_enforced";
1691
+ score: number;
1692
+ probeId: string;
1693
+ probeType: "policy_check" | "mfa_enforcement" | "data_residency" | "audit_log_integrity" | "token_rotation" | "sop_coverage" | "auto_apply_provenance" | "sop_git_drift" | "guard_liveness" | "guardrail_authority" | "provider_availability";
1694
+ details: Record<string, unknown>;
1695
+ remediation: string | null;
1696
+ probedAt: string;
1697
+ observedSince: string;
1698
+ observations: number;
1699
+ }[];
1700
+ score: number | null;
1701
+ gaps: string[];
1702
+ category: "security" | "availability" | "processing_integrity" | "confidentiality" | "privacy";
1703
+ counts: Record<string, number>;
1704
+ sampleIds: Record<string, string[]>;
1705
+ }, {
1706
+ probes: {
1707
+ status: "error" | "warn" | "pass" | "fail" | "not_enforced";
1708
+ score: number;
1709
+ probeId: string;
1710
+ probeType: "policy_check" | "mfa_enforcement" | "data_residency" | "audit_log_integrity" | "token_rotation" | "sop_coverage" | "auto_apply_provenance" | "sop_git_drift" | "guard_liveness" | "guardrail_authority" | "provider_availability";
1711
+ details: Record<string, unknown>;
1712
+ remediation: string | null;
1713
+ probedAt: string;
1714
+ observedSince: string;
1715
+ observations: number;
1716
+ }[];
1717
+ score: number | null;
1718
+ gaps: string[];
1719
+ category: "security" | "availability" | "processing_integrity" | "confidentiality" | "privacy";
1720
+ counts: Record<string, number>;
1721
+ sampleIds: Record<string, string[]>;
1722
+ }>, "many">;
1723
+ probeHistoryDigest: z.ZodArray<z.ZodObject<{
1724
+ probeType: z.ZodEnum<["policy_check", "mfa_enforcement", "data_residency", "audit_log_integrity", "token_rotation", "sop_coverage", "auto_apply_provenance", "sop_git_drift", "guard_liveness", "guardrail_authority", "provider_availability"]>;
1725
+ rows: z.ZodNumber;
1726
+ firstAt: z.ZodNullable<z.ZodString>;
1727
+ lastAt: z.ZodNullable<z.ZodString>;
1728
+ statusCounts: z.ZodRecord<z.ZodString, z.ZodNumber>;
1729
+ }, "strip", z.ZodTypeAny, {
1730
+ probeType: "policy_check" | "mfa_enforcement" | "data_residency" | "audit_log_integrity" | "token_rotation" | "sop_coverage" | "auto_apply_provenance" | "sop_git_drift" | "guard_liveness" | "guardrail_authority" | "provider_availability";
1731
+ rows: number;
1732
+ firstAt: string | null;
1733
+ lastAt: string | null;
1734
+ statusCounts: Record<string, number>;
1735
+ }, {
1736
+ probeType: "policy_check" | "mfa_enforcement" | "data_residency" | "audit_log_integrity" | "token_rotation" | "sop_coverage" | "auto_apply_provenance" | "sop_git_drift" | "guard_liveness" | "guardrail_authority" | "provider_availability";
1737
+ rows: number;
1738
+ firstAt: string | null;
1739
+ lastAt: string | null;
1740
+ statusCounts: Record<string, number>;
1741
+ }>, "many">;
1742
+ frameworks: z.ZodOptional<z.ZodArray<z.ZodObject<{
1743
+ coverage: z.ZodObject<{
1744
+ frameworkId: z.ZodEnum<["eu_ai_act", "iso_42001", "nist_ai_rmf", "mitre_atlas"]>;
1745
+ name: z.ZodString;
1746
+ citation: z.ZodString;
1747
+ scope: z.ZodString;
1748
+ mappingVersion: z.ZodString;
1749
+ generatedAt: z.ZodString;
1750
+ summary: z.ZodObject<{
1751
+ controls: z.ZodNumber;
1752
+ mapped: z.ZodNumber;
1753
+ full: z.ZodNumber;
1754
+ partial: z.ZodNumber;
1755
+ states: z.ZodObject<{
1756
+ evidenced: z.ZodNumber;
1757
+ warning: z.ZodNumber;
1758
+ failing: z.ZodNumber;
1759
+ not_evidenced: z.ZodNumber;
1760
+ records_only: z.ZodNumber;
1761
+ }, "strip", z.ZodTypeAny, {
1762
+ evidenced: number;
1763
+ warning: number;
1764
+ failing: number;
1765
+ not_evidenced: number;
1766
+ records_only: number;
1767
+ }, {
1768
+ evidenced: number;
1769
+ warning: number;
1770
+ failing: number;
1771
+ not_evidenced: number;
1772
+ records_only: number;
1773
+ }>;
1774
+ }, "strip", z.ZodTypeAny, {
1775
+ controls: number;
1776
+ mapped: number;
1777
+ full: number;
1778
+ partial: number;
1779
+ states: {
1780
+ evidenced: number;
1781
+ warning: number;
1782
+ failing: number;
1783
+ not_evidenced: number;
1784
+ records_only: number;
1785
+ };
1786
+ }, {
1787
+ controls: number;
1788
+ mapped: number;
1789
+ full: number;
1790
+ partial: number;
1791
+ states: {
1792
+ evidenced: number;
1793
+ warning: number;
1794
+ failing: number;
1795
+ not_evidenced: number;
1796
+ records_only: number;
1797
+ };
1798
+ }>;
1799
+ controls: z.ZodArray<z.ZodObject<{
1800
+ controlId: z.ZodString;
1801
+ title: z.ZodString;
1802
+ coverage: z.ZodEnum<["full", "partial", "not_mapped"]>;
1803
+ state: z.ZodNullable<z.ZodEnum<["evidenced", "warning", "failing", "not_evidenced", "records_only"]>>;
1804
+ evidence: z.ZodArray<z.ZodObject<{
1805
+ kind: z.ZodEnum<["probe", "artifact", "control"]>;
1806
+ id: z.ZodString;
1807
+ title: z.ZodString;
1808
+ reference: z.ZodNullable<z.ZodString>;
1809
+ satisfies: z.ZodString;
1810
+ state: z.ZodEnum<["pass", "fail", "warn", "error", "not_enforced", "not_run", "available"]>;
1811
+ probedAt: z.ZodNullable<z.ZodString>;
1812
+ }, "strip", z.ZodTypeAny, {
1813
+ id: string;
1814
+ kind: "probe" | "artifact" | "control";
1815
+ title: string;
1816
+ state: "error" | "warn" | "pass" | "fail" | "not_enforced" | "not_run" | "available";
1817
+ probedAt: string | null;
1818
+ reference: string | null;
1819
+ satisfies: string;
1820
+ }, {
1821
+ id: string;
1822
+ kind: "probe" | "artifact" | "control";
1823
+ title: string;
1824
+ state: "error" | "warn" | "pass" | "fail" | "not_enforced" | "not_run" | "available";
1825
+ probedAt: string | null;
1826
+ reference: string | null;
1827
+ satisfies: string;
1828
+ }>, "many">;
1829
+ gaps: z.ZodArray<z.ZodString, "many">;
1830
+ mitigates: z.ZodOptional<z.ZodArray<z.ZodObject<{
1831
+ id: z.ZodString;
1832
+ name: z.ZodString;
1833
+ }, "strip", z.ZodTypeAny, {
1834
+ name: string;
1835
+ id: string;
1836
+ }, {
1837
+ name: string;
1838
+ id: string;
1839
+ }>, "many">>;
1840
+ }, "strip", z.ZodTypeAny, {
1841
+ title: string;
1842
+ coverage: "full" | "partial" | "not_mapped";
1843
+ state: "evidenced" | "warning" | "failing" | "not_evidenced" | "records_only" | null;
1844
+ controlId: string;
1845
+ evidence: {
1846
+ id: string;
1847
+ kind: "probe" | "artifact" | "control";
1848
+ title: string;
1849
+ state: "error" | "warn" | "pass" | "fail" | "not_enforced" | "not_run" | "available";
1850
+ probedAt: string | null;
1851
+ reference: string | null;
1852
+ satisfies: string;
1853
+ }[];
1854
+ gaps: string[];
1855
+ mitigates?: {
1856
+ name: string;
1857
+ id: string;
1858
+ }[] | undefined;
1859
+ }, {
1860
+ title: string;
1861
+ coverage: "full" | "partial" | "not_mapped";
1862
+ state: "evidenced" | "warning" | "failing" | "not_evidenced" | "records_only" | null;
1863
+ controlId: string;
1864
+ evidence: {
1865
+ id: string;
1866
+ kind: "probe" | "artifact" | "control";
1867
+ title: string;
1868
+ state: "error" | "warn" | "pass" | "fail" | "not_enforced" | "not_run" | "available";
1869
+ probedAt: string | null;
1870
+ reference: string | null;
1871
+ satisfies: string;
1872
+ }[];
1873
+ gaps: string[];
1874
+ mitigates?: {
1875
+ name: string;
1876
+ id: string;
1877
+ }[] | undefined;
1878
+ }>, "many">;
1879
+ }, "strip", z.ZodTypeAny, {
1880
+ name: string;
1881
+ scope: string;
1882
+ summary: {
1883
+ controls: number;
1884
+ mapped: number;
1885
+ full: number;
1886
+ partial: number;
1887
+ states: {
1888
+ evidenced: number;
1889
+ warning: number;
1890
+ failing: number;
1891
+ not_evidenced: number;
1892
+ records_only: number;
1893
+ };
1894
+ };
1895
+ frameworkId: "eu_ai_act" | "iso_42001" | "nist_ai_rmf" | "mitre_atlas";
1896
+ citation: string;
1897
+ mappingVersion: string;
1898
+ generatedAt: string;
1899
+ controls: {
1900
+ title: string;
1901
+ coverage: "full" | "partial" | "not_mapped";
1902
+ state: "evidenced" | "warning" | "failing" | "not_evidenced" | "records_only" | null;
1903
+ controlId: string;
1904
+ evidence: {
1905
+ id: string;
1906
+ kind: "probe" | "artifact" | "control";
1907
+ title: string;
1908
+ state: "error" | "warn" | "pass" | "fail" | "not_enforced" | "not_run" | "available";
1909
+ probedAt: string | null;
1910
+ reference: string | null;
1911
+ satisfies: string;
1912
+ }[];
1913
+ gaps: string[];
1914
+ mitigates?: {
1915
+ name: string;
1916
+ id: string;
1917
+ }[] | undefined;
1918
+ }[];
1919
+ }, {
1920
+ name: string;
1921
+ scope: string;
1922
+ summary: {
1923
+ controls: number;
1924
+ mapped: number;
1925
+ full: number;
1926
+ partial: number;
1927
+ states: {
1928
+ evidenced: number;
1929
+ warning: number;
1930
+ failing: number;
1931
+ not_evidenced: number;
1932
+ records_only: number;
1933
+ };
1934
+ };
1935
+ frameworkId: "eu_ai_act" | "iso_42001" | "nist_ai_rmf" | "mitre_atlas";
1936
+ citation: string;
1937
+ mappingVersion: string;
1938
+ generatedAt: string;
1939
+ controls: {
1940
+ title: string;
1941
+ coverage: "full" | "partial" | "not_mapped";
1942
+ state: "evidenced" | "warning" | "failing" | "not_evidenced" | "records_only" | null;
1943
+ controlId: string;
1944
+ evidence: {
1945
+ id: string;
1946
+ kind: "probe" | "artifact" | "control";
1947
+ title: string;
1948
+ state: "error" | "warn" | "pass" | "fail" | "not_enforced" | "not_run" | "available";
1949
+ probedAt: string | null;
1950
+ reference: string | null;
1951
+ satisfies: string;
1952
+ }[];
1953
+ gaps: string[];
1954
+ mitigates?: {
1955
+ name: string;
1956
+ id: string;
1957
+ }[] | undefined;
1958
+ }[];
1959
+ }>;
1960
+ report: z.ZodString;
1961
+ csv: z.ZodOptional<z.ZodString>;
1962
+ pdf: z.ZodOptional<z.ZodString>;
1963
+ }, "strip", z.ZodTypeAny, {
1964
+ coverage: {
1965
+ name: string;
1966
+ scope: string;
1967
+ summary: {
1968
+ controls: number;
1969
+ mapped: number;
1970
+ full: number;
1971
+ partial: number;
1972
+ states: {
1973
+ evidenced: number;
1974
+ warning: number;
1975
+ failing: number;
1976
+ not_evidenced: number;
1977
+ records_only: number;
1978
+ };
1979
+ };
1980
+ frameworkId: "eu_ai_act" | "iso_42001" | "nist_ai_rmf" | "mitre_atlas";
1981
+ citation: string;
1982
+ mappingVersion: string;
1983
+ generatedAt: string;
1984
+ controls: {
1985
+ title: string;
1986
+ coverage: "full" | "partial" | "not_mapped";
1987
+ state: "evidenced" | "warning" | "failing" | "not_evidenced" | "records_only" | null;
1988
+ controlId: string;
1989
+ evidence: {
1990
+ id: string;
1991
+ kind: "probe" | "artifact" | "control";
1992
+ title: string;
1993
+ state: "error" | "warn" | "pass" | "fail" | "not_enforced" | "not_run" | "available";
1994
+ probedAt: string | null;
1995
+ reference: string | null;
1996
+ satisfies: string;
1997
+ }[];
1998
+ gaps: string[];
1999
+ mitigates?: {
2000
+ name: string;
2001
+ id: string;
2002
+ }[] | undefined;
2003
+ }[];
2004
+ };
2005
+ report: string;
2006
+ csv?: string | undefined;
2007
+ pdf?: string | undefined;
2008
+ }, {
2009
+ coverage: {
2010
+ name: string;
2011
+ scope: string;
2012
+ summary: {
2013
+ controls: number;
2014
+ mapped: number;
2015
+ full: number;
2016
+ partial: number;
2017
+ states: {
2018
+ evidenced: number;
2019
+ warning: number;
2020
+ failing: number;
2021
+ not_evidenced: number;
2022
+ records_only: number;
2023
+ };
2024
+ };
2025
+ frameworkId: "eu_ai_act" | "iso_42001" | "nist_ai_rmf" | "mitre_atlas";
2026
+ citation: string;
2027
+ mappingVersion: string;
2028
+ generatedAt: string;
2029
+ controls: {
2030
+ title: string;
2031
+ coverage: "full" | "partial" | "not_mapped";
2032
+ state: "evidenced" | "warning" | "failing" | "not_evidenced" | "records_only" | null;
2033
+ controlId: string;
2034
+ evidence: {
2035
+ id: string;
2036
+ kind: "probe" | "artifact" | "control";
2037
+ title: string;
2038
+ state: "error" | "warn" | "pass" | "fail" | "not_enforced" | "not_run" | "available";
2039
+ probedAt: string | null;
2040
+ reference: string | null;
2041
+ satisfies: string;
2042
+ }[];
2043
+ gaps: string[];
2044
+ mitigates?: {
2045
+ name: string;
2046
+ id: string;
2047
+ }[] | undefined;
2048
+ }[];
2049
+ };
2050
+ report: string;
2051
+ csv?: string | undefined;
2052
+ pdf?: string | undefined;
2053
+ }>, "many">>;
2054
+ manifest: z.ZodObject<{
2055
+ algorithm: z.ZodLiteral<"sha256">;
2056
+ sections: z.ZodRecord<z.ZodString, z.ZodString>;
2057
+ archiveSha256: z.ZodString;
2058
+ signed: z.ZodOptional<z.ZodBoolean>;
2059
+ unsignedReason: z.ZodOptional<z.ZodString>;
2060
+ }, "strip", z.ZodTypeAny, {
2061
+ algorithm: "sha256";
2062
+ sections: Record<string, string>;
2063
+ archiveSha256: string;
2064
+ signed?: boolean | undefined;
2065
+ unsignedReason?: string | undefined;
2066
+ }, {
2067
+ algorithm: "sha256";
2068
+ sections: Record<string, string>;
2069
+ archiveSha256: string;
2070
+ signed?: boolean | undefined;
2071
+ unsignedReason?: string | undefined;
2072
+ }>;
2073
+ signature: z.ZodNullable<z.ZodObject<{
2074
+ algorithm: z.ZodLiteral<"Ed25519">;
2075
+ keyId: z.ZodString;
2076
+ preimageDomain: z.ZodString;
2077
+ value: z.ZodString;
2078
+ }, "strip", z.ZodTypeAny, {
2079
+ value: string;
2080
+ keyId: string;
2081
+ algorithm: "Ed25519";
2082
+ preimageDomain: string;
2083
+ }, {
2084
+ value: string;
2085
+ keyId: string;
2086
+ algorithm: "Ed25519";
2087
+ preimageDomain: string;
2088
+ }>>;
2089
+ }, "strip", z.ZodTypeAny, {
2090
+ workspaceId: string;
2091
+ runId: string;
2092
+ categories: {
2093
+ probes: {
2094
+ status: "error" | "warn" | "pass" | "fail" | "not_enforced";
2095
+ score: number;
2096
+ probeId: string;
2097
+ probeType: "policy_check" | "mfa_enforcement" | "data_residency" | "audit_log_integrity" | "token_rotation" | "sop_coverage" | "auto_apply_provenance" | "sop_git_drift" | "guard_liveness" | "guardrail_authority" | "provider_availability";
2098
+ details: Record<string, unknown>;
2099
+ remediation: string | null;
2100
+ probedAt: string;
2101
+ observedSince: string;
2102
+ observations: number;
2103
+ }[];
2104
+ score: number | null;
2105
+ gaps: string[];
2106
+ category: "security" | "availability" | "processing_integrity" | "confidentiality" | "privacy";
2107
+ counts: Record<string, number>;
2108
+ sampleIds: Record<string, string[]>;
2109
+ }[];
2110
+ signature: {
2111
+ value: string;
2112
+ keyId: string;
2113
+ algorithm: "Ed25519";
2114
+ preimageDomain: string;
2115
+ } | null;
2116
+ formatVersion: 1 | 2 | 3;
2117
+ periodStart: string;
2118
+ periodEnd: string;
2119
+ collectedAt: string;
2120
+ overallScore: number | null;
2121
+ probeHistoryDigest: {
2122
+ probeType: "policy_check" | "mfa_enforcement" | "data_residency" | "audit_log_integrity" | "token_rotation" | "sop_coverage" | "auto_apply_provenance" | "sop_git_drift" | "guard_liveness" | "guardrail_authority" | "provider_availability";
2123
+ rows: number;
2124
+ firstAt: string | null;
2125
+ lastAt: string | null;
2126
+ statusCounts: Record<string, number>;
2127
+ }[];
2128
+ manifest: {
2129
+ algorithm: "sha256";
2130
+ sections: Record<string, string>;
2131
+ archiveSha256: string;
2132
+ signed?: boolean | undefined;
2133
+ unsignedReason?: string | undefined;
2134
+ };
2135
+ frameworks?: {
2136
+ coverage: {
2137
+ name: string;
2138
+ scope: string;
2139
+ summary: {
2140
+ controls: number;
2141
+ mapped: number;
2142
+ full: number;
2143
+ partial: number;
2144
+ states: {
2145
+ evidenced: number;
2146
+ warning: number;
2147
+ failing: number;
2148
+ not_evidenced: number;
2149
+ records_only: number;
2150
+ };
2151
+ };
2152
+ frameworkId: "eu_ai_act" | "iso_42001" | "nist_ai_rmf" | "mitre_atlas";
2153
+ citation: string;
2154
+ mappingVersion: string;
2155
+ generatedAt: string;
2156
+ controls: {
2157
+ title: string;
2158
+ coverage: "full" | "partial" | "not_mapped";
2159
+ state: "evidenced" | "warning" | "failing" | "not_evidenced" | "records_only" | null;
2160
+ controlId: string;
2161
+ evidence: {
2162
+ id: string;
2163
+ kind: "probe" | "artifact" | "control";
2164
+ title: string;
2165
+ state: "error" | "warn" | "pass" | "fail" | "not_enforced" | "not_run" | "available";
2166
+ probedAt: string | null;
2167
+ reference: string | null;
2168
+ satisfies: string;
2169
+ }[];
2170
+ gaps: string[];
2171
+ mitigates?: {
2172
+ name: string;
2173
+ id: string;
2174
+ }[] | undefined;
2175
+ }[];
2176
+ };
2177
+ report: string;
2178
+ csv?: string | undefined;
2179
+ pdf?: string | undefined;
2180
+ }[] | undefined;
2181
+ }, {
2182
+ workspaceId: string;
2183
+ runId: string;
2184
+ categories: {
2185
+ probes: {
2186
+ status: "error" | "warn" | "pass" | "fail" | "not_enforced";
2187
+ score: number;
2188
+ probeId: string;
2189
+ probeType: "policy_check" | "mfa_enforcement" | "data_residency" | "audit_log_integrity" | "token_rotation" | "sop_coverage" | "auto_apply_provenance" | "sop_git_drift" | "guard_liveness" | "guardrail_authority" | "provider_availability";
2190
+ details: Record<string, unknown>;
2191
+ remediation: string | null;
2192
+ probedAt: string;
2193
+ observedSince: string;
2194
+ observations: number;
2195
+ }[];
2196
+ score: number | null;
2197
+ gaps: string[];
2198
+ category: "security" | "availability" | "processing_integrity" | "confidentiality" | "privacy";
2199
+ counts: Record<string, number>;
2200
+ sampleIds: Record<string, string[]>;
2201
+ }[];
2202
+ signature: {
2203
+ value: string;
2204
+ keyId: string;
2205
+ algorithm: "Ed25519";
2206
+ preimageDomain: string;
2207
+ } | null;
2208
+ formatVersion: 1 | 2 | 3;
2209
+ periodStart: string;
2210
+ periodEnd: string;
2211
+ collectedAt: string;
2212
+ overallScore: number | null;
2213
+ probeHistoryDigest: {
2214
+ probeType: "policy_check" | "mfa_enforcement" | "data_residency" | "audit_log_integrity" | "token_rotation" | "sop_coverage" | "auto_apply_provenance" | "sop_git_drift" | "guard_liveness" | "guardrail_authority" | "provider_availability";
2215
+ rows: number;
2216
+ firstAt: string | null;
2217
+ lastAt: string | null;
2218
+ statusCounts: Record<string, number>;
2219
+ }[];
2220
+ manifest: {
2221
+ algorithm: "sha256";
2222
+ sections: Record<string, string>;
2223
+ archiveSha256: string;
2224
+ signed?: boolean | undefined;
2225
+ unsignedReason?: string | undefined;
2226
+ };
2227
+ frameworks?: {
2228
+ coverage: {
2229
+ name: string;
2230
+ scope: string;
2231
+ summary: {
2232
+ controls: number;
2233
+ mapped: number;
2234
+ full: number;
2235
+ partial: number;
2236
+ states: {
2237
+ evidenced: number;
2238
+ warning: number;
2239
+ failing: number;
2240
+ not_evidenced: number;
2241
+ records_only: number;
2242
+ };
2243
+ };
2244
+ frameworkId: "eu_ai_act" | "iso_42001" | "nist_ai_rmf" | "mitre_atlas";
2245
+ citation: string;
2246
+ mappingVersion: string;
2247
+ generatedAt: string;
2248
+ controls: {
2249
+ title: string;
2250
+ coverage: "full" | "partial" | "not_mapped";
2251
+ state: "evidenced" | "warning" | "failing" | "not_evidenced" | "records_only" | null;
2252
+ controlId: string;
2253
+ evidence: {
2254
+ id: string;
2255
+ kind: "probe" | "artifact" | "control";
2256
+ title: string;
2257
+ state: "error" | "warn" | "pass" | "fail" | "not_enforced" | "not_run" | "available";
2258
+ probedAt: string | null;
2259
+ reference: string | null;
2260
+ satisfies: string;
2261
+ }[];
2262
+ gaps: string[];
2263
+ mitigates?: {
2264
+ name: string;
2265
+ id: string;
2266
+ }[] | undefined;
2267
+ }[];
2268
+ };
2269
+ report: string;
2270
+ csv?: string | undefined;
2271
+ pdf?: string | undefined;
2272
+ }[] | undefined;
2273
+ }>;
2274
+ export type Soc2EvidenceArchiveResponse = z.infer<typeof Soc2EvidenceArchiveResponse>;
2275
+ /** `POST /api/v1/compliance/soc2-collect`: the sealed archive of a fresh collection, and whether it is signed. */
2276
+ export declare const Soc2CollectResponse: z.ZodUnion<[z.ZodObject<{
2277
+ signed: z.ZodLiteral<true>;
2278
+ signingKeyId: z.ZodString;
2279
+ runId: z.ZodString;
2280
+ archive: z.ZodObject<{
2281
+ formatVersion: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
2282
+ workspaceId: z.ZodString;
2283
+ runId: z.ZodString;
2284
+ periodStart: z.ZodString;
2285
+ periodEnd: z.ZodString;
2286
+ collectedAt: z.ZodString;
2287
+ overallScore: z.ZodNullable<z.ZodNumber>;
2288
+ categories: z.ZodArray<z.ZodObject<{
2289
+ category: z.ZodEnum<["security", "availability", "processing_integrity", "confidentiality", "privacy"]>;
2290
+ score: z.ZodNullable<z.ZodNumber>;
2291
+ probes: z.ZodArray<z.ZodObject<{
2292
+ probeId: z.ZodString;
2293
+ probeType: z.ZodEnum<["policy_check", "mfa_enforcement", "data_residency", "audit_log_integrity", "token_rotation", "sop_coverage", "auto_apply_provenance", "sop_git_drift", "guard_liveness", "guardrail_authority", "provider_availability"]>;
2294
+ status: z.ZodEnum<["pass", "fail", "warn", "error", "not_enforced"]>;
2295
+ score: z.ZodNumber;
2296
+ details: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2297
+ remediation: z.ZodNullable<z.ZodString>;
2298
+ probedAt: z.ZodString;
2299
+ observedSince: z.ZodString;
2300
+ observations: z.ZodNumber;
2301
+ }, "strip", z.ZodTypeAny, {
2302
+ status: "error" | "warn" | "pass" | "fail" | "not_enforced";
2303
+ score: number;
2304
+ probeId: string;
2305
+ probeType: "policy_check" | "mfa_enforcement" | "data_residency" | "audit_log_integrity" | "token_rotation" | "sop_coverage" | "auto_apply_provenance" | "sop_git_drift" | "guard_liveness" | "guardrail_authority" | "provider_availability";
2306
+ details: Record<string, unknown>;
2307
+ remediation: string | null;
2308
+ probedAt: string;
2309
+ observedSince: string;
2310
+ observations: number;
2311
+ }, {
2312
+ status: "error" | "warn" | "pass" | "fail" | "not_enforced";
2313
+ score: number;
2314
+ probeId: string;
2315
+ probeType: "policy_check" | "mfa_enforcement" | "data_residency" | "audit_log_integrity" | "token_rotation" | "sop_coverage" | "auto_apply_provenance" | "sop_git_drift" | "guard_liveness" | "guardrail_authority" | "provider_availability";
2316
+ details: Record<string, unknown>;
2317
+ remediation: string | null;
2318
+ probedAt: string;
2319
+ observedSince: string;
2320
+ observations: number;
2321
+ }>, "many">;
2322
+ counts: z.ZodRecord<z.ZodString, z.ZodNumber>;
2323
+ sampleIds: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
2324
+ gaps: z.ZodArray<z.ZodString, "many">;
2325
+ }, "strip", z.ZodTypeAny, {
2326
+ probes: {
2327
+ status: "error" | "warn" | "pass" | "fail" | "not_enforced";
2328
+ score: number;
2329
+ probeId: string;
2330
+ probeType: "policy_check" | "mfa_enforcement" | "data_residency" | "audit_log_integrity" | "token_rotation" | "sop_coverage" | "auto_apply_provenance" | "sop_git_drift" | "guard_liveness" | "guardrail_authority" | "provider_availability";
2331
+ details: Record<string, unknown>;
2332
+ remediation: string | null;
2333
+ probedAt: string;
2334
+ observedSince: string;
2335
+ observations: number;
2336
+ }[];
2337
+ score: number | null;
2338
+ gaps: string[];
2339
+ category: "security" | "availability" | "processing_integrity" | "confidentiality" | "privacy";
2340
+ counts: Record<string, number>;
2341
+ sampleIds: Record<string, string[]>;
2342
+ }, {
2343
+ probes: {
2344
+ status: "error" | "warn" | "pass" | "fail" | "not_enforced";
2345
+ score: number;
2346
+ probeId: string;
2347
+ probeType: "policy_check" | "mfa_enforcement" | "data_residency" | "audit_log_integrity" | "token_rotation" | "sop_coverage" | "auto_apply_provenance" | "sop_git_drift" | "guard_liveness" | "guardrail_authority" | "provider_availability";
2348
+ details: Record<string, unknown>;
2349
+ remediation: string | null;
2350
+ probedAt: string;
2351
+ observedSince: string;
2352
+ observations: number;
2353
+ }[];
2354
+ score: number | null;
2355
+ gaps: string[];
2356
+ category: "security" | "availability" | "processing_integrity" | "confidentiality" | "privacy";
2357
+ counts: Record<string, number>;
2358
+ sampleIds: Record<string, string[]>;
2359
+ }>, "many">;
2360
+ probeHistoryDigest: z.ZodArray<z.ZodObject<{
2361
+ probeType: z.ZodEnum<["policy_check", "mfa_enforcement", "data_residency", "audit_log_integrity", "token_rotation", "sop_coverage", "auto_apply_provenance", "sop_git_drift", "guard_liveness", "guardrail_authority", "provider_availability"]>;
2362
+ rows: z.ZodNumber;
2363
+ firstAt: z.ZodNullable<z.ZodString>;
2364
+ lastAt: z.ZodNullable<z.ZodString>;
2365
+ statusCounts: z.ZodRecord<z.ZodString, z.ZodNumber>;
2366
+ }, "strip", z.ZodTypeAny, {
2367
+ probeType: "policy_check" | "mfa_enforcement" | "data_residency" | "audit_log_integrity" | "token_rotation" | "sop_coverage" | "auto_apply_provenance" | "sop_git_drift" | "guard_liveness" | "guardrail_authority" | "provider_availability";
2368
+ rows: number;
2369
+ firstAt: string | null;
2370
+ lastAt: string | null;
2371
+ statusCounts: Record<string, number>;
2372
+ }, {
2373
+ probeType: "policy_check" | "mfa_enforcement" | "data_residency" | "audit_log_integrity" | "token_rotation" | "sop_coverage" | "auto_apply_provenance" | "sop_git_drift" | "guard_liveness" | "guardrail_authority" | "provider_availability";
2374
+ rows: number;
2375
+ firstAt: string | null;
2376
+ lastAt: string | null;
2377
+ statusCounts: Record<string, number>;
2378
+ }>, "many">;
2379
+ frameworks: z.ZodOptional<z.ZodArray<z.ZodObject<{
2380
+ coverage: z.ZodObject<{
2381
+ frameworkId: z.ZodEnum<["eu_ai_act", "iso_42001", "nist_ai_rmf", "mitre_atlas"]>;
2382
+ name: z.ZodString;
2383
+ citation: z.ZodString;
2384
+ scope: z.ZodString;
2385
+ mappingVersion: z.ZodString;
2386
+ generatedAt: z.ZodString;
2387
+ summary: z.ZodObject<{
2388
+ controls: z.ZodNumber;
2389
+ mapped: z.ZodNumber;
2390
+ full: z.ZodNumber;
2391
+ partial: z.ZodNumber;
2392
+ states: z.ZodObject<{
2393
+ evidenced: z.ZodNumber;
2394
+ warning: z.ZodNumber;
2395
+ failing: z.ZodNumber;
2396
+ not_evidenced: z.ZodNumber;
2397
+ records_only: z.ZodNumber;
2398
+ }, "strip", z.ZodTypeAny, {
2399
+ evidenced: number;
2400
+ warning: number;
2401
+ failing: number;
2402
+ not_evidenced: number;
2403
+ records_only: number;
2404
+ }, {
2405
+ evidenced: number;
2406
+ warning: number;
2407
+ failing: number;
2408
+ not_evidenced: number;
2409
+ records_only: number;
2410
+ }>;
2411
+ }, "strip", z.ZodTypeAny, {
2412
+ controls: number;
2413
+ mapped: number;
2414
+ full: number;
2415
+ partial: number;
2416
+ states: {
2417
+ evidenced: number;
2418
+ warning: number;
2419
+ failing: number;
2420
+ not_evidenced: number;
2421
+ records_only: number;
2422
+ };
2423
+ }, {
2424
+ controls: number;
2425
+ mapped: number;
2426
+ full: number;
2427
+ partial: number;
2428
+ states: {
2429
+ evidenced: number;
2430
+ warning: number;
2431
+ failing: number;
2432
+ not_evidenced: number;
2433
+ records_only: number;
2434
+ };
2435
+ }>;
2436
+ controls: z.ZodArray<z.ZodObject<{
2437
+ controlId: z.ZodString;
2438
+ title: z.ZodString;
2439
+ coverage: z.ZodEnum<["full", "partial", "not_mapped"]>;
2440
+ state: z.ZodNullable<z.ZodEnum<["evidenced", "warning", "failing", "not_evidenced", "records_only"]>>;
2441
+ evidence: z.ZodArray<z.ZodObject<{
2442
+ kind: z.ZodEnum<["probe", "artifact", "control"]>;
2443
+ id: z.ZodString;
2444
+ title: z.ZodString;
2445
+ reference: z.ZodNullable<z.ZodString>;
2446
+ satisfies: z.ZodString;
2447
+ state: z.ZodEnum<["pass", "fail", "warn", "error", "not_enforced", "not_run", "available"]>;
2448
+ probedAt: z.ZodNullable<z.ZodString>;
2449
+ }, "strip", z.ZodTypeAny, {
2450
+ id: string;
2451
+ kind: "probe" | "artifact" | "control";
2452
+ title: string;
2453
+ state: "error" | "warn" | "pass" | "fail" | "not_enforced" | "not_run" | "available";
2454
+ probedAt: string | null;
2455
+ reference: string | null;
2456
+ satisfies: string;
2457
+ }, {
2458
+ id: string;
2459
+ kind: "probe" | "artifact" | "control";
2460
+ title: string;
2461
+ state: "error" | "warn" | "pass" | "fail" | "not_enforced" | "not_run" | "available";
2462
+ probedAt: string | null;
2463
+ reference: string | null;
2464
+ satisfies: string;
2465
+ }>, "many">;
2466
+ gaps: z.ZodArray<z.ZodString, "many">;
2467
+ mitigates: z.ZodOptional<z.ZodArray<z.ZodObject<{
2468
+ id: z.ZodString;
2469
+ name: z.ZodString;
2470
+ }, "strip", z.ZodTypeAny, {
2471
+ name: string;
2472
+ id: string;
2473
+ }, {
2474
+ name: string;
2475
+ id: string;
2476
+ }>, "many">>;
2477
+ }, "strip", z.ZodTypeAny, {
2478
+ title: string;
2479
+ coverage: "full" | "partial" | "not_mapped";
2480
+ state: "evidenced" | "warning" | "failing" | "not_evidenced" | "records_only" | null;
2481
+ controlId: string;
2482
+ evidence: {
2483
+ id: string;
2484
+ kind: "probe" | "artifact" | "control";
2485
+ title: string;
2486
+ state: "error" | "warn" | "pass" | "fail" | "not_enforced" | "not_run" | "available";
2487
+ probedAt: string | null;
2488
+ reference: string | null;
2489
+ satisfies: string;
2490
+ }[];
2491
+ gaps: string[];
2492
+ mitigates?: {
2493
+ name: string;
2494
+ id: string;
2495
+ }[] | undefined;
2496
+ }, {
2497
+ title: string;
2498
+ coverage: "full" | "partial" | "not_mapped";
2499
+ state: "evidenced" | "warning" | "failing" | "not_evidenced" | "records_only" | null;
2500
+ controlId: string;
2501
+ evidence: {
2502
+ id: string;
2503
+ kind: "probe" | "artifact" | "control";
2504
+ title: string;
2505
+ state: "error" | "warn" | "pass" | "fail" | "not_enforced" | "not_run" | "available";
2506
+ probedAt: string | null;
2507
+ reference: string | null;
2508
+ satisfies: string;
2509
+ }[];
2510
+ gaps: string[];
2511
+ mitigates?: {
2512
+ name: string;
2513
+ id: string;
2514
+ }[] | undefined;
2515
+ }>, "many">;
2516
+ }, "strip", z.ZodTypeAny, {
2517
+ name: string;
2518
+ scope: string;
2519
+ summary: {
2520
+ controls: number;
2521
+ mapped: number;
2522
+ full: number;
2523
+ partial: number;
2524
+ states: {
2525
+ evidenced: number;
2526
+ warning: number;
2527
+ failing: number;
2528
+ not_evidenced: number;
2529
+ records_only: number;
2530
+ };
2531
+ };
2532
+ frameworkId: "eu_ai_act" | "iso_42001" | "nist_ai_rmf" | "mitre_atlas";
2533
+ citation: string;
2534
+ mappingVersion: string;
2535
+ generatedAt: string;
2536
+ controls: {
2537
+ title: string;
2538
+ coverage: "full" | "partial" | "not_mapped";
2539
+ state: "evidenced" | "warning" | "failing" | "not_evidenced" | "records_only" | null;
2540
+ controlId: string;
2541
+ evidence: {
2542
+ id: string;
2543
+ kind: "probe" | "artifact" | "control";
2544
+ title: string;
2545
+ state: "error" | "warn" | "pass" | "fail" | "not_enforced" | "not_run" | "available";
2546
+ probedAt: string | null;
2547
+ reference: string | null;
2548
+ satisfies: string;
2549
+ }[];
2550
+ gaps: string[];
2551
+ mitigates?: {
2552
+ name: string;
2553
+ id: string;
2554
+ }[] | undefined;
2555
+ }[];
2556
+ }, {
2557
+ name: string;
2558
+ scope: string;
2559
+ summary: {
2560
+ controls: number;
2561
+ mapped: number;
2562
+ full: number;
2563
+ partial: number;
2564
+ states: {
2565
+ evidenced: number;
2566
+ warning: number;
2567
+ failing: number;
2568
+ not_evidenced: number;
2569
+ records_only: number;
2570
+ };
2571
+ };
2572
+ frameworkId: "eu_ai_act" | "iso_42001" | "nist_ai_rmf" | "mitre_atlas";
2573
+ citation: string;
2574
+ mappingVersion: string;
2575
+ generatedAt: string;
2576
+ controls: {
2577
+ title: string;
2578
+ coverage: "full" | "partial" | "not_mapped";
2579
+ state: "evidenced" | "warning" | "failing" | "not_evidenced" | "records_only" | null;
2580
+ controlId: string;
2581
+ evidence: {
2582
+ id: string;
2583
+ kind: "probe" | "artifact" | "control";
2584
+ title: string;
2585
+ state: "error" | "warn" | "pass" | "fail" | "not_enforced" | "not_run" | "available";
2586
+ probedAt: string | null;
2587
+ reference: string | null;
2588
+ satisfies: string;
2589
+ }[];
2590
+ gaps: string[];
2591
+ mitigates?: {
2592
+ name: string;
2593
+ id: string;
2594
+ }[] | undefined;
2595
+ }[];
2596
+ }>;
2597
+ report: z.ZodString;
2598
+ csv: z.ZodOptional<z.ZodString>;
2599
+ pdf: z.ZodOptional<z.ZodString>;
2600
+ }, "strip", z.ZodTypeAny, {
2601
+ coverage: {
2602
+ name: string;
2603
+ scope: string;
2604
+ summary: {
2605
+ controls: number;
2606
+ mapped: number;
2607
+ full: number;
2608
+ partial: number;
2609
+ states: {
2610
+ evidenced: number;
2611
+ warning: number;
2612
+ failing: number;
2613
+ not_evidenced: number;
2614
+ records_only: number;
2615
+ };
2616
+ };
2617
+ frameworkId: "eu_ai_act" | "iso_42001" | "nist_ai_rmf" | "mitre_atlas";
2618
+ citation: string;
2619
+ mappingVersion: string;
2620
+ generatedAt: string;
2621
+ controls: {
2622
+ title: string;
2623
+ coverage: "full" | "partial" | "not_mapped";
2624
+ state: "evidenced" | "warning" | "failing" | "not_evidenced" | "records_only" | null;
2625
+ controlId: string;
2626
+ evidence: {
2627
+ id: string;
2628
+ kind: "probe" | "artifact" | "control";
2629
+ title: string;
2630
+ state: "error" | "warn" | "pass" | "fail" | "not_enforced" | "not_run" | "available";
2631
+ probedAt: string | null;
2632
+ reference: string | null;
2633
+ satisfies: string;
2634
+ }[];
2635
+ gaps: string[];
2636
+ mitigates?: {
2637
+ name: string;
2638
+ id: string;
2639
+ }[] | undefined;
2640
+ }[];
2641
+ };
2642
+ report: string;
2643
+ csv?: string | undefined;
2644
+ pdf?: string | undefined;
2645
+ }, {
2646
+ coverage: {
2647
+ name: string;
2648
+ scope: string;
2649
+ summary: {
2650
+ controls: number;
2651
+ mapped: number;
2652
+ full: number;
2653
+ partial: number;
2654
+ states: {
2655
+ evidenced: number;
2656
+ warning: number;
2657
+ failing: number;
2658
+ not_evidenced: number;
2659
+ records_only: number;
2660
+ };
2661
+ };
2662
+ frameworkId: "eu_ai_act" | "iso_42001" | "nist_ai_rmf" | "mitre_atlas";
2663
+ citation: string;
2664
+ mappingVersion: string;
2665
+ generatedAt: string;
2666
+ controls: {
2667
+ title: string;
2668
+ coverage: "full" | "partial" | "not_mapped";
2669
+ state: "evidenced" | "warning" | "failing" | "not_evidenced" | "records_only" | null;
2670
+ controlId: string;
2671
+ evidence: {
2672
+ id: string;
2673
+ kind: "probe" | "artifact" | "control";
2674
+ title: string;
2675
+ state: "error" | "warn" | "pass" | "fail" | "not_enforced" | "not_run" | "available";
2676
+ probedAt: string | null;
2677
+ reference: string | null;
2678
+ satisfies: string;
2679
+ }[];
2680
+ gaps: string[];
2681
+ mitigates?: {
2682
+ name: string;
2683
+ id: string;
2684
+ }[] | undefined;
2685
+ }[];
2686
+ };
2687
+ report: string;
2688
+ csv?: string | undefined;
2689
+ pdf?: string | undefined;
2690
+ }>, "many">>;
2691
+ manifest: z.ZodObject<{
2692
+ algorithm: z.ZodLiteral<"sha256">;
2693
+ sections: z.ZodRecord<z.ZodString, z.ZodString>;
2694
+ archiveSha256: z.ZodString;
2695
+ signed: z.ZodOptional<z.ZodBoolean>;
2696
+ unsignedReason: z.ZodOptional<z.ZodString>;
2697
+ }, "strip", z.ZodTypeAny, {
2698
+ algorithm: "sha256";
2699
+ sections: Record<string, string>;
2700
+ archiveSha256: string;
2701
+ signed?: boolean | undefined;
2702
+ unsignedReason?: string | undefined;
2703
+ }, {
2704
+ algorithm: "sha256";
2705
+ sections: Record<string, string>;
2706
+ archiveSha256: string;
2707
+ signed?: boolean | undefined;
2708
+ unsignedReason?: string | undefined;
2709
+ }>;
2710
+ signature: z.ZodNullable<z.ZodObject<{
2711
+ algorithm: z.ZodLiteral<"Ed25519">;
2712
+ keyId: z.ZodString;
2713
+ preimageDomain: z.ZodString;
2714
+ value: z.ZodString;
2715
+ }, "strip", z.ZodTypeAny, {
2716
+ value: string;
2717
+ keyId: string;
2718
+ algorithm: "Ed25519";
2719
+ preimageDomain: string;
2720
+ }, {
2721
+ value: string;
2722
+ keyId: string;
2723
+ algorithm: "Ed25519";
2724
+ preimageDomain: string;
2725
+ }>>;
2726
+ }, "strip", z.ZodTypeAny, {
2727
+ workspaceId: string;
2728
+ runId: string;
2729
+ categories: {
2730
+ probes: {
2731
+ status: "error" | "warn" | "pass" | "fail" | "not_enforced";
2732
+ score: number;
2733
+ probeId: string;
2734
+ probeType: "policy_check" | "mfa_enforcement" | "data_residency" | "audit_log_integrity" | "token_rotation" | "sop_coverage" | "auto_apply_provenance" | "sop_git_drift" | "guard_liveness" | "guardrail_authority" | "provider_availability";
2735
+ details: Record<string, unknown>;
2736
+ remediation: string | null;
2737
+ probedAt: string;
2738
+ observedSince: string;
2739
+ observations: number;
2740
+ }[];
2741
+ score: number | null;
2742
+ gaps: string[];
2743
+ category: "security" | "availability" | "processing_integrity" | "confidentiality" | "privacy";
2744
+ counts: Record<string, number>;
2745
+ sampleIds: Record<string, string[]>;
2746
+ }[];
2747
+ signature: {
2748
+ value: string;
2749
+ keyId: string;
2750
+ algorithm: "Ed25519";
2751
+ preimageDomain: string;
2752
+ } | null;
2753
+ formatVersion: 1 | 2 | 3;
2754
+ periodStart: string;
2755
+ periodEnd: string;
2756
+ collectedAt: string;
2757
+ overallScore: number | null;
2758
+ probeHistoryDigest: {
2759
+ probeType: "policy_check" | "mfa_enforcement" | "data_residency" | "audit_log_integrity" | "token_rotation" | "sop_coverage" | "auto_apply_provenance" | "sop_git_drift" | "guard_liveness" | "guardrail_authority" | "provider_availability";
2760
+ rows: number;
2761
+ firstAt: string | null;
2762
+ lastAt: string | null;
2763
+ statusCounts: Record<string, number>;
2764
+ }[];
2765
+ manifest: {
2766
+ algorithm: "sha256";
2767
+ sections: Record<string, string>;
2768
+ archiveSha256: string;
2769
+ signed?: boolean | undefined;
2770
+ unsignedReason?: string | undefined;
2771
+ };
2772
+ frameworks?: {
2773
+ coverage: {
2774
+ name: string;
2775
+ scope: string;
2776
+ summary: {
2777
+ controls: number;
2778
+ mapped: number;
2779
+ full: number;
2780
+ partial: number;
2781
+ states: {
2782
+ evidenced: number;
2783
+ warning: number;
2784
+ failing: number;
2785
+ not_evidenced: number;
2786
+ records_only: number;
2787
+ };
2788
+ };
2789
+ frameworkId: "eu_ai_act" | "iso_42001" | "nist_ai_rmf" | "mitre_atlas";
2790
+ citation: string;
2791
+ mappingVersion: string;
2792
+ generatedAt: string;
2793
+ controls: {
2794
+ title: string;
2795
+ coverage: "full" | "partial" | "not_mapped";
2796
+ state: "evidenced" | "warning" | "failing" | "not_evidenced" | "records_only" | null;
2797
+ controlId: string;
2798
+ evidence: {
2799
+ id: string;
2800
+ kind: "probe" | "artifact" | "control";
2801
+ title: string;
2802
+ state: "error" | "warn" | "pass" | "fail" | "not_enforced" | "not_run" | "available";
2803
+ probedAt: string | null;
2804
+ reference: string | null;
2805
+ satisfies: string;
2806
+ }[];
2807
+ gaps: string[];
2808
+ mitigates?: {
2809
+ name: string;
2810
+ id: string;
2811
+ }[] | undefined;
2812
+ }[];
2813
+ };
2814
+ report: string;
2815
+ csv?: string | undefined;
2816
+ pdf?: string | undefined;
2817
+ }[] | undefined;
2818
+ }, {
2819
+ workspaceId: string;
2820
+ runId: string;
2821
+ categories: {
2822
+ probes: {
2823
+ status: "error" | "warn" | "pass" | "fail" | "not_enforced";
2824
+ score: number;
2825
+ probeId: string;
2826
+ probeType: "policy_check" | "mfa_enforcement" | "data_residency" | "audit_log_integrity" | "token_rotation" | "sop_coverage" | "auto_apply_provenance" | "sop_git_drift" | "guard_liveness" | "guardrail_authority" | "provider_availability";
2827
+ details: Record<string, unknown>;
2828
+ remediation: string | null;
2829
+ probedAt: string;
2830
+ observedSince: string;
2831
+ observations: number;
2832
+ }[];
2833
+ score: number | null;
2834
+ gaps: string[];
2835
+ category: "security" | "availability" | "processing_integrity" | "confidentiality" | "privacy";
2836
+ counts: Record<string, number>;
2837
+ sampleIds: Record<string, string[]>;
2838
+ }[];
2839
+ signature: {
2840
+ value: string;
2841
+ keyId: string;
2842
+ algorithm: "Ed25519";
2843
+ preimageDomain: string;
2844
+ } | null;
2845
+ formatVersion: 1 | 2 | 3;
2846
+ periodStart: string;
2847
+ periodEnd: string;
2848
+ collectedAt: string;
2849
+ overallScore: number | null;
2850
+ probeHistoryDigest: {
2851
+ probeType: "policy_check" | "mfa_enforcement" | "data_residency" | "audit_log_integrity" | "token_rotation" | "sop_coverage" | "auto_apply_provenance" | "sop_git_drift" | "guard_liveness" | "guardrail_authority" | "provider_availability";
2852
+ rows: number;
2853
+ firstAt: string | null;
2854
+ lastAt: string | null;
2855
+ statusCounts: Record<string, number>;
2856
+ }[];
2857
+ manifest: {
2858
+ algorithm: "sha256";
2859
+ sections: Record<string, string>;
2860
+ archiveSha256: string;
2861
+ signed?: boolean | undefined;
2862
+ unsignedReason?: string | undefined;
2863
+ };
2864
+ frameworks?: {
2865
+ coverage: {
2866
+ name: string;
2867
+ scope: string;
2868
+ summary: {
2869
+ controls: number;
2870
+ mapped: number;
2871
+ full: number;
2872
+ partial: number;
2873
+ states: {
2874
+ evidenced: number;
2875
+ warning: number;
2876
+ failing: number;
2877
+ not_evidenced: number;
2878
+ records_only: number;
2879
+ };
2880
+ };
2881
+ frameworkId: "eu_ai_act" | "iso_42001" | "nist_ai_rmf" | "mitre_atlas";
2882
+ citation: string;
2883
+ mappingVersion: string;
2884
+ generatedAt: string;
2885
+ controls: {
2886
+ title: string;
2887
+ coverage: "full" | "partial" | "not_mapped";
2888
+ state: "evidenced" | "warning" | "failing" | "not_evidenced" | "records_only" | null;
2889
+ controlId: string;
2890
+ evidence: {
2891
+ id: string;
2892
+ kind: "probe" | "artifact" | "control";
2893
+ title: string;
2894
+ state: "error" | "warn" | "pass" | "fail" | "not_enforced" | "not_run" | "available";
2895
+ probedAt: string | null;
2896
+ reference: string | null;
2897
+ satisfies: string;
2898
+ }[];
2899
+ gaps: string[];
2900
+ mitigates?: {
2901
+ name: string;
2902
+ id: string;
2903
+ }[] | undefined;
2904
+ }[];
2905
+ };
2906
+ report: string;
2907
+ csv?: string | undefined;
2908
+ pdf?: string | undefined;
2909
+ }[] | undefined;
2910
+ }>;
2911
+ artifactUrl: z.ZodNullable<z.ZodString>;
2912
+ }, "strip", z.ZodTypeAny, {
2913
+ runId: string;
2914
+ signed: true;
2915
+ signingKeyId: string;
2916
+ archive: {
2917
+ workspaceId: string;
2918
+ runId: string;
2919
+ categories: {
2920
+ probes: {
2921
+ status: "error" | "warn" | "pass" | "fail" | "not_enforced";
2922
+ score: number;
2923
+ probeId: string;
2924
+ probeType: "policy_check" | "mfa_enforcement" | "data_residency" | "audit_log_integrity" | "token_rotation" | "sop_coverage" | "auto_apply_provenance" | "sop_git_drift" | "guard_liveness" | "guardrail_authority" | "provider_availability";
2925
+ details: Record<string, unknown>;
2926
+ remediation: string | null;
2927
+ probedAt: string;
2928
+ observedSince: string;
2929
+ observations: number;
2930
+ }[];
2931
+ score: number | null;
2932
+ gaps: string[];
2933
+ category: "security" | "availability" | "processing_integrity" | "confidentiality" | "privacy";
2934
+ counts: Record<string, number>;
2935
+ sampleIds: Record<string, string[]>;
2936
+ }[];
2937
+ signature: {
2938
+ value: string;
2939
+ keyId: string;
2940
+ algorithm: "Ed25519";
2941
+ preimageDomain: string;
2942
+ } | null;
2943
+ formatVersion: 1 | 2 | 3;
2944
+ periodStart: string;
2945
+ periodEnd: string;
2946
+ collectedAt: string;
2947
+ overallScore: number | null;
2948
+ probeHistoryDigest: {
2949
+ probeType: "policy_check" | "mfa_enforcement" | "data_residency" | "audit_log_integrity" | "token_rotation" | "sop_coverage" | "auto_apply_provenance" | "sop_git_drift" | "guard_liveness" | "guardrail_authority" | "provider_availability";
2950
+ rows: number;
2951
+ firstAt: string | null;
2952
+ lastAt: string | null;
2953
+ statusCounts: Record<string, number>;
2954
+ }[];
2955
+ manifest: {
2956
+ algorithm: "sha256";
2957
+ sections: Record<string, string>;
2958
+ archiveSha256: string;
2959
+ signed?: boolean | undefined;
2960
+ unsignedReason?: string | undefined;
2961
+ };
2962
+ frameworks?: {
2963
+ coverage: {
2964
+ name: string;
2965
+ scope: string;
2966
+ summary: {
2967
+ controls: number;
2968
+ mapped: number;
2969
+ full: number;
2970
+ partial: number;
2971
+ states: {
2972
+ evidenced: number;
2973
+ warning: number;
2974
+ failing: number;
2975
+ not_evidenced: number;
2976
+ records_only: number;
2977
+ };
2978
+ };
2979
+ frameworkId: "eu_ai_act" | "iso_42001" | "nist_ai_rmf" | "mitre_atlas";
2980
+ citation: string;
2981
+ mappingVersion: string;
2982
+ generatedAt: string;
2983
+ controls: {
2984
+ title: string;
2985
+ coverage: "full" | "partial" | "not_mapped";
2986
+ state: "evidenced" | "warning" | "failing" | "not_evidenced" | "records_only" | null;
2987
+ controlId: string;
2988
+ evidence: {
2989
+ id: string;
2990
+ kind: "probe" | "artifact" | "control";
2991
+ title: string;
2992
+ state: "error" | "warn" | "pass" | "fail" | "not_enforced" | "not_run" | "available";
2993
+ probedAt: string | null;
2994
+ reference: string | null;
2995
+ satisfies: string;
2996
+ }[];
2997
+ gaps: string[];
2998
+ mitigates?: {
2999
+ name: string;
3000
+ id: string;
3001
+ }[] | undefined;
3002
+ }[];
3003
+ };
3004
+ report: string;
3005
+ csv?: string | undefined;
3006
+ pdf?: string | undefined;
3007
+ }[] | undefined;
3008
+ };
3009
+ artifactUrl: string | null;
3010
+ }, {
3011
+ runId: string;
3012
+ signed: true;
3013
+ signingKeyId: string;
3014
+ archive: {
3015
+ workspaceId: string;
3016
+ runId: string;
3017
+ categories: {
3018
+ probes: {
3019
+ status: "error" | "warn" | "pass" | "fail" | "not_enforced";
3020
+ score: number;
3021
+ probeId: string;
3022
+ probeType: "policy_check" | "mfa_enforcement" | "data_residency" | "audit_log_integrity" | "token_rotation" | "sop_coverage" | "auto_apply_provenance" | "sop_git_drift" | "guard_liveness" | "guardrail_authority" | "provider_availability";
3023
+ details: Record<string, unknown>;
3024
+ remediation: string | null;
3025
+ probedAt: string;
3026
+ observedSince: string;
3027
+ observations: number;
3028
+ }[];
3029
+ score: number | null;
3030
+ gaps: string[];
3031
+ category: "security" | "availability" | "processing_integrity" | "confidentiality" | "privacy";
3032
+ counts: Record<string, number>;
3033
+ sampleIds: Record<string, string[]>;
3034
+ }[];
3035
+ signature: {
3036
+ value: string;
3037
+ keyId: string;
3038
+ algorithm: "Ed25519";
3039
+ preimageDomain: string;
3040
+ } | null;
3041
+ formatVersion: 1 | 2 | 3;
3042
+ periodStart: string;
3043
+ periodEnd: string;
3044
+ collectedAt: string;
3045
+ overallScore: number | null;
3046
+ probeHistoryDigest: {
3047
+ probeType: "policy_check" | "mfa_enforcement" | "data_residency" | "audit_log_integrity" | "token_rotation" | "sop_coverage" | "auto_apply_provenance" | "sop_git_drift" | "guard_liveness" | "guardrail_authority" | "provider_availability";
3048
+ rows: number;
3049
+ firstAt: string | null;
3050
+ lastAt: string | null;
3051
+ statusCounts: Record<string, number>;
3052
+ }[];
3053
+ manifest: {
3054
+ algorithm: "sha256";
3055
+ sections: Record<string, string>;
3056
+ archiveSha256: string;
3057
+ signed?: boolean | undefined;
3058
+ unsignedReason?: string | undefined;
3059
+ };
3060
+ frameworks?: {
3061
+ coverage: {
3062
+ name: string;
3063
+ scope: string;
3064
+ summary: {
3065
+ controls: number;
3066
+ mapped: number;
3067
+ full: number;
3068
+ partial: number;
3069
+ states: {
3070
+ evidenced: number;
3071
+ warning: number;
3072
+ failing: number;
3073
+ not_evidenced: number;
3074
+ records_only: number;
3075
+ };
3076
+ };
3077
+ frameworkId: "eu_ai_act" | "iso_42001" | "nist_ai_rmf" | "mitre_atlas";
3078
+ citation: string;
3079
+ mappingVersion: string;
3080
+ generatedAt: string;
3081
+ controls: {
3082
+ title: string;
3083
+ coverage: "full" | "partial" | "not_mapped";
3084
+ state: "evidenced" | "warning" | "failing" | "not_evidenced" | "records_only" | null;
3085
+ controlId: string;
3086
+ evidence: {
3087
+ id: string;
3088
+ kind: "probe" | "artifact" | "control";
3089
+ title: string;
3090
+ state: "error" | "warn" | "pass" | "fail" | "not_enforced" | "not_run" | "available";
3091
+ probedAt: string | null;
3092
+ reference: string | null;
3093
+ satisfies: string;
3094
+ }[];
3095
+ gaps: string[];
3096
+ mitigates?: {
3097
+ name: string;
3098
+ id: string;
3099
+ }[] | undefined;
3100
+ }[];
3101
+ };
3102
+ report: string;
3103
+ csv?: string | undefined;
3104
+ pdf?: string | undefined;
3105
+ }[] | undefined;
3106
+ };
3107
+ artifactUrl: string | null;
3108
+ }>, z.ZodObject<{
3109
+ signed: z.ZodLiteral<false>;
3110
+ unsignedReason: z.ZodString;
3111
+ runId: z.ZodString;
3112
+ archive: z.ZodObject<{
3113
+ formatVersion: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
3114
+ workspaceId: z.ZodString;
3115
+ runId: z.ZodString;
3116
+ periodStart: z.ZodString;
3117
+ periodEnd: z.ZodString;
3118
+ collectedAt: z.ZodString;
3119
+ overallScore: z.ZodNullable<z.ZodNumber>;
3120
+ categories: z.ZodArray<z.ZodObject<{
3121
+ category: z.ZodEnum<["security", "availability", "processing_integrity", "confidentiality", "privacy"]>;
3122
+ score: z.ZodNullable<z.ZodNumber>;
3123
+ probes: z.ZodArray<z.ZodObject<{
3124
+ probeId: z.ZodString;
3125
+ probeType: z.ZodEnum<["policy_check", "mfa_enforcement", "data_residency", "audit_log_integrity", "token_rotation", "sop_coverage", "auto_apply_provenance", "sop_git_drift", "guard_liveness", "guardrail_authority", "provider_availability"]>;
3126
+ status: z.ZodEnum<["pass", "fail", "warn", "error", "not_enforced"]>;
3127
+ score: z.ZodNumber;
3128
+ details: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3129
+ remediation: z.ZodNullable<z.ZodString>;
3130
+ probedAt: z.ZodString;
3131
+ observedSince: z.ZodString;
3132
+ observations: z.ZodNumber;
3133
+ }, "strip", z.ZodTypeAny, {
3134
+ status: "error" | "warn" | "pass" | "fail" | "not_enforced";
3135
+ score: number;
3136
+ probeId: string;
3137
+ probeType: "policy_check" | "mfa_enforcement" | "data_residency" | "audit_log_integrity" | "token_rotation" | "sop_coverage" | "auto_apply_provenance" | "sop_git_drift" | "guard_liveness" | "guardrail_authority" | "provider_availability";
3138
+ details: Record<string, unknown>;
3139
+ remediation: string | null;
3140
+ probedAt: string;
3141
+ observedSince: string;
3142
+ observations: number;
3143
+ }, {
3144
+ status: "error" | "warn" | "pass" | "fail" | "not_enforced";
3145
+ score: number;
3146
+ probeId: string;
3147
+ probeType: "policy_check" | "mfa_enforcement" | "data_residency" | "audit_log_integrity" | "token_rotation" | "sop_coverage" | "auto_apply_provenance" | "sop_git_drift" | "guard_liveness" | "guardrail_authority" | "provider_availability";
3148
+ details: Record<string, unknown>;
3149
+ remediation: string | null;
3150
+ probedAt: string;
3151
+ observedSince: string;
3152
+ observations: number;
3153
+ }>, "many">;
3154
+ counts: z.ZodRecord<z.ZodString, z.ZodNumber>;
3155
+ sampleIds: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
3156
+ gaps: z.ZodArray<z.ZodString, "many">;
3157
+ }, "strip", z.ZodTypeAny, {
3158
+ probes: {
3159
+ status: "error" | "warn" | "pass" | "fail" | "not_enforced";
3160
+ score: number;
3161
+ probeId: string;
3162
+ probeType: "policy_check" | "mfa_enforcement" | "data_residency" | "audit_log_integrity" | "token_rotation" | "sop_coverage" | "auto_apply_provenance" | "sop_git_drift" | "guard_liveness" | "guardrail_authority" | "provider_availability";
3163
+ details: Record<string, unknown>;
3164
+ remediation: string | null;
3165
+ probedAt: string;
3166
+ observedSince: string;
3167
+ observations: number;
3168
+ }[];
3169
+ score: number | null;
3170
+ gaps: string[];
3171
+ category: "security" | "availability" | "processing_integrity" | "confidentiality" | "privacy";
3172
+ counts: Record<string, number>;
3173
+ sampleIds: Record<string, string[]>;
3174
+ }, {
3175
+ probes: {
3176
+ status: "error" | "warn" | "pass" | "fail" | "not_enforced";
3177
+ score: number;
3178
+ probeId: string;
3179
+ probeType: "policy_check" | "mfa_enforcement" | "data_residency" | "audit_log_integrity" | "token_rotation" | "sop_coverage" | "auto_apply_provenance" | "sop_git_drift" | "guard_liveness" | "guardrail_authority" | "provider_availability";
3180
+ details: Record<string, unknown>;
3181
+ remediation: string | null;
3182
+ probedAt: string;
3183
+ observedSince: string;
3184
+ observations: number;
3185
+ }[];
3186
+ score: number | null;
3187
+ gaps: string[];
3188
+ category: "security" | "availability" | "processing_integrity" | "confidentiality" | "privacy";
3189
+ counts: Record<string, number>;
3190
+ sampleIds: Record<string, string[]>;
3191
+ }>, "many">;
3192
+ probeHistoryDigest: z.ZodArray<z.ZodObject<{
3193
+ probeType: z.ZodEnum<["policy_check", "mfa_enforcement", "data_residency", "audit_log_integrity", "token_rotation", "sop_coverage", "auto_apply_provenance", "sop_git_drift", "guard_liveness", "guardrail_authority", "provider_availability"]>;
3194
+ rows: z.ZodNumber;
3195
+ firstAt: z.ZodNullable<z.ZodString>;
3196
+ lastAt: z.ZodNullable<z.ZodString>;
3197
+ statusCounts: z.ZodRecord<z.ZodString, z.ZodNumber>;
3198
+ }, "strip", z.ZodTypeAny, {
3199
+ probeType: "policy_check" | "mfa_enforcement" | "data_residency" | "audit_log_integrity" | "token_rotation" | "sop_coverage" | "auto_apply_provenance" | "sop_git_drift" | "guard_liveness" | "guardrail_authority" | "provider_availability";
3200
+ rows: number;
3201
+ firstAt: string | null;
3202
+ lastAt: string | null;
3203
+ statusCounts: Record<string, number>;
3204
+ }, {
3205
+ probeType: "policy_check" | "mfa_enforcement" | "data_residency" | "audit_log_integrity" | "token_rotation" | "sop_coverage" | "auto_apply_provenance" | "sop_git_drift" | "guard_liveness" | "guardrail_authority" | "provider_availability";
3206
+ rows: number;
3207
+ firstAt: string | null;
3208
+ lastAt: string | null;
3209
+ statusCounts: Record<string, number>;
3210
+ }>, "many">;
3211
+ frameworks: z.ZodOptional<z.ZodArray<z.ZodObject<{
3212
+ coverage: z.ZodObject<{
3213
+ frameworkId: z.ZodEnum<["eu_ai_act", "iso_42001", "nist_ai_rmf", "mitre_atlas"]>;
3214
+ name: z.ZodString;
3215
+ citation: z.ZodString;
3216
+ scope: z.ZodString;
3217
+ mappingVersion: z.ZodString;
3218
+ generatedAt: z.ZodString;
3219
+ summary: z.ZodObject<{
3220
+ controls: z.ZodNumber;
3221
+ mapped: z.ZodNumber;
3222
+ full: z.ZodNumber;
3223
+ partial: z.ZodNumber;
3224
+ states: z.ZodObject<{
3225
+ evidenced: z.ZodNumber;
3226
+ warning: z.ZodNumber;
3227
+ failing: z.ZodNumber;
3228
+ not_evidenced: z.ZodNumber;
3229
+ records_only: z.ZodNumber;
3230
+ }, "strip", z.ZodTypeAny, {
3231
+ evidenced: number;
3232
+ warning: number;
3233
+ failing: number;
3234
+ not_evidenced: number;
3235
+ records_only: number;
3236
+ }, {
3237
+ evidenced: number;
3238
+ warning: number;
3239
+ failing: number;
3240
+ not_evidenced: number;
3241
+ records_only: number;
3242
+ }>;
3243
+ }, "strip", z.ZodTypeAny, {
3244
+ controls: number;
3245
+ mapped: number;
3246
+ full: number;
3247
+ partial: number;
3248
+ states: {
3249
+ evidenced: number;
3250
+ warning: number;
3251
+ failing: number;
3252
+ not_evidenced: number;
3253
+ records_only: number;
3254
+ };
3255
+ }, {
3256
+ controls: number;
3257
+ mapped: number;
3258
+ full: number;
3259
+ partial: number;
3260
+ states: {
3261
+ evidenced: number;
3262
+ warning: number;
3263
+ failing: number;
3264
+ not_evidenced: number;
3265
+ records_only: number;
3266
+ };
3267
+ }>;
3268
+ controls: z.ZodArray<z.ZodObject<{
3269
+ controlId: z.ZodString;
3270
+ title: z.ZodString;
3271
+ coverage: z.ZodEnum<["full", "partial", "not_mapped"]>;
3272
+ state: z.ZodNullable<z.ZodEnum<["evidenced", "warning", "failing", "not_evidenced", "records_only"]>>;
3273
+ evidence: z.ZodArray<z.ZodObject<{
3274
+ kind: z.ZodEnum<["probe", "artifact", "control"]>;
3275
+ id: z.ZodString;
3276
+ title: z.ZodString;
3277
+ reference: z.ZodNullable<z.ZodString>;
3278
+ satisfies: z.ZodString;
3279
+ state: z.ZodEnum<["pass", "fail", "warn", "error", "not_enforced", "not_run", "available"]>;
3280
+ probedAt: z.ZodNullable<z.ZodString>;
3281
+ }, "strip", z.ZodTypeAny, {
3282
+ id: string;
3283
+ kind: "probe" | "artifact" | "control";
3284
+ title: string;
3285
+ state: "error" | "warn" | "pass" | "fail" | "not_enforced" | "not_run" | "available";
3286
+ probedAt: string | null;
3287
+ reference: string | null;
3288
+ satisfies: string;
3289
+ }, {
3290
+ id: string;
3291
+ kind: "probe" | "artifact" | "control";
3292
+ title: string;
3293
+ state: "error" | "warn" | "pass" | "fail" | "not_enforced" | "not_run" | "available";
3294
+ probedAt: string | null;
3295
+ reference: string | null;
3296
+ satisfies: string;
3297
+ }>, "many">;
3298
+ gaps: z.ZodArray<z.ZodString, "many">;
3299
+ mitigates: z.ZodOptional<z.ZodArray<z.ZodObject<{
3300
+ id: z.ZodString;
3301
+ name: z.ZodString;
3302
+ }, "strip", z.ZodTypeAny, {
3303
+ name: string;
3304
+ id: string;
3305
+ }, {
3306
+ name: string;
3307
+ id: string;
3308
+ }>, "many">>;
3309
+ }, "strip", z.ZodTypeAny, {
3310
+ title: string;
3311
+ coverage: "full" | "partial" | "not_mapped";
3312
+ state: "evidenced" | "warning" | "failing" | "not_evidenced" | "records_only" | null;
3313
+ controlId: string;
3314
+ evidence: {
3315
+ id: string;
3316
+ kind: "probe" | "artifact" | "control";
3317
+ title: string;
3318
+ state: "error" | "warn" | "pass" | "fail" | "not_enforced" | "not_run" | "available";
3319
+ probedAt: string | null;
3320
+ reference: string | null;
3321
+ satisfies: string;
3322
+ }[];
3323
+ gaps: string[];
3324
+ mitigates?: {
3325
+ name: string;
3326
+ id: string;
3327
+ }[] | undefined;
3328
+ }, {
3329
+ title: string;
3330
+ coverage: "full" | "partial" | "not_mapped";
3331
+ state: "evidenced" | "warning" | "failing" | "not_evidenced" | "records_only" | null;
3332
+ controlId: string;
3333
+ evidence: {
3334
+ id: string;
3335
+ kind: "probe" | "artifact" | "control";
3336
+ title: string;
3337
+ state: "error" | "warn" | "pass" | "fail" | "not_enforced" | "not_run" | "available";
3338
+ probedAt: string | null;
3339
+ reference: string | null;
3340
+ satisfies: string;
3341
+ }[];
3342
+ gaps: string[];
3343
+ mitigates?: {
3344
+ name: string;
3345
+ id: string;
3346
+ }[] | undefined;
3347
+ }>, "many">;
3348
+ }, "strip", z.ZodTypeAny, {
3349
+ name: string;
3350
+ scope: string;
3351
+ summary: {
3352
+ controls: number;
3353
+ mapped: number;
3354
+ full: number;
3355
+ partial: number;
3356
+ states: {
3357
+ evidenced: number;
3358
+ warning: number;
3359
+ failing: number;
3360
+ not_evidenced: number;
3361
+ records_only: number;
3362
+ };
3363
+ };
3364
+ frameworkId: "eu_ai_act" | "iso_42001" | "nist_ai_rmf" | "mitre_atlas";
3365
+ citation: string;
3366
+ mappingVersion: string;
3367
+ generatedAt: string;
3368
+ controls: {
3369
+ title: string;
3370
+ coverage: "full" | "partial" | "not_mapped";
3371
+ state: "evidenced" | "warning" | "failing" | "not_evidenced" | "records_only" | null;
3372
+ controlId: string;
3373
+ evidence: {
3374
+ id: string;
3375
+ kind: "probe" | "artifact" | "control";
3376
+ title: string;
3377
+ state: "error" | "warn" | "pass" | "fail" | "not_enforced" | "not_run" | "available";
3378
+ probedAt: string | null;
3379
+ reference: string | null;
3380
+ satisfies: string;
3381
+ }[];
3382
+ gaps: string[];
3383
+ mitigates?: {
3384
+ name: string;
3385
+ id: string;
3386
+ }[] | undefined;
3387
+ }[];
3388
+ }, {
3389
+ name: string;
3390
+ scope: string;
3391
+ summary: {
3392
+ controls: number;
3393
+ mapped: number;
3394
+ full: number;
3395
+ partial: number;
3396
+ states: {
3397
+ evidenced: number;
3398
+ warning: number;
3399
+ failing: number;
3400
+ not_evidenced: number;
3401
+ records_only: number;
3402
+ };
3403
+ };
3404
+ frameworkId: "eu_ai_act" | "iso_42001" | "nist_ai_rmf" | "mitre_atlas";
3405
+ citation: string;
3406
+ mappingVersion: string;
3407
+ generatedAt: string;
3408
+ controls: {
3409
+ title: string;
3410
+ coverage: "full" | "partial" | "not_mapped";
3411
+ state: "evidenced" | "warning" | "failing" | "not_evidenced" | "records_only" | null;
3412
+ controlId: string;
3413
+ evidence: {
3414
+ id: string;
3415
+ kind: "probe" | "artifact" | "control";
3416
+ title: string;
3417
+ state: "error" | "warn" | "pass" | "fail" | "not_enforced" | "not_run" | "available";
3418
+ probedAt: string | null;
3419
+ reference: string | null;
3420
+ satisfies: string;
3421
+ }[];
3422
+ gaps: string[];
3423
+ mitigates?: {
3424
+ name: string;
3425
+ id: string;
3426
+ }[] | undefined;
3427
+ }[];
3428
+ }>;
3429
+ report: z.ZodString;
3430
+ csv: z.ZodOptional<z.ZodString>;
3431
+ pdf: z.ZodOptional<z.ZodString>;
3432
+ }, "strip", z.ZodTypeAny, {
3433
+ coverage: {
3434
+ name: string;
3435
+ scope: string;
3436
+ summary: {
3437
+ controls: number;
3438
+ mapped: number;
3439
+ full: number;
3440
+ partial: number;
3441
+ states: {
3442
+ evidenced: number;
3443
+ warning: number;
3444
+ failing: number;
3445
+ not_evidenced: number;
3446
+ records_only: number;
3447
+ };
3448
+ };
3449
+ frameworkId: "eu_ai_act" | "iso_42001" | "nist_ai_rmf" | "mitre_atlas";
3450
+ citation: string;
3451
+ mappingVersion: string;
3452
+ generatedAt: string;
3453
+ controls: {
3454
+ title: string;
3455
+ coverage: "full" | "partial" | "not_mapped";
3456
+ state: "evidenced" | "warning" | "failing" | "not_evidenced" | "records_only" | null;
3457
+ controlId: string;
3458
+ evidence: {
3459
+ id: string;
3460
+ kind: "probe" | "artifact" | "control";
3461
+ title: string;
3462
+ state: "error" | "warn" | "pass" | "fail" | "not_enforced" | "not_run" | "available";
3463
+ probedAt: string | null;
3464
+ reference: string | null;
3465
+ satisfies: string;
3466
+ }[];
3467
+ gaps: string[];
3468
+ mitigates?: {
3469
+ name: string;
3470
+ id: string;
3471
+ }[] | undefined;
3472
+ }[];
3473
+ };
3474
+ report: string;
3475
+ csv?: string | undefined;
3476
+ pdf?: string | undefined;
3477
+ }, {
3478
+ coverage: {
3479
+ name: string;
3480
+ scope: string;
3481
+ summary: {
3482
+ controls: number;
3483
+ mapped: number;
3484
+ full: number;
3485
+ partial: number;
3486
+ states: {
3487
+ evidenced: number;
3488
+ warning: number;
3489
+ failing: number;
3490
+ not_evidenced: number;
3491
+ records_only: number;
3492
+ };
3493
+ };
3494
+ frameworkId: "eu_ai_act" | "iso_42001" | "nist_ai_rmf" | "mitre_atlas";
3495
+ citation: string;
3496
+ mappingVersion: string;
3497
+ generatedAt: string;
3498
+ controls: {
3499
+ title: string;
3500
+ coverage: "full" | "partial" | "not_mapped";
3501
+ state: "evidenced" | "warning" | "failing" | "not_evidenced" | "records_only" | null;
3502
+ controlId: string;
3503
+ evidence: {
3504
+ id: string;
3505
+ kind: "probe" | "artifact" | "control";
3506
+ title: string;
3507
+ state: "error" | "warn" | "pass" | "fail" | "not_enforced" | "not_run" | "available";
3508
+ probedAt: string | null;
3509
+ reference: string | null;
3510
+ satisfies: string;
3511
+ }[];
3512
+ gaps: string[];
3513
+ mitigates?: {
3514
+ name: string;
3515
+ id: string;
3516
+ }[] | undefined;
3517
+ }[];
3518
+ };
3519
+ report: string;
3520
+ csv?: string | undefined;
3521
+ pdf?: string | undefined;
3522
+ }>, "many">>;
3523
+ manifest: z.ZodObject<{
3524
+ algorithm: z.ZodLiteral<"sha256">;
3525
+ sections: z.ZodRecord<z.ZodString, z.ZodString>;
3526
+ archiveSha256: z.ZodString;
3527
+ signed: z.ZodOptional<z.ZodBoolean>;
3528
+ unsignedReason: z.ZodOptional<z.ZodString>;
3529
+ }, "strip", z.ZodTypeAny, {
3530
+ algorithm: "sha256";
3531
+ sections: Record<string, string>;
3532
+ archiveSha256: string;
3533
+ signed?: boolean | undefined;
3534
+ unsignedReason?: string | undefined;
3535
+ }, {
3536
+ algorithm: "sha256";
3537
+ sections: Record<string, string>;
3538
+ archiveSha256: string;
3539
+ signed?: boolean | undefined;
3540
+ unsignedReason?: string | undefined;
3541
+ }>;
3542
+ signature: z.ZodNullable<z.ZodObject<{
3543
+ algorithm: z.ZodLiteral<"Ed25519">;
3544
+ keyId: z.ZodString;
3545
+ preimageDomain: z.ZodString;
3546
+ value: z.ZodString;
3547
+ }, "strip", z.ZodTypeAny, {
3548
+ value: string;
3549
+ keyId: string;
3550
+ algorithm: "Ed25519";
3551
+ preimageDomain: string;
3552
+ }, {
3553
+ value: string;
3554
+ keyId: string;
3555
+ algorithm: "Ed25519";
3556
+ preimageDomain: string;
3557
+ }>>;
3558
+ }, "strip", z.ZodTypeAny, {
3559
+ workspaceId: string;
3560
+ runId: string;
3561
+ categories: {
3562
+ probes: {
3563
+ status: "error" | "warn" | "pass" | "fail" | "not_enforced";
3564
+ score: number;
3565
+ probeId: string;
3566
+ probeType: "policy_check" | "mfa_enforcement" | "data_residency" | "audit_log_integrity" | "token_rotation" | "sop_coverage" | "auto_apply_provenance" | "sop_git_drift" | "guard_liveness" | "guardrail_authority" | "provider_availability";
3567
+ details: Record<string, unknown>;
3568
+ remediation: string | null;
3569
+ probedAt: string;
3570
+ observedSince: string;
3571
+ observations: number;
3572
+ }[];
3573
+ score: number | null;
3574
+ gaps: string[];
3575
+ category: "security" | "availability" | "processing_integrity" | "confidentiality" | "privacy";
3576
+ counts: Record<string, number>;
3577
+ sampleIds: Record<string, string[]>;
3578
+ }[];
3579
+ signature: {
3580
+ value: string;
3581
+ keyId: string;
3582
+ algorithm: "Ed25519";
3583
+ preimageDomain: string;
3584
+ } | null;
3585
+ formatVersion: 1 | 2 | 3;
3586
+ periodStart: string;
3587
+ periodEnd: string;
3588
+ collectedAt: string;
3589
+ overallScore: number | null;
3590
+ probeHistoryDigest: {
3591
+ probeType: "policy_check" | "mfa_enforcement" | "data_residency" | "audit_log_integrity" | "token_rotation" | "sop_coverage" | "auto_apply_provenance" | "sop_git_drift" | "guard_liveness" | "guardrail_authority" | "provider_availability";
3592
+ rows: number;
3593
+ firstAt: string | null;
3594
+ lastAt: string | null;
3595
+ statusCounts: Record<string, number>;
3596
+ }[];
3597
+ manifest: {
3598
+ algorithm: "sha256";
3599
+ sections: Record<string, string>;
3600
+ archiveSha256: string;
3601
+ signed?: boolean | undefined;
3602
+ unsignedReason?: string | undefined;
3603
+ };
3604
+ frameworks?: {
3605
+ coverage: {
3606
+ name: string;
3607
+ scope: string;
3608
+ summary: {
3609
+ controls: number;
3610
+ mapped: number;
3611
+ full: number;
3612
+ partial: number;
3613
+ states: {
3614
+ evidenced: number;
3615
+ warning: number;
3616
+ failing: number;
3617
+ not_evidenced: number;
3618
+ records_only: number;
3619
+ };
3620
+ };
3621
+ frameworkId: "eu_ai_act" | "iso_42001" | "nist_ai_rmf" | "mitre_atlas";
3622
+ citation: string;
3623
+ mappingVersion: string;
3624
+ generatedAt: string;
3625
+ controls: {
3626
+ title: string;
3627
+ coverage: "full" | "partial" | "not_mapped";
3628
+ state: "evidenced" | "warning" | "failing" | "not_evidenced" | "records_only" | null;
3629
+ controlId: string;
3630
+ evidence: {
3631
+ id: string;
3632
+ kind: "probe" | "artifact" | "control";
3633
+ title: string;
3634
+ state: "error" | "warn" | "pass" | "fail" | "not_enforced" | "not_run" | "available";
3635
+ probedAt: string | null;
3636
+ reference: string | null;
3637
+ satisfies: string;
3638
+ }[];
3639
+ gaps: string[];
3640
+ mitigates?: {
3641
+ name: string;
3642
+ id: string;
3643
+ }[] | undefined;
3644
+ }[];
3645
+ };
3646
+ report: string;
3647
+ csv?: string | undefined;
3648
+ pdf?: string | undefined;
3649
+ }[] | undefined;
3650
+ }, {
3651
+ workspaceId: string;
3652
+ runId: string;
3653
+ categories: {
3654
+ probes: {
3655
+ status: "error" | "warn" | "pass" | "fail" | "not_enforced";
3656
+ score: number;
3657
+ probeId: string;
3658
+ probeType: "policy_check" | "mfa_enforcement" | "data_residency" | "audit_log_integrity" | "token_rotation" | "sop_coverage" | "auto_apply_provenance" | "sop_git_drift" | "guard_liveness" | "guardrail_authority" | "provider_availability";
3659
+ details: Record<string, unknown>;
3660
+ remediation: string | null;
3661
+ probedAt: string;
3662
+ observedSince: string;
3663
+ observations: number;
3664
+ }[];
3665
+ score: number | null;
3666
+ gaps: string[];
3667
+ category: "security" | "availability" | "processing_integrity" | "confidentiality" | "privacy";
3668
+ counts: Record<string, number>;
3669
+ sampleIds: Record<string, string[]>;
3670
+ }[];
3671
+ signature: {
3672
+ value: string;
3673
+ keyId: string;
3674
+ algorithm: "Ed25519";
3675
+ preimageDomain: string;
3676
+ } | null;
3677
+ formatVersion: 1 | 2 | 3;
3678
+ periodStart: string;
3679
+ periodEnd: string;
3680
+ collectedAt: string;
3681
+ overallScore: number | null;
3682
+ probeHistoryDigest: {
3683
+ probeType: "policy_check" | "mfa_enforcement" | "data_residency" | "audit_log_integrity" | "token_rotation" | "sop_coverage" | "auto_apply_provenance" | "sop_git_drift" | "guard_liveness" | "guardrail_authority" | "provider_availability";
3684
+ rows: number;
3685
+ firstAt: string | null;
3686
+ lastAt: string | null;
3687
+ statusCounts: Record<string, number>;
3688
+ }[];
3689
+ manifest: {
3690
+ algorithm: "sha256";
3691
+ sections: Record<string, string>;
3692
+ archiveSha256: string;
3693
+ signed?: boolean | undefined;
3694
+ unsignedReason?: string | undefined;
3695
+ };
3696
+ frameworks?: {
3697
+ coverage: {
3698
+ name: string;
3699
+ scope: string;
3700
+ summary: {
3701
+ controls: number;
3702
+ mapped: number;
3703
+ full: number;
3704
+ partial: number;
3705
+ states: {
3706
+ evidenced: number;
3707
+ warning: number;
3708
+ failing: number;
3709
+ not_evidenced: number;
3710
+ records_only: number;
3711
+ };
3712
+ };
3713
+ frameworkId: "eu_ai_act" | "iso_42001" | "nist_ai_rmf" | "mitre_atlas";
3714
+ citation: string;
3715
+ mappingVersion: string;
3716
+ generatedAt: string;
3717
+ controls: {
3718
+ title: string;
3719
+ coverage: "full" | "partial" | "not_mapped";
3720
+ state: "evidenced" | "warning" | "failing" | "not_evidenced" | "records_only" | null;
3721
+ controlId: string;
3722
+ evidence: {
3723
+ id: string;
3724
+ kind: "probe" | "artifact" | "control";
3725
+ title: string;
3726
+ state: "error" | "warn" | "pass" | "fail" | "not_enforced" | "not_run" | "available";
3727
+ probedAt: string | null;
3728
+ reference: string | null;
3729
+ satisfies: string;
3730
+ }[];
3731
+ gaps: string[];
3732
+ mitigates?: {
3733
+ name: string;
3734
+ id: string;
3735
+ }[] | undefined;
3736
+ }[];
3737
+ };
3738
+ report: string;
3739
+ csv?: string | undefined;
3740
+ pdf?: string | undefined;
3741
+ }[] | undefined;
3742
+ }>;
3743
+ artifactUrl: z.ZodNullable<z.ZodString>;
3744
+ }, "strip", z.ZodTypeAny, {
3745
+ runId: string;
3746
+ signed: false;
3747
+ unsignedReason: string;
3748
+ archive: {
3749
+ workspaceId: string;
3750
+ runId: string;
3751
+ categories: {
3752
+ probes: {
3753
+ status: "error" | "warn" | "pass" | "fail" | "not_enforced";
3754
+ score: number;
3755
+ probeId: string;
3756
+ probeType: "policy_check" | "mfa_enforcement" | "data_residency" | "audit_log_integrity" | "token_rotation" | "sop_coverage" | "auto_apply_provenance" | "sop_git_drift" | "guard_liveness" | "guardrail_authority" | "provider_availability";
3757
+ details: Record<string, unknown>;
3758
+ remediation: string | null;
3759
+ probedAt: string;
3760
+ observedSince: string;
3761
+ observations: number;
3762
+ }[];
3763
+ score: number | null;
3764
+ gaps: string[];
3765
+ category: "security" | "availability" | "processing_integrity" | "confidentiality" | "privacy";
3766
+ counts: Record<string, number>;
3767
+ sampleIds: Record<string, string[]>;
3768
+ }[];
3769
+ signature: {
3770
+ value: string;
3771
+ keyId: string;
3772
+ algorithm: "Ed25519";
3773
+ preimageDomain: string;
3774
+ } | null;
3775
+ formatVersion: 1 | 2 | 3;
3776
+ periodStart: string;
3777
+ periodEnd: string;
3778
+ collectedAt: string;
3779
+ overallScore: number | null;
3780
+ probeHistoryDigest: {
3781
+ probeType: "policy_check" | "mfa_enforcement" | "data_residency" | "audit_log_integrity" | "token_rotation" | "sop_coverage" | "auto_apply_provenance" | "sop_git_drift" | "guard_liveness" | "guardrail_authority" | "provider_availability";
3782
+ rows: number;
3783
+ firstAt: string | null;
3784
+ lastAt: string | null;
3785
+ statusCounts: Record<string, number>;
3786
+ }[];
3787
+ manifest: {
3788
+ algorithm: "sha256";
3789
+ sections: Record<string, string>;
3790
+ archiveSha256: string;
3791
+ signed?: boolean | undefined;
3792
+ unsignedReason?: string | undefined;
3793
+ };
3794
+ frameworks?: {
3795
+ coverage: {
3796
+ name: string;
3797
+ scope: string;
3798
+ summary: {
3799
+ controls: number;
3800
+ mapped: number;
3801
+ full: number;
3802
+ partial: number;
3803
+ states: {
3804
+ evidenced: number;
3805
+ warning: number;
3806
+ failing: number;
3807
+ not_evidenced: number;
3808
+ records_only: number;
3809
+ };
3810
+ };
3811
+ frameworkId: "eu_ai_act" | "iso_42001" | "nist_ai_rmf" | "mitre_atlas";
3812
+ citation: string;
3813
+ mappingVersion: string;
3814
+ generatedAt: string;
3815
+ controls: {
3816
+ title: string;
3817
+ coverage: "full" | "partial" | "not_mapped";
3818
+ state: "evidenced" | "warning" | "failing" | "not_evidenced" | "records_only" | null;
3819
+ controlId: string;
3820
+ evidence: {
3821
+ id: string;
3822
+ kind: "probe" | "artifact" | "control";
3823
+ title: string;
3824
+ state: "error" | "warn" | "pass" | "fail" | "not_enforced" | "not_run" | "available";
3825
+ probedAt: string | null;
3826
+ reference: string | null;
3827
+ satisfies: string;
3828
+ }[];
3829
+ gaps: string[];
3830
+ mitigates?: {
3831
+ name: string;
3832
+ id: string;
3833
+ }[] | undefined;
3834
+ }[];
3835
+ };
3836
+ report: string;
3837
+ csv?: string | undefined;
3838
+ pdf?: string | undefined;
3839
+ }[] | undefined;
3840
+ };
3841
+ artifactUrl: string | null;
3842
+ }, {
3843
+ runId: string;
3844
+ signed: false;
3845
+ unsignedReason: string;
3846
+ archive: {
3847
+ workspaceId: string;
3848
+ runId: string;
3849
+ categories: {
3850
+ probes: {
3851
+ status: "error" | "warn" | "pass" | "fail" | "not_enforced";
3852
+ score: number;
3853
+ probeId: string;
3854
+ probeType: "policy_check" | "mfa_enforcement" | "data_residency" | "audit_log_integrity" | "token_rotation" | "sop_coverage" | "auto_apply_provenance" | "sop_git_drift" | "guard_liveness" | "guardrail_authority" | "provider_availability";
3855
+ details: Record<string, unknown>;
3856
+ remediation: string | null;
3857
+ probedAt: string;
3858
+ observedSince: string;
3859
+ observations: number;
3860
+ }[];
3861
+ score: number | null;
3862
+ gaps: string[];
3863
+ category: "security" | "availability" | "processing_integrity" | "confidentiality" | "privacy";
3864
+ counts: Record<string, number>;
3865
+ sampleIds: Record<string, string[]>;
3866
+ }[];
3867
+ signature: {
3868
+ value: string;
3869
+ keyId: string;
3870
+ algorithm: "Ed25519";
3871
+ preimageDomain: string;
3872
+ } | null;
3873
+ formatVersion: 1 | 2 | 3;
3874
+ periodStart: string;
3875
+ periodEnd: string;
3876
+ collectedAt: string;
3877
+ overallScore: number | null;
3878
+ probeHistoryDigest: {
3879
+ probeType: "policy_check" | "mfa_enforcement" | "data_residency" | "audit_log_integrity" | "token_rotation" | "sop_coverage" | "auto_apply_provenance" | "sop_git_drift" | "guard_liveness" | "guardrail_authority" | "provider_availability";
3880
+ rows: number;
3881
+ firstAt: string | null;
3882
+ lastAt: string | null;
3883
+ statusCounts: Record<string, number>;
3884
+ }[];
3885
+ manifest: {
3886
+ algorithm: "sha256";
3887
+ sections: Record<string, string>;
3888
+ archiveSha256: string;
3889
+ signed?: boolean | undefined;
3890
+ unsignedReason?: string | undefined;
3891
+ };
3892
+ frameworks?: {
3893
+ coverage: {
3894
+ name: string;
3895
+ scope: string;
3896
+ summary: {
3897
+ controls: number;
3898
+ mapped: number;
3899
+ full: number;
3900
+ partial: number;
3901
+ states: {
3902
+ evidenced: number;
3903
+ warning: number;
3904
+ failing: number;
3905
+ not_evidenced: number;
3906
+ records_only: number;
3907
+ };
3908
+ };
3909
+ frameworkId: "eu_ai_act" | "iso_42001" | "nist_ai_rmf" | "mitre_atlas";
3910
+ citation: string;
3911
+ mappingVersion: string;
3912
+ generatedAt: string;
3913
+ controls: {
3914
+ title: string;
3915
+ coverage: "full" | "partial" | "not_mapped";
3916
+ state: "evidenced" | "warning" | "failing" | "not_evidenced" | "records_only" | null;
3917
+ controlId: string;
3918
+ evidence: {
3919
+ id: string;
3920
+ kind: "probe" | "artifact" | "control";
3921
+ title: string;
3922
+ state: "error" | "warn" | "pass" | "fail" | "not_enforced" | "not_run" | "available";
3923
+ probedAt: string | null;
3924
+ reference: string | null;
3925
+ satisfies: string;
3926
+ }[];
3927
+ gaps: string[];
3928
+ mitigates?: {
3929
+ name: string;
3930
+ id: string;
3931
+ }[] | undefined;
3932
+ }[];
3933
+ };
3934
+ report: string;
3935
+ csv?: string | undefined;
3936
+ pdf?: string | undefined;
3937
+ }[] | undefined;
3938
+ };
3939
+ artifactUrl: string | null;
3940
+ }>]>;
3941
+ export type Soc2CollectResponse = z.infer<typeof Soc2CollectResponse>;
3942
+ /** `GET /api/v1/integrations/github/webhook`. The secret is never returned here. */
3943
+ export declare const GitHubWebhookResponse: z.ZodObject<{
3944
+ configured: z.ZodBoolean;
3945
+ url: z.ZodNullable<z.ZodString>;
3946
+ createdAt: z.ZodNullable<z.ZodString>;
3947
+ secretRotatedAt: z.ZodNullable<z.ZodString>;
3948
+ lastDeliveryAt: z.ZodNullable<z.ZodString>;
3949
+ }, "strip", z.ZodTypeAny, {
3950
+ url: string | null;
3951
+ createdAt: string | null;
3952
+ configured: boolean;
3953
+ secretRotatedAt: string | null;
3954
+ lastDeliveryAt: string | null;
3955
+ }, {
3956
+ url: string | null;
3957
+ createdAt: string | null;
3958
+ configured: boolean;
3959
+ secretRotatedAt: string | null;
3960
+ lastDeliveryAt: string | null;
3961
+ }>;
3962
+ export type GitHubWebhookResponse = z.infer<typeof GitHubWebhookResponse>;
3963
+ /** `POST /api/v1/integrations/github/webhook/secret`: the payload URL and the new secret, returned once. */
3964
+ export declare const GitHubWebhookSecretResponse: z.ZodObject<{
3965
+ url: z.ZodString;
3966
+ secret: z.ZodString;
3967
+ }, "strip", z.ZodTypeAny, {
3968
+ url: string;
3969
+ secret: string;
3970
+ }, {
3971
+ url: string;
3972
+ secret: string;
3973
+ }>;
3974
+ export type GitHubWebhookSecretResponse = z.infer<typeof GitHubWebhookSecretResponse>;
3975
+ /** `POST /api/v1/integrations/openai-agents/traces/ingest`: what the batch added. */
3976
+ export declare const OpenAiAgentTracesIngestResponse: z.ZodObject<{
3977
+ ingested: z.ZodNumber;
3978
+ skipped: z.ZodNumber;
3979
+ duplicates: z.ZodNumber;
3980
+ redactions: z.ZodNumber;
3981
+ }, "strip", z.ZodTypeAny, {
3982
+ skipped: number;
3983
+ duplicates: number;
3984
+ ingested: number;
3985
+ redactions: number;
3986
+ }, {
3987
+ skipped: number;
3988
+ duplicates: number;
3989
+ ingested: number;
3990
+ redactions: number;
3991
+ }>;
3992
+ export type OpenAiAgentTracesIngestResponse = z.infer<typeof OpenAiAgentTracesIngestResponse>;
3993
+ /** `GET /api/v1/governance/gate-liveness`: per-harness gate status. */
3994
+ export declare const GateLivenessResponse: z.ZodObject<{
3995
+ windowHours: z.ZodNumber;
3996
+ gates: z.ZodArray<z.ZodObject<{
3997
+ harnessType: z.ZodString;
3998
+ kind: z.ZodEnum<["hook", "sdk"]>;
3999
+ status: z.ZodEnum<["reporting", "silent", "new"]>;
4000
+ lastSeen: z.ZodNullable<z.ZodString>;
4001
+ agentLastSeen: z.ZodNullable<z.ZodString>;
4002
+ alertOpen: z.ZodBoolean;
4003
+ }, "strip", z.ZodTypeAny, {
4004
+ harnessType: string;
4005
+ status: "reporting" | "silent" | "new";
4006
+ kind: "hook" | "sdk";
4007
+ lastSeen: string | null;
4008
+ agentLastSeen: string | null;
4009
+ alertOpen: boolean;
4010
+ }, {
4011
+ harnessType: string;
4012
+ status: "reporting" | "silent" | "new";
4013
+ kind: "hook" | "sdk";
4014
+ lastSeen: string | null;
4015
+ agentLastSeen: string | null;
4016
+ alertOpen: boolean;
4017
+ }>, "many">;
4018
+ }, "strip", z.ZodTypeAny, {
4019
+ gates: {
4020
+ harnessType: string;
4021
+ status: "reporting" | "silent" | "new";
4022
+ kind: "hook" | "sdk";
4023
+ lastSeen: string | null;
4024
+ agentLastSeen: string | null;
4025
+ alertOpen: boolean;
4026
+ }[];
4027
+ windowHours: number;
4028
+ }, {
4029
+ gates: {
4030
+ harnessType: string;
4031
+ status: "reporting" | "silent" | "new";
4032
+ kind: "hook" | "sdk";
4033
+ lastSeen: string | null;
4034
+ agentLastSeen: string | null;
4035
+ alertOpen: boolean;
4036
+ }[];
4037
+ windowHours: number;
4038
+ }>;
4039
+ export type GateLivenessResponse = z.infer<typeof GateLivenessResponse>;
4040
+ /** `POST /api/v1/predict-cost` (`tokenIntelligenceService.ts` `predictCost`). */
4041
+ export declare const CostPredictionResponse: z.ZodObject<{
4042
+ inputTokens: z.ZodNumber;
4043
+ estimatedOutputTokens: z.ZodNumber;
4044
+ estimatedReasoningTokens: z.ZodNullable<z.ZodNumber>;
4045
+ estimatedCostUsd: z.ZodNumber;
4046
+ confidence: z.ZodEnum<["high", "medium", "low"]>;
4047
+ basedOnSamples: z.ZodNumber;
4048
+ }, "strip", z.ZodTypeAny, {
4049
+ confidence: "high" | "medium" | "low";
4050
+ inputTokens: number;
4051
+ estimatedOutputTokens: number;
4052
+ estimatedReasoningTokens: number | null;
4053
+ estimatedCostUsd: number;
4054
+ basedOnSamples: number;
4055
+ }, {
4056
+ confidence: "high" | "medium" | "low";
4057
+ inputTokens: number;
4058
+ estimatedOutputTokens: number;
4059
+ estimatedReasoningTokens: number | null;
4060
+ estimatedCostUsd: number;
4061
+ basedOnSamples: number;
4062
+ }>;
4063
+ export type CostPredictionResponse = z.infer<typeof CostPredictionResponse>;
4064
+ /** `GET /api/v1/routing/mirror-adoption-report`: the report, or why there is not enough data for one. */
4065
+ export declare const MirrorAdoptionReportResponse: z.ZodUnion<[z.ZodObject<{
4066
+ candidateModel: z.ZodString;
4067
+ sufficientData: z.ZodLiteral<true>;
4068
+ sampleCount: z.ZodNumber;
4069
+ candidateBetter: z.ZodNumber;
4070
+ originalBetter: z.ZodNumber;
4071
+ tie: z.ZodNumber;
4072
+ unjudged: z.ZodNumber;
4073
+ faultRateDelta: z.ZodNullable<z.ZodNumber>;
4074
+ averageCostDeltaUsd: z.ZodNullable<z.ZodNumber>;
4075
+ averageLatencyDeltaMs: z.ZodNullable<z.ZodNumber>;
4076
+ }, "strip", z.ZodTypeAny, {
4077
+ unjudged: number;
4078
+ candidateModel: string;
4079
+ sufficientData: true;
4080
+ sampleCount: number;
4081
+ candidateBetter: number;
4082
+ originalBetter: number;
4083
+ tie: number;
4084
+ faultRateDelta: number | null;
4085
+ averageCostDeltaUsd: number | null;
4086
+ averageLatencyDeltaMs: number | null;
4087
+ }, {
4088
+ unjudged: number;
4089
+ candidateModel: string;
4090
+ sufficientData: true;
4091
+ sampleCount: number;
4092
+ candidateBetter: number;
4093
+ originalBetter: number;
4094
+ tie: number;
4095
+ faultRateDelta: number | null;
4096
+ averageCostDeltaUsd: number | null;
4097
+ averageLatencyDeltaMs: number | null;
4098
+ }>, z.ZodObject<{
4099
+ candidateModel: z.ZodString;
4100
+ sufficientData: z.ZodLiteral<false>;
4101
+ sampleCount: z.ZodNumber;
4102
+ minimumRequired: z.ZodNumber;
4103
+ reason: z.ZodString;
4104
+ }, "strip", z.ZodTypeAny, {
4105
+ reason: string;
4106
+ candidateModel: string;
4107
+ sufficientData: false;
4108
+ sampleCount: number;
4109
+ minimumRequired: number;
4110
+ }, {
4111
+ reason: string;
4112
+ candidateModel: string;
4113
+ sufficientData: false;
4114
+ sampleCount: number;
4115
+ minimumRequired: number;
4116
+ }>]>;
4117
+ export type MirrorAdoptionReportResponse = z.infer<typeof MirrorAdoptionReportResponse>;
4118
+ //# sourceMappingURL=integrations.d.ts.map