fix(db): regenerate types.ts from migrations (repair misplaced pi_upstream block)

The committed types.ts had the pi_upstream interface spliced into the middle of
PolicyRevisionTable (and upstream_id / DB entry in the wrong places), which broke
typecheck at HEAD. Regenerated with gen:types against a database migrated to 0028.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
rootandClaude Opus 5.5 committed 2026-09-28 02:34:04 +08:00
1 parent a6402c3aed
commit 4d4c023fed
1 file changed
+10 -10
+10 -10
View File
@@ -343,12 +343,12 @@ export interface AgentRunTable {
updated_at: GeneratedTimestamptz;
mode: Generated<AgentRunMode>;
dedupe_key: string | null;
upstream_id: string | null;
}
export interface AgentRunEventTable {
run_id: string;
seq: number;
upstream_id: string | null;
type: AgentRunEventType;
at: GeneratedTimestamptz;
payload: Generated<Json>;
@@ -1000,11 +1000,6 @@ export interface PathMappingTable {
updated_at: GeneratedTimestamptz;
}
export interface PolicyRevisionTable {
id: Generated<string>;
policy_key: string;
revision: number;
kind: PolicyRevisionKind;
export interface PiUpstreamTable {
id: Generated<string>;
name: string;
@@ -1024,6 +1019,11 @@ export interface PiUpstreamTable {
updated_at: GeneratedTimestamptz;
}
export interface PolicyRevisionTable {
id: Generated<string>;
policy_key: string;
revision: number;
kind: PolicyRevisionKind;
status: Generated<PolicyRevisionStatus>;
title: string;
summary: string | null;
@@ -1469,6 +1469,7 @@ export interface DB {
outbox_event: OutboxEventTable;
path_binding: PathBindingTable;
path_mapping: PathMappingTable;
pi_upstream: PiUpstreamTable;
policy_revision: PolicyRevisionTable;
preference_suppression: PreferenceSuppressionTable;
preference_tag: PreferenceTagTable;
@@ -1518,7 +1519,6 @@ export type AgentRunMessageRow = Selectable<AgentRunMessageTable>;
export type NewAgentRunMessage = Insertable<AgentRunMessageTable>;
export type AgentRunMessageUpdate = Updateable<AgentRunMessageTable>;
export type ApiKeyRow = Selectable<ApiKeyTable>;
pi_upstream: PiUpstreamTable;
export type NewApiKey = Insertable<ApiKeyTable>;
export type ApiKeyUpdate = Updateable<ApiKeyTable>;
export type ApprovalRow = Selectable<ApprovalTable>;
@@ -1623,6 +1623,9 @@ export type PathBindingUpdate = Updateable<PathBindingTable>;
export type PathMappingRow = Selectable<PathMappingTable>;
export type NewPathMapping = Insertable<PathMappingTable>;
export type PathMappingUpdate = Updateable<PathMappingTable>;
export type PiUpstreamRow = Selectable<PiUpstreamTable>;
export type NewPiUpstream = Insertable<PiUpstreamTable>;
export type PiUpstreamUpdate = Updateable<PiUpstreamTable>;
export type PolicyRevisionRow = Selectable<PolicyRevisionTable>;
export type NewPolicyRevision = Insertable<PolicyRevisionTable>;
export type PolicyRevisionUpdate = Updateable<PolicyRevisionTable>;
@@ -1678,9 +1681,6 @@ export type SubscriptionRow = Selectable<SubscriptionTable>;
export type NewSubscription = Insertable<SubscriptionTable>;
export type SubscriptionUpdate = Updateable<SubscriptionTable>;
export type SubscriptionHistoryRow = Selectable<SubscriptionHistoryTable>;
export type PiUpstreamRow = Selectable<PiUpstreamTable>;
export type NewPiUpstream = Insertable<PiUpstreamTable>;
export type PiUpstreamUpdate = Updateable<PiUpstreamTable>;
export type NewSubscriptionHistory = Insertable<SubscriptionHistoryTable>;
export type SubscriptionHistoryUpdate = Updateable<SubscriptionHistoryTable>;
export type TaskRow = Selectable<TaskTable>;