2026-02-16 13:31:47 -06:00
|
|
|
export {
|
Expand data model with companies, approvals, costs, and heartbeats
Add new DB schemas: companies, agent_api_keys, approvals, cost_events,
heartbeat_runs, issue_comments. Add corresponding shared types and
validators. Update existing schemas (agents, goals, issues, projects)
with new fields for company association, budgets, and richer metadata.
Generate initial Drizzle migration. Update seed data.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 09:07:22 -06:00
|
|
|
COMPANY_STATUSES,
|
2026-02-23 09:14:08 -06:00
|
|
|
DEPLOYMENT_MODES,
|
|
|
|
|
DEPLOYMENT_EXPOSURES,
|
|
|
|
|
AUTH_BASE_URL_MODES,
|
2026-02-16 13:31:47 -06:00
|
|
|
AGENT_STATUSES,
|
Expand data model with companies, approvals, costs, and heartbeats
Add new DB schemas: companies, agent_api_keys, approvals, cost_events,
heartbeat_runs, issue_comments. Add corresponding shared types and
validators. Update existing schemas (agents, goals, issues, projects)
with new fields for company association, budgets, and richer metadata.
Generate initial Drizzle migration. Update seed data.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 09:07:22 -06:00
|
|
|
AGENT_ADAPTER_TYPES,
|
2026-02-16 13:31:47 -06:00
|
|
|
AGENT_ROLES,
|
2026-03-07 17:07:14 -08:00
|
|
|
AGENT_ROLE_LABELS,
|
2026-02-25 08:38:37 -06:00
|
|
|
AGENT_ICON_NAMES,
|
2026-02-16 13:31:47 -06:00
|
|
|
ISSUE_STATUSES,
|
2026-03-26 20:06:29 -05:00
|
|
|
INBOX_MINE_ISSUE_STATUSES,
|
|
|
|
|
INBOX_MINE_ISSUE_STATUS_FILTER,
|
2026-02-16 13:31:47 -06:00
|
|
|
ISSUE_PRIORITIES,
|
2026-03-19 08:39:24 -05:00
|
|
|
ISSUE_ORIGIN_KINDS,
|
2026-02-16 13:31:47 -06:00
|
|
|
GOAL_LEVELS,
|
Expand data model with companies, approvals, costs, and heartbeats
Add new DB schemas: companies, agent_api_keys, approvals, cost_events,
heartbeat_runs, issue_comments. Add corresponding shared types and
validators. Update existing schemas (agents, goals, issues, projects)
with new fields for company association, budgets, and richer metadata.
Generate initial Drizzle migration. Update seed data.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 09:07:22 -06:00
|
|
|
GOAL_STATUSES,
|
|
|
|
|
PROJECT_STATUSES,
|
2026-03-19 08:39:24 -05:00
|
|
|
ROUTINE_STATUSES,
|
|
|
|
|
ROUTINE_CONCURRENCY_POLICIES,
|
|
|
|
|
ROUTINE_CATCH_UP_POLICIES,
|
|
|
|
|
ROUTINE_TRIGGER_KINDS,
|
|
|
|
|
ROUTINE_TRIGGER_SIGNING_MODES,
|
|
|
|
|
ROUTINE_RUN_STATUSES,
|
|
|
|
|
ROUTINE_RUN_SOURCES,
|
2026-03-14 22:00:12 -05:00
|
|
|
PAUSE_REASONS,
|
2026-02-23 09:14:08 -06:00
|
|
|
PROJECT_COLORS,
|
Expand data model with companies, approvals, costs, and heartbeats
Add new DB schemas: companies, agent_api_keys, approvals, cost_events,
heartbeat_runs, issue_comments. Add corresponding shared types and
validators. Update existing schemas (agents, goals, issues, projects)
with new fields for company association, budgets, and richer metadata.
Generate initial Drizzle migration. Update seed data.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 09:07:22 -06:00
|
|
|
APPROVAL_TYPES,
|
|
|
|
|
APPROVAL_STATUSES,
|
2026-02-19 15:43:43 -06:00
|
|
|
SECRET_PROVIDERS,
|
2026-02-20 10:31:56 -06:00
|
|
|
STORAGE_PROVIDERS,
|
2026-03-14 22:00:12 -05:00
|
|
|
BILLING_TYPES,
|
|
|
|
|
FINANCE_EVENT_KINDS,
|
|
|
|
|
FINANCE_DIRECTIONS,
|
|
|
|
|
FINANCE_UNITS,
|
|
|
|
|
BUDGET_SCOPE_TYPES,
|
|
|
|
|
BUDGET_METRICS,
|
|
|
|
|
BUDGET_WINDOW_KINDS,
|
|
|
|
|
BUDGET_THRESHOLD_TYPES,
|
|
|
|
|
BUDGET_INCIDENT_STATUSES,
|
|
|
|
|
BUDGET_INCIDENT_RESOLUTION_ACTIONS,
|
Expand data model with companies, approvals, costs, and heartbeats
Add new DB schemas: companies, agent_api_keys, approvals, cost_events,
heartbeat_runs, issue_comments. Add corresponding shared types and
validators. Update existing schemas (agents, goals, issues, projects)
with new fields for company association, budgets, and richer metadata.
Generate initial Drizzle migration. Update seed data.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 09:07:22 -06:00
|
|
|
HEARTBEAT_INVOCATION_SOURCES,
|
|
|
|
|
HEARTBEAT_RUN_STATUSES,
|
2026-02-17 12:24:38 -06:00
|
|
|
WAKEUP_TRIGGER_DETAILS,
|
|
|
|
|
WAKEUP_REQUEST_STATUSES,
|
|
|
|
|
LIVE_EVENT_TYPES,
|
2026-02-23 09:14:08 -06:00
|
|
|
PRINCIPAL_TYPES,
|
|
|
|
|
MEMBERSHIP_STATUSES,
|
|
|
|
|
INSTANCE_USER_ROLES,
|
|
|
|
|
INVITE_TYPES,
|
|
|
|
|
INVITE_JOIN_TYPES,
|
|
|
|
|
JOIN_REQUEST_TYPES,
|
|
|
|
|
JOIN_REQUEST_STATUSES,
|
|
|
|
|
PERMISSION_KEYS,
|
2026-03-13 16:22:34 -05:00
|
|
|
PLUGIN_API_VERSION,
|
|
|
|
|
PLUGIN_STATUSES,
|
|
|
|
|
PLUGIN_CATEGORIES,
|
|
|
|
|
PLUGIN_CAPABILITIES,
|
|
|
|
|
PLUGIN_UI_SLOT_TYPES,
|
|
|
|
|
PLUGIN_UI_SLOT_ENTITY_TYPES,
|
|
|
|
|
PLUGIN_LAUNCHER_PLACEMENT_ZONES,
|
|
|
|
|
PLUGIN_LAUNCHER_ACTIONS,
|
|
|
|
|
PLUGIN_LAUNCHER_BOUNDS,
|
|
|
|
|
PLUGIN_LAUNCHER_RENDER_ENVIRONMENTS,
|
|
|
|
|
PLUGIN_STATE_SCOPE_KINDS,
|
|
|
|
|
PLUGIN_JOB_STATUSES,
|
|
|
|
|
PLUGIN_JOB_RUN_STATUSES,
|
|
|
|
|
PLUGIN_JOB_RUN_TRIGGERS,
|
|
|
|
|
PLUGIN_WEBHOOK_DELIVERY_STATUSES,
|
|
|
|
|
PLUGIN_EVENT_TYPES,
|
|
|
|
|
PLUGIN_BRIDGE_ERROR_CODES,
|
Expand data model with companies, approvals, costs, and heartbeats
Add new DB schemas: companies, agent_api_keys, approvals, cost_events,
heartbeat_runs, issue_comments. Add corresponding shared types and
validators. Update existing schemas (agents, goals, issues, projects)
with new fields for company association, budgets, and richer metadata.
Generate initial Drizzle migration. Update seed data.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 09:07:22 -06:00
|
|
|
type CompanyStatus,
|
2026-02-23 09:14:08 -06:00
|
|
|
type DeploymentMode,
|
|
|
|
|
type DeploymentExposure,
|
|
|
|
|
type AuthBaseUrlMode,
|
2026-02-16 13:31:47 -06:00
|
|
|
type AgentStatus,
|
Expand data model with companies, approvals, costs, and heartbeats
Add new DB schemas: companies, agent_api_keys, approvals, cost_events,
heartbeat_runs, issue_comments. Add corresponding shared types and
validators. Update existing schemas (agents, goals, issues, projects)
with new fields for company association, budgets, and richer metadata.
Generate initial Drizzle migration. Update seed data.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 09:07:22 -06:00
|
|
|
type AgentAdapterType,
|
2026-02-16 13:31:47 -06:00
|
|
|
type AgentRole,
|
2026-02-25 08:38:37 -06:00
|
|
|
type AgentIconName,
|
2026-02-16 13:31:47 -06:00
|
|
|
type IssueStatus,
|
|
|
|
|
type IssuePriority,
|
2026-03-19 08:39:24 -05:00
|
|
|
type IssueOriginKind,
|
2026-02-16 13:31:47 -06:00
|
|
|
type GoalLevel,
|
Expand data model with companies, approvals, costs, and heartbeats
Add new DB schemas: companies, agent_api_keys, approvals, cost_events,
heartbeat_runs, issue_comments. Add corresponding shared types and
validators. Update existing schemas (agents, goals, issues, projects)
with new fields for company association, budgets, and richer metadata.
Generate initial Drizzle migration. Update seed data.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 09:07:22 -06:00
|
|
|
type GoalStatus,
|
|
|
|
|
type ProjectStatus,
|
2026-03-19 08:39:24 -05:00
|
|
|
type RoutineStatus,
|
|
|
|
|
type RoutineConcurrencyPolicy,
|
|
|
|
|
type RoutineCatchUpPolicy,
|
|
|
|
|
type RoutineTriggerKind,
|
|
|
|
|
type RoutineTriggerSigningMode,
|
|
|
|
|
type RoutineRunStatus,
|
|
|
|
|
type RoutineRunSource,
|
2026-03-14 22:00:12 -05:00
|
|
|
type PauseReason,
|
Expand data model with companies, approvals, costs, and heartbeats
Add new DB schemas: companies, agent_api_keys, approvals, cost_events,
heartbeat_runs, issue_comments. Add corresponding shared types and
validators. Update existing schemas (agents, goals, issues, projects)
with new fields for company association, budgets, and richer metadata.
Generate initial Drizzle migration. Update seed data.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 09:07:22 -06:00
|
|
|
type ApprovalType,
|
|
|
|
|
type ApprovalStatus,
|
2026-02-19 15:43:43 -06:00
|
|
|
type SecretProvider,
|
2026-02-20 10:31:56 -06:00
|
|
|
type StorageProvider,
|
2026-03-14 22:00:12 -05:00
|
|
|
type BillingType,
|
|
|
|
|
type FinanceEventKind,
|
|
|
|
|
type FinanceDirection,
|
|
|
|
|
type FinanceUnit,
|
|
|
|
|
type BudgetScopeType,
|
|
|
|
|
type BudgetMetric,
|
|
|
|
|
type BudgetWindowKind,
|
|
|
|
|
type BudgetThresholdType,
|
|
|
|
|
type BudgetIncidentStatus,
|
|
|
|
|
type BudgetIncidentResolutionAction,
|
Expand data model with companies, approvals, costs, and heartbeats
Add new DB schemas: companies, agent_api_keys, approvals, cost_events,
heartbeat_runs, issue_comments. Add corresponding shared types and
validators. Update existing schemas (agents, goals, issues, projects)
with new fields for company association, budgets, and richer metadata.
Generate initial Drizzle migration. Update seed data.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 09:07:22 -06:00
|
|
|
type HeartbeatInvocationSource,
|
|
|
|
|
type HeartbeatRunStatus,
|
2026-02-17 12:24:38 -06:00
|
|
|
type WakeupTriggerDetail,
|
|
|
|
|
type WakeupRequestStatus,
|
|
|
|
|
type LiveEventType,
|
2026-02-23 09:14:08 -06:00
|
|
|
type PrincipalType,
|
|
|
|
|
type MembershipStatus,
|
|
|
|
|
type InstanceUserRole,
|
|
|
|
|
type InviteType,
|
|
|
|
|
type InviteJoinType,
|
|
|
|
|
type JoinRequestType,
|
|
|
|
|
type JoinRequestStatus,
|
|
|
|
|
type PermissionKey,
|
2026-03-13 16:22:34 -05:00
|
|
|
type PluginStatus,
|
|
|
|
|
type PluginCategory,
|
|
|
|
|
type PluginCapability,
|
|
|
|
|
type PluginUiSlotType,
|
|
|
|
|
type PluginUiSlotEntityType,
|
|
|
|
|
type PluginLauncherPlacementZone,
|
|
|
|
|
type PluginLauncherAction,
|
|
|
|
|
type PluginLauncherBounds,
|
|
|
|
|
type PluginLauncherRenderEnvironment,
|
|
|
|
|
type PluginStateScopeKind,
|
|
|
|
|
type PluginJobStatus,
|
|
|
|
|
type PluginJobRunStatus,
|
|
|
|
|
type PluginJobRunTrigger,
|
|
|
|
|
type PluginWebhookDeliveryStatus,
|
|
|
|
|
type PluginEventType,
|
|
|
|
|
type PluginBridgeErrorCode,
|
2026-02-16 13:31:47 -06:00
|
|
|
} from "./constants.js";
|
|
|
|
|
|
|
|
|
|
export type {
|
Expand data model with companies, approvals, costs, and heartbeats
Add new DB schemas: companies, agent_api_keys, approvals, cost_events,
heartbeat_runs, issue_comments. Add corresponding shared types and
validators. Update existing schemas (agents, goals, issues, projects)
with new fields for company association, budgets, and richer metadata.
Generate initial Drizzle migration. Update seed data.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 09:07:22 -06:00
|
|
|
Company,
|
2026-03-14 10:55:04 -05:00
|
|
|
CompanySkillSourceType,
|
|
|
|
|
CompanySkillTrustLevel,
|
|
|
|
|
CompanySkillCompatibility,
|
2026-03-14 13:52:20 -05:00
|
|
|
CompanySkillSourceBadge,
|
2026-03-14 10:55:04 -05:00
|
|
|
CompanySkillFileInventoryEntry,
|
|
|
|
|
CompanySkill,
|
|
|
|
|
CompanySkillListItem,
|
|
|
|
|
CompanySkillUsageAgent,
|
|
|
|
|
CompanySkillDetail,
|
2026-03-14 13:52:20 -05:00
|
|
|
CompanySkillUpdateStatus,
|
2026-03-14 10:55:04 -05:00
|
|
|
CompanySkillImportRequest,
|
|
|
|
|
CompanySkillImportResult,
|
2026-03-16 19:09:33 -05:00
|
|
|
CompanySkillProjectScanRequest,
|
|
|
|
|
CompanySkillProjectScanSkipped,
|
|
|
|
|
CompanySkillProjectScanConflict,
|
|
|
|
|
CompanySkillProjectScanResult,
|
2026-03-14 13:52:20 -05:00
|
|
|
CompanySkillCreateRequest,
|
|
|
|
|
CompanySkillFileDetail,
|
|
|
|
|
CompanySkillFileUpdateRequest,
|
2026-03-13 22:49:42 -05:00
|
|
|
AgentSkillSyncMode,
|
|
|
|
|
AgentSkillState,
|
2026-03-18 14:21:50 -05:00
|
|
|
AgentSkillOrigin,
|
2026-03-13 22:49:42 -05:00
|
|
|
AgentSkillEntry,
|
|
|
|
|
AgentSkillSnapshot,
|
|
|
|
|
AgentSkillSyncRequest,
|
2026-03-17 09:24:28 -05:00
|
|
|
InstanceExperimentalSettings,
|
2026-03-20 08:00:39 -05:00
|
|
|
InstanceGeneralSettings,
|
2026-03-17 09:24:28 -05:00
|
|
|
InstanceSettings,
|
2026-02-16 13:31:47 -06:00
|
|
|
Agent,
|
2026-03-19 08:14:29 -05:00
|
|
|
AgentAccessState,
|
|
|
|
|
AgentChainOfCommandEntry,
|
|
|
|
|
AgentDetail,
|
2026-02-19 09:10:38 -06:00
|
|
|
AgentPermissions,
|
2026-03-17 13:42:00 -05:00
|
|
|
AgentInstructionsBundleMode,
|
|
|
|
|
AgentInstructionsFileSummary,
|
|
|
|
|
AgentInstructionsFileDetail,
|
|
|
|
|
AgentInstructionsBundle,
|
Expand data model with companies, approvals, costs, and heartbeats
Add new DB schemas: companies, agent_api_keys, approvals, cost_events,
heartbeat_runs, issue_comments. Add corresponding shared types and
validators. Update existing schemas (agents, goals, issues, projects)
with new fields for company association, budgets, and richer metadata.
Generate initial Drizzle migration. Update seed data.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 09:07:22 -06:00
|
|
|
AgentKeyCreated,
|
2026-02-19 13:02:25 -06:00
|
|
|
AgentConfigRevision,
|
2026-02-20 12:50:23 -06:00
|
|
|
AdapterEnvironmentCheckLevel,
|
|
|
|
|
AdapterEnvironmentTestStatus,
|
|
|
|
|
AdapterEnvironmentCheck,
|
|
|
|
|
AdapterEnvironmentTestResult,
|
|
|
|
|
AssetImage,
|
2026-02-16 13:31:47 -06:00
|
|
|
Project,
|
2026-03-16 15:56:37 -05:00
|
|
|
ProjectCodebase,
|
|
|
|
|
ProjectCodebaseOrigin,
|
2026-02-20 13:43:25 -06:00
|
|
|
ProjectGoalRef,
|
2026-02-25 08:38:37 -06:00
|
|
|
ProjectWorkspace,
|
2026-03-13 17:12:25 -05:00
|
|
|
ExecutionWorkspace,
|
2026-03-28 12:15:34 -05:00
|
|
|
ExecutionWorkspaceConfig,
|
2026-03-28 16:15:20 -05:00
|
|
|
ExecutionWorkspaceCloseAction,
|
|
|
|
|
ExecutionWorkspaceCloseActionKind,
|
|
|
|
|
ExecutionWorkspaceCloseGitReadiness,
|
|
|
|
|
ExecutionWorkspaceCloseLinkedIssue,
|
|
|
|
|
ExecutionWorkspaceCloseReadiness,
|
|
|
|
|
ExecutionWorkspaceCloseReadinessState,
|
2026-03-28 16:46:43 -05:00
|
|
|
ProjectWorkspaceRuntimeConfig,
|
2026-03-10 10:58:38 -05:00
|
|
|
WorkspaceRuntimeService,
|
2026-03-17 09:36:35 -05:00
|
|
|
WorkspaceOperation,
|
|
|
|
|
WorkspaceOperationPhase,
|
|
|
|
|
WorkspaceOperationStatus,
|
2026-03-28 16:46:43 -05:00
|
|
|
WorkspaceRuntimeDesiredState,
|
2026-03-10 09:03:31 -05:00
|
|
|
ExecutionWorkspaceStrategyType,
|
|
|
|
|
ExecutionWorkspaceMode,
|
2026-03-13 17:12:25 -05:00
|
|
|
ExecutionWorkspaceProviderType,
|
|
|
|
|
ExecutionWorkspaceStatus,
|
2026-03-10 09:03:31 -05:00
|
|
|
ExecutionWorkspaceStrategy,
|
|
|
|
|
ProjectExecutionWorkspacePolicy,
|
2026-03-13 17:12:25 -05:00
|
|
|
ProjectExecutionWorkspaceDefaultMode,
|
2026-03-10 09:03:31 -05:00
|
|
|
IssueExecutionWorkspaceSettings,
|
2026-03-13 17:12:25 -05:00
|
|
|
IssueWorkProduct,
|
|
|
|
|
IssueWorkProductType,
|
|
|
|
|
IssueWorkProductProvider,
|
|
|
|
|
IssueWorkProductStatus,
|
|
|
|
|
IssueWorkProductReviewState,
|
2026-02-16 13:31:47 -06:00
|
|
|
Issue,
|
2026-02-26 10:32:44 -06:00
|
|
|
IssueAssigneeAdapterOverrides,
|
Expand data model with companies, approvals, costs, and heartbeats
Add new DB schemas: companies, agent_api_keys, approvals, cost_events,
heartbeat_runs, issue_comments. Add corresponding shared types and
validators. Update existing schemas (agents, goals, issues, projects)
with new fields for company association, budgets, and richer metadata.
Generate initial Drizzle migration. Update seed data.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 09:07:22 -06:00
|
|
|
IssueComment,
|
2026-03-13 21:30:48 -05:00
|
|
|
IssueDocument,
|
|
|
|
|
IssueDocumentSummary,
|
|
|
|
|
DocumentRevision,
|
|
|
|
|
DocumentFormat,
|
|
|
|
|
LegacyPlanDocument,
|
2026-02-20 10:31:56 -06:00
|
|
|
IssueAttachment,
|
2026-02-25 08:38:37 -06:00
|
|
|
IssueLabel,
|
2026-02-16 13:31:47 -06:00
|
|
|
Goal,
|
Expand data model with companies, approvals, costs, and heartbeats
Add new DB schemas: companies, agent_api_keys, approvals, cost_events,
heartbeat_runs, issue_comments. Add corresponding shared types and
validators. Update existing schemas (agents, goals, issues, projects)
with new fields for company association, budgets, and richer metadata.
Generate initial Drizzle migration. Update seed data.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 09:07:22 -06:00
|
|
|
Approval,
|
2026-02-19 09:10:38 -06:00
|
|
|
ApprovalComment,
|
2026-03-14 22:00:12 -05:00
|
|
|
BudgetPolicy,
|
|
|
|
|
BudgetPolicySummary,
|
|
|
|
|
BudgetIncident,
|
|
|
|
|
BudgetOverview,
|
|
|
|
|
BudgetPolicyUpsertInput,
|
|
|
|
|
BudgetIncidentResolutionInput,
|
Expand data model with companies, approvals, costs, and heartbeats
Add new DB schemas: companies, agent_api_keys, approvals, cost_events,
heartbeat_runs, issue_comments. Add corresponding shared types and
validators. Update existing schemas (agents, goals, issues, projects)
with new fields for company association, budgets, and richer metadata.
Generate initial Drizzle migration. Update seed data.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 09:07:22 -06:00
|
|
|
CostEvent,
|
|
|
|
|
CostSummary,
|
2026-02-19 13:02:25 -06:00
|
|
|
CostByAgent,
|
feat(ui): add resource and usage dashboard (/usage route)
adds a new /usage page that lets board operators see how much each ai
provider is consuming across any date window, with per-model breakdowns,
rolling 5h/24h/7d burn windows, weekly budget bars, and a deficit notch
when projected spend is on track to exceed the monthly budget.
- new GET /companies/:id/costs/by-provider endpoint aggregates cost events
by provider + model with pro-rated billing type splits from heartbeat runs
- new GET /companies/:id/costs/window-spend endpoint returns rolling window
spend (5h, 24h, 7d) per provider with no schema changes
- QuotaBar: reusable boxed-border progress bar with green/yellow/red
threshold fill colors and optional deficit notch
- ProviderQuotaCard: per-provider card showing budget allocation bars,
rolling windows, subscription usage, and model breakdown with token/cost
share overlays
- Usage page: date preset toggles (mtd, 7d, 30d, ytd, all, custom),
provider tabs, 30s polling plus ws invalidation on cost_event
- custom date range blocks queries until both dates are selected and
treats boundaries as local-time (not utc midnight) so full days are
included regardless of timezone
- query key to timestamp is floored to the nearest minute to prevent
cache churn on every 30s refetch tick
2026-03-08 03:18:37 +05:30
|
|
|
CostByProviderModel,
|
2026-03-14 22:00:12 -05:00
|
|
|
CostByBiller,
|
2026-03-08 20:56:13 +05:30
|
|
|
CostByAgentModel,
|
feat(ui): add resource and usage dashboard (/usage route)
adds a new /usage page that lets board operators see how much each ai
provider is consuming across any date window, with per-model breakdowns,
rolling 5h/24h/7d burn windows, weekly budget bars, and a deficit notch
when projected spend is on track to exceed the monthly budget.
- new GET /companies/:id/costs/by-provider endpoint aggregates cost events
by provider + model with pro-rated billing type splits from heartbeat runs
- new GET /companies/:id/costs/window-spend endpoint returns rolling window
spend (5h, 24h, 7d) per provider with no schema changes
- QuotaBar: reusable boxed-border progress bar with green/yellow/red
threshold fill colors and optional deficit notch
- ProviderQuotaCard: per-provider card showing budget allocation bars,
rolling windows, subscription usage, and model breakdown with token/cost
share overlays
- Usage page: date preset toggles (mtd, 7d, 30d, ytd, all, custom),
provider tabs, 30s polling plus ws invalidation on cost_event
- custom date range blocks queries until both dates are selected and
treats boundaries as local-time (not utc midnight) so full days are
included regardless of timezone
- query key to timestamp is floored to the nearest minute to prevent
cache churn on every 30s refetch tick
2026-03-08 03:18:37 +05:30
|
|
|
CostWindowSpendRow,
|
2026-03-08 20:56:13 +05:30
|
|
|
CostByProject,
|
2026-03-14 22:00:12 -05:00
|
|
|
FinanceEvent,
|
|
|
|
|
FinanceSummary,
|
|
|
|
|
FinanceByBiller,
|
|
|
|
|
FinanceByKind,
|
Expand data model with companies, approvals, costs, and heartbeats
Add new DB schemas: companies, agent_api_keys, approvals, cost_events,
heartbeat_runs, issue_comments. Add corresponding shared types and
validators. Update existing schemas (agents, goals, issues, projects)
with new fields for company association, budgets, and richer metadata.
Generate initial Drizzle migration. Update seed data.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 09:07:22 -06:00
|
|
|
HeartbeatRun,
|
2026-02-17 12:24:38 -06:00
|
|
|
HeartbeatRunEvent,
|
|
|
|
|
AgentRuntimeState,
|
2026-02-19 14:01:40 -06:00
|
|
|
AgentTaskSession,
|
2026-02-17 12:24:38 -06:00
|
|
|
AgentWakeupRequest,
|
2026-03-12 08:03:55 -05:00
|
|
|
InstanceSchedulerHeartbeatAgent,
|
2026-02-17 12:24:38 -06:00
|
|
|
LiveEvent,
|
Expand data model with companies, approvals, costs, and heartbeats
Add new DB schemas: companies, agent_api_keys, approvals, cost_events,
heartbeat_runs, issue_comments. Add corresponding shared types and
validators. Update existing schemas (agents, goals, issues, projects)
with new fields for company association, budgets, and richer metadata.
Generate initial Drizzle migration. Update seed data.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 09:07:22 -06:00
|
|
|
DashboardSummary,
|
2026-02-16 13:31:47 -06:00
|
|
|
ActivityEvent,
|
2026-02-19 13:02:25 -06:00
|
|
|
SidebarBadges,
|
2026-02-23 09:14:08 -06:00
|
|
|
CompanyMembership,
|
|
|
|
|
PrincipalPermissionGrant,
|
|
|
|
|
Invite,
|
|
|
|
|
JoinRequest,
|
|
|
|
|
InstanceUserRoleGrant,
|
2026-03-02 09:06:58 -06:00
|
|
|
CompanyPortabilityInclude,
|
2026-03-14 09:46:16 -05:00
|
|
|
CompanyPortabilityEnvInput,
|
2026-03-19 07:15:36 -05:00
|
|
|
CompanyPortabilityFileEntry,
|
2026-03-02 09:06:58 -06:00
|
|
|
CompanyPortabilityCompanyManifestEntry,
|
2026-03-23 16:49:46 -05:00
|
|
|
CompanyPortabilitySidebarOrder,
|
2026-03-02 09:06:58 -06:00
|
|
|
CompanyPortabilityAgentManifestEntry,
|
2026-03-14 18:59:26 -05:00
|
|
|
CompanyPortabilitySkillManifestEntry,
|
2026-03-14 09:46:16 -05:00
|
|
|
CompanyPortabilityProjectManifestEntry,
|
2026-03-23 11:14:01 -05:00
|
|
|
CompanyPortabilityProjectWorkspaceManifestEntry,
|
|
|
|
|
CompanyPortabilityIssueRoutineTriggerManifestEntry,
|
|
|
|
|
CompanyPortabilityIssueRoutineManifestEntry,
|
2026-03-14 09:46:16 -05:00
|
|
|
CompanyPortabilityIssueManifestEntry,
|
2026-03-02 09:06:58 -06:00
|
|
|
CompanyPortabilityManifest,
|
|
|
|
|
CompanyPortabilityExportResult,
|
2026-03-18 21:54:10 -05:00
|
|
|
CompanyPortabilityExportPreviewFile,
|
|
|
|
|
CompanyPortabilityExportPreviewResult,
|
2026-03-02 09:06:58 -06:00
|
|
|
CompanyPortabilitySource,
|
|
|
|
|
CompanyPortabilityImportTarget,
|
|
|
|
|
CompanyPortabilityAgentSelection,
|
|
|
|
|
CompanyPortabilityCollisionStrategy,
|
|
|
|
|
CompanyPortabilityPreviewRequest,
|
|
|
|
|
CompanyPortabilityPreviewAgentPlan,
|
2026-03-14 09:46:16 -05:00
|
|
|
CompanyPortabilityPreviewProjectPlan,
|
|
|
|
|
CompanyPortabilityPreviewIssuePlan,
|
2026-03-02 09:06:58 -06:00
|
|
|
CompanyPortabilityPreviewResult,
|
2026-03-16 10:28:44 -05:00
|
|
|
CompanyPortabilityAdapterOverride,
|
2026-03-02 09:06:58 -06:00
|
|
|
CompanyPortabilityImportRequest,
|
|
|
|
|
CompanyPortabilityImportResult,
|
|
|
|
|
CompanyPortabilityExportRequest,
|
2026-02-19 15:43:43 -06:00
|
|
|
EnvBinding,
|
|
|
|
|
AgentEnvConfig,
|
|
|
|
|
CompanySecret,
|
|
|
|
|
SecretProviderDescriptor,
|
2026-03-19 08:39:24 -05:00
|
|
|
Routine,
|
|
|
|
|
RoutineTrigger,
|
|
|
|
|
RoutineRun,
|
|
|
|
|
RoutineTriggerSecretMaterial,
|
|
|
|
|
RoutineDetail,
|
|
|
|
|
RoutineRunSummary,
|
|
|
|
|
RoutineExecutionIssueOrigin,
|
|
|
|
|
RoutineListItem,
|
2026-03-13 16:22:34 -05:00
|
|
|
JsonSchema,
|
|
|
|
|
PluginJobDeclaration,
|
|
|
|
|
PluginWebhookDeclaration,
|
|
|
|
|
PluginToolDeclaration,
|
|
|
|
|
PluginUiSlotDeclaration,
|
|
|
|
|
PluginLauncherActionDeclaration,
|
|
|
|
|
PluginLauncherRenderDeclaration,
|
|
|
|
|
PluginLauncherRenderContextSnapshot,
|
|
|
|
|
PluginLauncherDeclaration,
|
|
|
|
|
PluginMinimumHostVersion,
|
|
|
|
|
PluginUiDeclaration,
|
|
|
|
|
PaperclipPluginManifestV1,
|
|
|
|
|
PluginRecord,
|
|
|
|
|
PluginStateRecord,
|
|
|
|
|
PluginConfig,
|
|
|
|
|
PluginEntityRecord,
|
|
|
|
|
PluginEntityQuery,
|
|
|
|
|
PluginJobRecord,
|
|
|
|
|
PluginJobRunRecord,
|
|
|
|
|
PluginWebhookDeliveryRecord,
|
2026-03-08 16:35:14 +05:30
|
|
|
QuotaWindow,
|
|
|
|
|
ProviderQuotaResult,
|
2026-02-16 13:31:47 -06:00
|
|
|
} from "./types/index.js";
|
|
|
|
|
|
2026-03-17 09:24:28 -05:00
|
|
|
export {
|
2026-03-20 08:00:39 -05:00
|
|
|
instanceGeneralSettingsSchema,
|
|
|
|
|
patchInstanceGeneralSettingsSchema,
|
|
|
|
|
type PatchInstanceGeneralSettings,
|
2026-03-17 09:24:28 -05:00
|
|
|
instanceExperimentalSettingsSchema,
|
|
|
|
|
patchInstanceExperimentalSettingsSchema,
|
|
|
|
|
type PatchInstanceExperimentalSettings,
|
|
|
|
|
} from "./validators/index.js";
|
|
|
|
|
|
2026-02-16 13:31:47 -06:00
|
|
|
export {
|
Expand data model with companies, approvals, costs, and heartbeats
Add new DB schemas: companies, agent_api_keys, approvals, cost_events,
heartbeat_runs, issue_comments. Add corresponding shared types and
validators. Update existing schemas (agents, goals, issues, projects)
with new fields for company association, budgets, and richer metadata.
Generate initial Drizzle migration. Update seed data.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 09:07:22 -06:00
|
|
|
createCompanySchema,
|
|
|
|
|
updateCompanySchema,
|
2026-03-18 21:03:41 -05:00
|
|
|
updateCompanyBrandingSchema,
|
Expand data model with companies, approvals, costs, and heartbeats
Add new DB schemas: companies, agent_api_keys, approvals, cost_events,
heartbeat_runs, issue_comments. Add corresponding shared types and
validators. Update existing schemas (agents, goals, issues, projects)
with new fields for company association, budgets, and richer metadata.
Generate initial Drizzle migration. Update seed data.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 09:07:22 -06:00
|
|
|
type CreateCompany,
|
|
|
|
|
type UpdateCompany,
|
2026-03-18 21:03:41 -05:00
|
|
|
type UpdateCompanyBranding,
|
2026-03-13 22:49:42 -05:00
|
|
|
agentSkillStateSchema,
|
|
|
|
|
agentSkillSyncModeSchema,
|
|
|
|
|
agentSkillEntrySchema,
|
|
|
|
|
agentSkillSnapshotSchema,
|
|
|
|
|
agentSkillSyncSchema,
|
|
|
|
|
type AgentSkillSync,
|
2026-02-16 13:31:47 -06:00
|
|
|
createAgentSchema,
|
2026-02-19 13:02:25 -06:00
|
|
|
createAgentHireSchema,
|
2026-02-16 13:31:47 -06:00
|
|
|
updateAgentSchema,
|
2026-03-17 13:42:00 -05:00
|
|
|
agentInstructionsBundleModeSchema,
|
|
|
|
|
updateAgentInstructionsBundleSchema,
|
|
|
|
|
upsertAgentInstructionsFileSchema,
|
2026-03-02 14:21:24 -06:00
|
|
|
updateAgentInstructionsPathSchema,
|
Expand data model with companies, approvals, costs, and heartbeats
Add new DB schemas: companies, agent_api_keys, approvals, cost_events,
heartbeat_runs, issue_comments. Add corresponding shared types and
validators. Update existing schemas (agents, goals, issues, projects)
with new fields for company association, budgets, and richer metadata.
Generate initial Drizzle migration. Update seed data.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 09:07:22 -06:00
|
|
|
createAgentKeySchema,
|
2026-03-26 20:06:29 -05:00
|
|
|
agentMineInboxQuerySchema,
|
2026-02-17 12:24:38 -06:00
|
|
|
wakeAgentSchema,
|
2026-02-19 14:01:40 -06:00
|
|
|
resetAgentSessionSchema,
|
2026-02-20 12:50:23 -06:00
|
|
|
testAdapterEnvironmentSchema,
|
2026-02-19 09:10:38 -06:00
|
|
|
agentPermissionsSchema,
|
|
|
|
|
updateAgentPermissionsSchema,
|
2026-02-16 13:31:47 -06:00
|
|
|
type CreateAgent,
|
2026-02-19 13:02:25 -06:00
|
|
|
type CreateAgentHire,
|
2026-02-16 13:31:47 -06:00
|
|
|
type UpdateAgent,
|
2026-03-17 13:42:00 -05:00
|
|
|
type UpdateAgentInstructionsBundle,
|
|
|
|
|
type UpsertAgentInstructionsFile,
|
2026-03-02 14:21:24 -06:00
|
|
|
type UpdateAgentInstructionsPath,
|
Expand data model with companies, approvals, costs, and heartbeats
Add new DB schemas: companies, agent_api_keys, approvals, cost_events,
heartbeat_runs, issue_comments. Add corresponding shared types and
validators. Update existing schemas (agents, goals, issues, projects)
with new fields for company association, budgets, and richer metadata.
Generate initial Drizzle migration. Update seed data.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 09:07:22 -06:00
|
|
|
type CreateAgentKey,
|
2026-03-26 20:06:29 -05:00
|
|
|
type AgentMineInboxQuery,
|
2026-02-17 12:24:38 -06:00
|
|
|
type WakeAgent,
|
2026-02-19 14:01:40 -06:00
|
|
|
type ResetAgentSession,
|
2026-02-20 12:50:23 -06:00
|
|
|
type TestAdapterEnvironment,
|
2026-02-19 09:10:38 -06:00
|
|
|
type UpdateAgentPermissions,
|
2026-02-16 13:31:47 -06:00
|
|
|
createProjectSchema,
|
|
|
|
|
updateProjectSchema,
|
2026-02-25 08:38:37 -06:00
|
|
|
createProjectWorkspaceSchema,
|
|
|
|
|
updateProjectWorkspaceSchema,
|
2026-02-16 13:31:47 -06:00
|
|
|
type CreateProject,
|
|
|
|
|
type UpdateProject,
|
2026-02-25 08:38:37 -06:00
|
|
|
type CreateProjectWorkspace,
|
|
|
|
|
type UpdateProjectWorkspace,
|
2026-03-10 09:03:31 -05:00
|
|
|
projectExecutionWorkspacePolicySchema,
|
2026-02-16 13:31:47 -06:00
|
|
|
createIssueSchema,
|
2026-02-25 08:38:37 -06:00
|
|
|
createIssueLabelSchema,
|
2026-02-16 13:31:47 -06:00
|
|
|
updateIssueSchema,
|
2026-03-10 09:03:31 -05:00
|
|
|
issueExecutionWorkspaceSettingsSchema,
|
Expand data model with companies, approvals, costs, and heartbeats
Add new DB schemas: companies, agent_api_keys, approvals, cost_events,
heartbeat_runs, issue_comments. Add corresponding shared types and
validators. Update existing schemas (agents, goals, issues, projects)
with new fields for company association, budgets, and richer metadata.
Generate initial Drizzle migration. Update seed data.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 09:07:22 -06:00
|
|
|
checkoutIssueSchema,
|
|
|
|
|
addIssueCommentSchema,
|
2026-02-19 13:02:25 -06:00
|
|
|
linkIssueApprovalSchema,
|
2026-02-20 10:31:56 -06:00
|
|
|
createIssueAttachmentMetadataSchema,
|
2026-03-13 17:12:25 -05:00
|
|
|
createIssueWorkProductSchema,
|
|
|
|
|
updateIssueWorkProductSchema,
|
|
|
|
|
issueWorkProductTypeSchema,
|
|
|
|
|
issueWorkProductStatusSchema,
|
|
|
|
|
issueWorkProductReviewStateSchema,
|
|
|
|
|
updateExecutionWorkspaceSchema,
|
|
|
|
|
executionWorkspaceStatusSchema,
|
2026-03-28 16:15:20 -05:00
|
|
|
executionWorkspaceCloseActionKindSchema,
|
|
|
|
|
executionWorkspaceCloseActionSchema,
|
|
|
|
|
executionWorkspaceCloseGitReadinessSchema,
|
|
|
|
|
executionWorkspaceCloseLinkedIssueSchema,
|
|
|
|
|
executionWorkspaceCloseReadinessSchema,
|
|
|
|
|
executionWorkspaceCloseReadinessStateSchema,
|
2026-03-13 21:30:48 -05:00
|
|
|
issueDocumentFormatSchema,
|
|
|
|
|
issueDocumentKeySchema,
|
|
|
|
|
upsertIssueDocumentSchema,
|
2026-03-26 08:24:57 -05:00
|
|
|
restoreIssueDocumentRevisionSchema,
|
2026-02-16 13:31:47 -06:00
|
|
|
type CreateIssue,
|
2026-02-25 08:38:37 -06:00
|
|
|
type CreateIssueLabel,
|
2026-02-16 13:31:47 -06:00
|
|
|
type UpdateIssue,
|
Expand data model with companies, approvals, costs, and heartbeats
Add new DB schemas: companies, agent_api_keys, approvals, cost_events,
heartbeat_runs, issue_comments. Add corresponding shared types and
validators. Update existing schemas (agents, goals, issues, projects)
with new fields for company association, budgets, and richer metadata.
Generate initial Drizzle migration. Update seed data.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 09:07:22 -06:00
|
|
|
type CheckoutIssue,
|
|
|
|
|
type AddIssueComment,
|
2026-02-19 13:02:25 -06:00
|
|
|
type LinkIssueApproval,
|
2026-02-20 10:31:56 -06:00
|
|
|
type CreateIssueAttachmentMetadata,
|
2026-03-13 17:12:25 -05:00
|
|
|
type CreateIssueWorkProduct,
|
|
|
|
|
type UpdateIssueWorkProduct,
|
|
|
|
|
type UpdateExecutionWorkspace,
|
2026-03-13 21:30:48 -05:00
|
|
|
type IssueDocumentFormat,
|
|
|
|
|
type UpsertIssueDocument,
|
2026-03-26 08:24:57 -05:00
|
|
|
type RestoreIssueDocumentRevision,
|
2026-02-16 13:31:47 -06:00
|
|
|
createGoalSchema,
|
|
|
|
|
updateGoalSchema,
|
|
|
|
|
type CreateGoal,
|
|
|
|
|
type UpdateGoal,
|
Expand data model with companies, approvals, costs, and heartbeats
Add new DB schemas: companies, agent_api_keys, approvals, cost_events,
heartbeat_runs, issue_comments. Add corresponding shared types and
validators. Update existing schemas (agents, goals, issues, projects)
with new fields for company association, budgets, and richer metadata.
Generate initial Drizzle migration. Update seed data.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 09:07:22 -06:00
|
|
|
createApprovalSchema,
|
2026-03-14 22:00:12 -05:00
|
|
|
upsertBudgetPolicySchema,
|
|
|
|
|
resolveBudgetIncidentSchema,
|
Expand data model with companies, approvals, costs, and heartbeats
Add new DB schemas: companies, agent_api_keys, approvals, cost_events,
heartbeat_runs, issue_comments. Add corresponding shared types and
validators. Update existing schemas (agents, goals, issues, projects)
with new fields for company association, budgets, and richer metadata.
Generate initial Drizzle migration. Update seed data.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 09:07:22 -06:00
|
|
|
resolveApprovalSchema,
|
2026-02-19 09:10:38 -06:00
|
|
|
requestApprovalRevisionSchema,
|
|
|
|
|
resubmitApprovalSchema,
|
|
|
|
|
addApprovalCommentSchema,
|
Expand data model with companies, approvals, costs, and heartbeats
Add new DB schemas: companies, agent_api_keys, approvals, cost_events,
heartbeat_runs, issue_comments. Add corresponding shared types and
validators. Update existing schemas (agents, goals, issues, projects)
with new fields for company association, budgets, and richer metadata.
Generate initial Drizzle migration. Update seed data.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 09:07:22 -06:00
|
|
|
type CreateApproval,
|
2026-03-14 22:00:12 -05:00
|
|
|
type UpsertBudgetPolicy,
|
|
|
|
|
type ResolveBudgetIncident,
|
Expand data model with companies, approvals, costs, and heartbeats
Add new DB schemas: companies, agent_api_keys, approvals, cost_events,
heartbeat_runs, issue_comments. Add corresponding shared types and
validators. Update existing schemas (agents, goals, issues, projects)
with new fields for company association, budgets, and richer metadata.
Generate initial Drizzle migration. Update seed data.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 09:07:22 -06:00
|
|
|
type ResolveApproval,
|
2026-02-19 09:10:38 -06:00
|
|
|
type RequestApprovalRevision,
|
|
|
|
|
type ResubmitApproval,
|
|
|
|
|
type AddApprovalComment,
|
2026-02-19 15:43:43 -06:00
|
|
|
envBindingPlainSchema,
|
|
|
|
|
envBindingSecretRefSchema,
|
|
|
|
|
envBindingSchema,
|
|
|
|
|
envConfigSchema,
|
|
|
|
|
createSecretSchema,
|
|
|
|
|
rotateSecretSchema,
|
|
|
|
|
updateSecretSchema,
|
2026-03-19 08:39:24 -05:00
|
|
|
createRoutineSchema,
|
|
|
|
|
updateRoutineSchema,
|
|
|
|
|
createRoutineTriggerSchema,
|
|
|
|
|
updateRoutineTriggerSchema,
|
|
|
|
|
runRoutineSchema,
|
|
|
|
|
rotateRoutineTriggerSecretSchema,
|
2026-02-19 15:43:43 -06:00
|
|
|
type CreateSecret,
|
|
|
|
|
type RotateSecret,
|
|
|
|
|
type UpdateSecret,
|
2026-03-19 08:39:24 -05:00
|
|
|
type CreateRoutine,
|
|
|
|
|
type UpdateRoutine,
|
|
|
|
|
type CreateRoutineTrigger,
|
|
|
|
|
type UpdateRoutineTrigger,
|
|
|
|
|
type RunRoutine,
|
|
|
|
|
type RotateRoutineTriggerSecret,
|
Expand data model with companies, approvals, costs, and heartbeats
Add new DB schemas: companies, agent_api_keys, approvals, cost_events,
heartbeat_runs, issue_comments. Add corresponding shared types and
validators. Update existing schemas (agents, goals, issues, projects)
with new fields for company association, budgets, and richer metadata.
Generate initial Drizzle migration. Update seed data.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 09:07:22 -06:00
|
|
|
createCostEventSchema,
|
2026-03-14 22:00:12 -05:00
|
|
|
createFinanceEventSchema,
|
Expand data model with companies, approvals, costs, and heartbeats
Add new DB schemas: companies, agent_api_keys, approvals, cost_events,
heartbeat_runs, issue_comments. Add corresponding shared types and
validators. Update existing schemas (agents, goals, issues, projects)
with new fields for company association, budgets, and richer metadata.
Generate initial Drizzle migration. Update seed data.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 09:07:22 -06:00
|
|
|
updateBudgetSchema,
|
2026-02-20 12:50:23 -06:00
|
|
|
createAssetImageMetadataSchema,
|
2026-02-23 09:14:08 -06:00
|
|
|
createCompanyInviteSchema,
|
2026-03-07 18:19:06 -06:00
|
|
|
createOpenClawInvitePromptSchema,
|
2026-02-23 09:14:08 -06:00
|
|
|
acceptInviteSchema,
|
|
|
|
|
listJoinRequestsQuerySchema,
|
2026-02-26 16:33:20 -06:00
|
|
|
claimJoinRequestApiKeySchema,
|
2026-03-23 07:48:03 -05:00
|
|
|
boardCliAuthAccessLevelSchema,
|
|
|
|
|
createCliAuthChallengeSchema,
|
|
|
|
|
resolveCliAuthChallengeSchema,
|
2026-02-23 09:14:08 -06:00
|
|
|
updateMemberPermissionsSchema,
|
|
|
|
|
updateUserCompanyAccessSchema,
|
Expand data model with companies, approvals, costs, and heartbeats
Add new DB schemas: companies, agent_api_keys, approvals, cost_events,
heartbeat_runs, issue_comments. Add corresponding shared types and
validators. Update existing schemas (agents, goals, issues, projects)
with new fields for company association, budgets, and richer metadata.
Generate initial Drizzle migration. Update seed data.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 09:07:22 -06:00
|
|
|
type CreateCostEvent,
|
2026-03-14 22:00:12 -05:00
|
|
|
type CreateFinanceEvent,
|
Expand data model with companies, approvals, costs, and heartbeats
Add new DB schemas: companies, agent_api_keys, approvals, cost_events,
heartbeat_runs, issue_comments. Add corresponding shared types and
validators. Update existing schemas (agents, goals, issues, projects)
with new fields for company association, budgets, and richer metadata.
Generate initial Drizzle migration. Update seed data.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 09:07:22 -06:00
|
|
|
type UpdateBudget,
|
2026-02-20 12:50:23 -06:00
|
|
|
type CreateAssetImageMetadata,
|
2026-02-23 09:14:08 -06:00
|
|
|
type CreateCompanyInvite,
|
2026-03-07 18:19:06 -06:00
|
|
|
type CreateOpenClawInvitePrompt,
|
2026-02-23 09:14:08 -06:00
|
|
|
type AcceptInvite,
|
|
|
|
|
type ListJoinRequestsQuery,
|
2026-02-26 16:33:20 -06:00
|
|
|
type ClaimJoinRequestApiKey,
|
2026-03-23 07:48:03 -05:00
|
|
|
type BoardCliAuthAccessLevel,
|
|
|
|
|
type CreateCliAuthChallenge,
|
|
|
|
|
type ResolveCliAuthChallenge,
|
2026-02-23 09:14:08 -06:00
|
|
|
type UpdateMemberPermissions,
|
|
|
|
|
type UpdateUserCompanyAccess,
|
2026-03-14 10:55:04 -05:00
|
|
|
companySkillSourceTypeSchema,
|
|
|
|
|
companySkillTrustLevelSchema,
|
|
|
|
|
companySkillCompatibilitySchema,
|
2026-03-14 13:52:20 -05:00
|
|
|
companySkillSourceBadgeSchema,
|
2026-03-14 10:55:04 -05:00
|
|
|
companySkillFileInventoryEntrySchema,
|
|
|
|
|
companySkillSchema,
|
|
|
|
|
companySkillListItemSchema,
|
|
|
|
|
companySkillUsageAgentSchema,
|
|
|
|
|
companySkillDetailSchema,
|
2026-03-14 13:52:20 -05:00
|
|
|
companySkillUpdateStatusSchema,
|
2026-03-14 10:55:04 -05:00
|
|
|
companySkillImportSchema,
|
2026-03-16 19:09:33 -05:00
|
|
|
companySkillProjectScanRequestSchema,
|
|
|
|
|
companySkillProjectScanSkippedSchema,
|
|
|
|
|
companySkillProjectScanConflictSchema,
|
|
|
|
|
companySkillProjectScanResultSchema,
|
2026-03-14 13:52:20 -05:00
|
|
|
companySkillCreateSchema,
|
|
|
|
|
companySkillFileDetailSchema,
|
|
|
|
|
companySkillFileUpdateSchema,
|
2026-03-02 09:06:58 -06:00
|
|
|
portabilityIncludeSchema,
|
2026-03-14 09:46:16 -05:00
|
|
|
portabilityEnvInputSchema,
|
2026-03-02 09:06:58 -06:00
|
|
|
portabilityCompanyManifestEntrySchema,
|
2026-03-23 16:49:46 -05:00
|
|
|
portabilitySidebarOrderSchema,
|
2026-03-02 09:06:58 -06:00
|
|
|
portabilityAgentManifestEntrySchema,
|
|
|
|
|
portabilityManifestSchema,
|
|
|
|
|
portabilitySourceSchema,
|
|
|
|
|
portabilityTargetSchema,
|
|
|
|
|
portabilityAgentSelectionSchema,
|
|
|
|
|
portabilityCollisionStrategySchema,
|
|
|
|
|
companyPortabilityExportSchema,
|
|
|
|
|
companyPortabilityPreviewSchema,
|
|
|
|
|
companyPortabilityImportSchema,
|
|
|
|
|
type CompanyPortabilityExport,
|
|
|
|
|
type CompanyPortabilityPreview,
|
|
|
|
|
type CompanyPortabilityImport,
|
2026-03-13 16:22:34 -05:00
|
|
|
jsonSchemaSchema,
|
|
|
|
|
pluginJobDeclarationSchema,
|
|
|
|
|
pluginWebhookDeclarationSchema,
|
|
|
|
|
pluginToolDeclarationSchema,
|
|
|
|
|
pluginUiSlotDeclarationSchema,
|
|
|
|
|
pluginLauncherActionDeclarationSchema,
|
|
|
|
|
pluginLauncherRenderDeclarationSchema,
|
|
|
|
|
pluginLauncherDeclarationSchema,
|
|
|
|
|
pluginManifestV1Schema,
|
|
|
|
|
installPluginSchema,
|
|
|
|
|
upsertPluginConfigSchema,
|
|
|
|
|
patchPluginConfigSchema,
|
|
|
|
|
updatePluginStatusSchema,
|
|
|
|
|
uninstallPluginSchema,
|
|
|
|
|
pluginStateScopeKeySchema,
|
|
|
|
|
setPluginStateSchema,
|
|
|
|
|
listPluginStateSchema,
|
|
|
|
|
type PluginJobDeclarationInput,
|
|
|
|
|
type PluginWebhookDeclarationInput,
|
|
|
|
|
type PluginToolDeclarationInput,
|
|
|
|
|
type PluginUiSlotDeclarationInput,
|
|
|
|
|
type PluginLauncherActionDeclarationInput,
|
|
|
|
|
type PluginLauncherRenderDeclarationInput,
|
|
|
|
|
type PluginLauncherDeclarationInput,
|
|
|
|
|
type PluginManifestV1Input,
|
|
|
|
|
type InstallPlugin,
|
|
|
|
|
type UpsertPluginConfig,
|
|
|
|
|
type PatchPluginConfig,
|
|
|
|
|
type UpdatePluginStatus,
|
|
|
|
|
type UninstallPlugin,
|
|
|
|
|
type PluginStateScopeKey,
|
|
|
|
|
type SetPluginState,
|
|
|
|
|
type ListPluginState,
|
2026-02-16 13:31:47 -06:00
|
|
|
} from "./validators/index.js";
|
|
|
|
|
|
|
|
|
|
export { API_PREFIX, API } from "./api.js";
|
2026-03-02 16:43:59 -06:00
|
|
|
export { normalizeAgentUrlKey, deriveAgentUrlKey, isUuidLike } from "./agent-url-key.js";
|
2026-03-31 16:33:48 +00:00
|
|
|
export { deriveProjectUrlKey, normalizeProjectUrlKey, hasNonAsciiContent } from "./project-url-key.js";
|
2026-03-02 13:31:58 -06:00
|
|
|
export {
|
2026-03-21 14:48:10 -05:00
|
|
|
AGENT_MENTION_SCHEME,
|
2026-03-02 13:31:58 -06:00
|
|
|
PROJECT_MENTION_SCHEME,
|
2026-03-21 14:48:10 -05:00
|
|
|
buildAgentMentionHref,
|
2026-03-02 13:31:58 -06:00
|
|
|
buildProjectMentionHref,
|
2026-03-21 14:48:10 -05:00
|
|
|
extractAgentMentionIds,
|
|
|
|
|
parseAgentMentionHref,
|
2026-03-02 13:31:58 -06:00
|
|
|
parseProjectMentionHref,
|
|
|
|
|
extractProjectMentionIds,
|
2026-03-21 14:48:10 -05:00
|
|
|
type ParsedAgentMention,
|
2026-03-02 13:31:58 -06:00
|
|
|
type ParsedProjectMention,
|
|
|
|
|
} from "./project-mentions.js";
|
2026-02-17 13:39:47 -06:00
|
|
|
|
|
|
|
|
export {
|
|
|
|
|
paperclipConfigSchema,
|
|
|
|
|
configMetaSchema,
|
|
|
|
|
llmConfigSchema,
|
2026-03-04 18:03:23 -06:00
|
|
|
databaseBackupConfigSchema,
|
2026-02-17 13:39:47 -06:00
|
|
|
databaseConfigSchema,
|
|
|
|
|
loggingConfigSchema,
|
|
|
|
|
serverConfigSchema,
|
2026-02-23 09:14:08 -06:00
|
|
|
authConfigSchema,
|
2026-02-19 15:43:43 -06:00
|
|
|
secretsConfigSchema,
|
2026-02-20 10:31:56 -06:00
|
|
|
storageConfigSchema,
|
|
|
|
|
storageLocalDiskConfigSchema,
|
|
|
|
|
storageS3ConfigSchema,
|
2026-02-19 15:43:43 -06:00
|
|
|
secretsLocalEncryptedConfigSchema,
|
2026-02-17 13:39:47 -06:00
|
|
|
type PaperclipConfig,
|
|
|
|
|
type LlmConfig,
|
2026-03-04 18:03:23 -06:00
|
|
|
type DatabaseBackupConfig,
|
2026-02-17 13:39:47 -06:00
|
|
|
type DatabaseConfig,
|
|
|
|
|
type LoggingConfig,
|
|
|
|
|
type ServerConfig,
|
2026-02-23 09:14:08 -06:00
|
|
|
type AuthConfig,
|
2026-02-20 10:31:56 -06:00
|
|
|
type StorageConfig,
|
|
|
|
|
type StorageLocalDiskConfig,
|
|
|
|
|
type StorageS3Config,
|
2026-02-19 15:43:43 -06:00
|
|
|
type SecretsConfig,
|
|
|
|
|
type SecretsLocalEncryptedConfig,
|
2026-02-17 13:39:47 -06:00
|
|
|
type ConfigMeta,
|
|
|
|
|
} from "./config-schema.js";
|