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:
129
node_modules/@paperclipai/shared/dist/validators/finance.d.ts
generated
vendored
Normal file
129
node_modules/@paperclipai/shared/dist/validators/finance.d.ts
generated
vendored
Normal file
@@ -0,0 +1,129 @@
|
||||
import { z } from "zod";
|
||||
export declare const createFinanceEventSchema: z.ZodEffects<z.ZodObject<{
|
||||
agentId: z.ZodNullable<z.ZodOptional<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>>;
|
||||
costEventId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
||||
billingCode: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
||||
description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
||||
eventKind: z.ZodEnum<["inference_charge", "platform_fee", "credit_purchase", "credit_refund", "credit_expiry", "byok_fee", "gateway_overhead", "log_storage_charge", "logpush_charge", "provisioned_capacity_charge", "training_charge", "custom_model_import_charge", "custom_model_storage_charge", "manual_adjustment"]>;
|
||||
direction: z.ZodDefault<z.ZodOptional<z.ZodEnum<["debit", "credit"]>>>;
|
||||
biller: z.ZodString;
|
||||
provider: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
||||
executionAdapterType: z.ZodNullable<z.ZodOptional<z.ZodEnum<["process", "http", "claude_local", "codex_local", "opencode_local", "pi_local", "cursor", "openclaw_gateway", "hermes_local"]>>>;
|
||||
pricingTier: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
||||
region: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
||||
model: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
||||
quantity: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
||||
unit: z.ZodNullable<z.ZodOptional<z.ZodEnum<["input_token", "output_token", "cached_input_token", "request", "credit_usd", "credit_unit", "model_unit_minute", "model_unit_hour", "gb_month", "train_token", "unknown"]>>>;
|
||||
amountCents: z.ZodNumber;
|
||||
currency: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
||||
estimated: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
||||
externalInvoiceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
||||
metadataJson: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
||||
occurredAt: z.ZodString;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
biller: string;
|
||||
occurredAt: string;
|
||||
eventKind: "inference_charge" | "platform_fee" | "credit_purchase" | "credit_refund" | "credit_expiry" | "byok_fee" | "gateway_overhead" | "log_storage_charge" | "logpush_charge" | "provisioned_capacity_charge" | "training_charge" | "custom_model_import_charge" | "custom_model_storage_charge" | "manual_adjustment";
|
||||
direction: "debit" | "credit";
|
||||
amountCents: number;
|
||||
currency: string;
|
||||
estimated: boolean;
|
||||
provider?: string | null | undefined;
|
||||
region?: string | null | undefined;
|
||||
description?: string | null | undefined;
|
||||
projectId?: string | null | undefined;
|
||||
billingCode?: string | null | undefined;
|
||||
goalId?: string | null | undefined;
|
||||
agentId?: string | null | undefined;
|
||||
issueId?: string | null | undefined;
|
||||
heartbeatRunId?: string | null | undefined;
|
||||
model?: string | null | undefined;
|
||||
costEventId?: string | null | undefined;
|
||||
executionAdapterType?: "process" | "http" | "claude_local" | "codex_local" | "opencode_local" | "pi_local" | "cursor" | "openclaw_gateway" | "hermes_local" | null | undefined;
|
||||
pricingTier?: string | null | undefined;
|
||||
quantity?: number | null | undefined;
|
||||
unit?: "unknown" | "input_token" | "output_token" | "cached_input_token" | "request" | "credit_usd" | "credit_unit" | "model_unit_minute" | "model_unit_hour" | "gb_month" | "train_token" | null | undefined;
|
||||
externalInvoiceId?: string | null | undefined;
|
||||
metadataJson?: Record<string, unknown> | null | undefined;
|
||||
}, {
|
||||
biller: string;
|
||||
occurredAt: string;
|
||||
eventKind: "inference_charge" | "platform_fee" | "credit_purchase" | "credit_refund" | "credit_expiry" | "byok_fee" | "gateway_overhead" | "log_storage_charge" | "logpush_charge" | "provisioned_capacity_charge" | "training_charge" | "custom_model_import_charge" | "custom_model_storage_charge" | "manual_adjustment";
|
||||
amountCents: number;
|
||||
provider?: string | null | undefined;
|
||||
region?: string | null | undefined;
|
||||
description?: string | null | undefined;
|
||||
projectId?: string | null | undefined;
|
||||
billingCode?: string | null | undefined;
|
||||
goalId?: string | null | undefined;
|
||||
agentId?: string | null | undefined;
|
||||
issueId?: string | null | undefined;
|
||||
heartbeatRunId?: string | null | undefined;
|
||||
model?: string | null | undefined;
|
||||
costEventId?: string | null | undefined;
|
||||
direction?: "debit" | "credit" | undefined;
|
||||
executionAdapterType?: "process" | "http" | "claude_local" | "codex_local" | "opencode_local" | "pi_local" | "cursor" | "openclaw_gateway" | "hermes_local" | null | undefined;
|
||||
pricingTier?: string | null | undefined;
|
||||
quantity?: number | null | undefined;
|
||||
unit?: "unknown" | "input_token" | "output_token" | "cached_input_token" | "request" | "credit_usd" | "credit_unit" | "model_unit_minute" | "model_unit_hour" | "gb_month" | "train_token" | null | undefined;
|
||||
currency?: string | undefined;
|
||||
estimated?: boolean | undefined;
|
||||
externalInvoiceId?: string | null | undefined;
|
||||
metadataJson?: Record<string, unknown> | null | undefined;
|
||||
}>, {
|
||||
currency: string;
|
||||
biller: string;
|
||||
occurredAt: string;
|
||||
eventKind: "inference_charge" | "platform_fee" | "credit_purchase" | "credit_refund" | "credit_expiry" | "byok_fee" | "gateway_overhead" | "log_storage_charge" | "logpush_charge" | "provisioned_capacity_charge" | "training_charge" | "custom_model_import_charge" | "custom_model_storage_charge" | "manual_adjustment";
|
||||
direction: "debit" | "credit";
|
||||
amountCents: number;
|
||||
estimated: boolean;
|
||||
provider?: string | null | undefined;
|
||||
region?: string | null | undefined;
|
||||
description?: string | null | undefined;
|
||||
projectId?: string | null | undefined;
|
||||
billingCode?: string | null | undefined;
|
||||
goalId?: string | null | undefined;
|
||||
agentId?: string | null | undefined;
|
||||
issueId?: string | null | undefined;
|
||||
heartbeatRunId?: string | null | undefined;
|
||||
model?: string | null | undefined;
|
||||
costEventId?: string | null | undefined;
|
||||
executionAdapterType?: "process" | "http" | "claude_local" | "codex_local" | "opencode_local" | "pi_local" | "cursor" | "openclaw_gateway" | "hermes_local" | null | undefined;
|
||||
pricingTier?: string | null | undefined;
|
||||
quantity?: number | null | undefined;
|
||||
unit?: "unknown" | "input_token" | "output_token" | "cached_input_token" | "request" | "credit_usd" | "credit_unit" | "model_unit_minute" | "model_unit_hour" | "gb_month" | "train_token" | null | undefined;
|
||||
externalInvoiceId?: string | null | undefined;
|
||||
metadataJson?: Record<string, unknown> | null | undefined;
|
||||
}, {
|
||||
biller: string;
|
||||
occurredAt: string;
|
||||
eventKind: "inference_charge" | "platform_fee" | "credit_purchase" | "credit_refund" | "credit_expiry" | "byok_fee" | "gateway_overhead" | "log_storage_charge" | "logpush_charge" | "provisioned_capacity_charge" | "training_charge" | "custom_model_import_charge" | "custom_model_storage_charge" | "manual_adjustment";
|
||||
amountCents: number;
|
||||
provider?: string | null | undefined;
|
||||
region?: string | null | undefined;
|
||||
description?: string | null | undefined;
|
||||
projectId?: string | null | undefined;
|
||||
billingCode?: string | null | undefined;
|
||||
goalId?: string | null | undefined;
|
||||
agentId?: string | null | undefined;
|
||||
issueId?: string | null | undefined;
|
||||
heartbeatRunId?: string | null | undefined;
|
||||
model?: string | null | undefined;
|
||||
costEventId?: string | null | undefined;
|
||||
direction?: "debit" | "credit" | undefined;
|
||||
executionAdapterType?: "process" | "http" | "claude_local" | "codex_local" | "opencode_local" | "pi_local" | "cursor" | "openclaw_gateway" | "hermes_local" | null | undefined;
|
||||
pricingTier?: string | null | undefined;
|
||||
quantity?: number | null | undefined;
|
||||
unit?: "unknown" | "input_token" | "output_token" | "cached_input_token" | "request" | "credit_usd" | "credit_unit" | "model_unit_minute" | "model_unit_hour" | "gb_month" | "train_token" | null | undefined;
|
||||
currency?: string | undefined;
|
||||
estimated?: boolean | undefined;
|
||||
externalInvoiceId?: string | null | undefined;
|
||||
metadataJson?: Record<string, unknown> | null | undefined;
|
||||
}>;
|
||||
export type CreateFinanceEvent = z.infer<typeof createFinanceEventSchema>;
|
||||
//# sourceMappingURL=finance.d.ts.map
|
||||
Reference in New Issue
Block a user