Initial commit: Paperclip plugin for Legal AI integration

16 agent tools, event handler for auto-linking, sync job every 15m.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-04 08:03:43 +00:00
commit 587a2a76ca
1183 changed files with 629235 additions and 0 deletions

View File

@@ -0,0 +1,92 @@
import { z } from "zod";
export declare const createCostEventSchema: z.ZodEffects<z.ZodObject<{
agentId: z.ZodString;
issueId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
projectId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
goalId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
heartbeatRunId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
billingCode: z.ZodNullable<z.ZodOptional<z.ZodString>>;
provider: z.ZodString;
biller: z.ZodOptional<z.ZodString>;
billingType: z.ZodDefault<z.ZodOptional<z.ZodEnum<["metered_api", "subscription_included", "subscription_overage", "credits", "fixed", "unknown"]>>>;
model: z.ZodString;
inputTokens: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
cachedInputTokens: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
outputTokens: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
costCents: z.ZodNumber;
occurredAt: z.ZodString;
}, "strip", z.ZodTypeAny, {
provider: string;
agentId: string;
billingType: "metered_api" | "subscription_included" | "subscription_overage" | "credits" | "fixed" | "unknown";
model: string;
inputTokens: number;
cachedInputTokens: number;
outputTokens: number;
costCents: number;
occurredAt: string;
projectId?: string | null | undefined;
billingCode?: string | null | undefined;
goalId?: string | null | undefined;
issueId?: string | null | undefined;
heartbeatRunId?: string | null | undefined;
biller?: string | undefined;
}, {
provider: string;
agentId: string;
model: string;
costCents: number;
occurredAt: string;
projectId?: string | null | undefined;
billingCode?: string | null | undefined;
goalId?: string | null | undefined;
issueId?: string | null | undefined;
heartbeatRunId?: string | null | undefined;
biller?: string | undefined;
billingType?: "metered_api" | "subscription_included" | "subscription_overage" | "credits" | "fixed" | "unknown" | undefined;
inputTokens?: number | undefined;
cachedInputTokens?: number | undefined;
outputTokens?: number | undefined;
}>, {
biller: string;
provider: string;
agentId: string;
billingType: "metered_api" | "subscription_included" | "subscription_overage" | "credits" | "fixed" | "unknown";
model: string;
inputTokens: number;
cachedInputTokens: number;
outputTokens: number;
costCents: number;
occurredAt: string;
projectId?: string | null | undefined;
billingCode?: string | null | undefined;
goalId?: string | null | undefined;
issueId?: string | null | undefined;
heartbeatRunId?: string | null | undefined;
}, {
provider: string;
agentId: string;
model: string;
costCents: number;
occurredAt: string;
projectId?: string | null | undefined;
billingCode?: string | null | undefined;
goalId?: string | null | undefined;
issueId?: string | null | undefined;
heartbeatRunId?: string | null | undefined;
biller?: string | undefined;
billingType?: "metered_api" | "subscription_included" | "subscription_overage" | "credits" | "fixed" | "unknown" | undefined;
inputTokens?: number | undefined;
cachedInputTokens?: number | undefined;
outputTokens?: number | undefined;
}>;
export type CreateCostEvent = z.infer<typeof createCostEventSchema>;
export declare const updateBudgetSchema: z.ZodObject<{
budgetMonthlyCents: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
budgetMonthlyCents: number;
}, {
budgetMonthlyCents: number;
}>;
export type UpdateBudget = z.infer<typeof updateBudgetSchema>;
//# sourceMappingURL=cost.d.ts.map