diff --git a/packages/db/src/types.ts b/packages/db/src/types.ts index a3133a0f..554b2b09 100644 --- a/packages/db/src/types.ts +++ b/packages/db/src/types.ts @@ -343,12 +343,12 @@ export interface AgentRunTable { updated_at: GeneratedTimestamptz; mode: Generated; 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; @@ -1000,11 +1000,6 @@ export interface PathMappingTable { updated_at: GeneratedTimestamptz; } -export interface PolicyRevisionTable { - id: Generated; - policy_key: string; - revision: number; - kind: PolicyRevisionKind; export interface PiUpstreamTable { id: Generated; name: string; @@ -1024,6 +1019,11 @@ export interface PiUpstreamTable { updated_at: GeneratedTimestamptz; } +export interface PolicyRevisionTable { + id: Generated; + policy_key: string; + revision: number; + kind: PolicyRevisionKind; status: Generated; 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; export type NewAgentRunMessage = Insertable; export type AgentRunMessageUpdate = Updateable; export type ApiKeyRow = Selectable; - pi_upstream: PiUpstreamTable; export type NewApiKey = Insertable; export type ApiKeyUpdate = Updateable; export type ApprovalRow = Selectable; @@ -1623,6 +1623,9 @@ export type PathBindingUpdate = Updateable; export type PathMappingRow = Selectable; export type NewPathMapping = Insertable; export type PathMappingUpdate = Updateable; +export type PiUpstreamRow = Selectable; +export type NewPiUpstream = Insertable; +export type PiUpstreamUpdate = Updateable; export type PolicyRevisionRow = Selectable; export type NewPolicyRevision = Insertable; export type PolicyRevisionUpdate = Updateable; @@ -1678,9 +1681,6 @@ export type SubscriptionRow = Selectable; export type NewSubscription = Insertable; export type SubscriptionUpdate = Updateable; export type SubscriptionHistoryRow = Selectable; -export type PiUpstreamRow = Selectable; -export type NewPiUpstream = Insertable; -export type PiUpstreamUpdate = Updateable; export type NewSubscriptionHistory = Insertable; export type SubscriptionHistoryUpdate = Updateable; export type TaskRow = Selectable;