@hivetechs/hive-ai
Version:
Real-time streaming AI consensus platform with HTTP+SSE MCP integration for Claude Code, VS Code, Cursor, and Windsurf - powered by OpenRouter's unified API
183 lines • 6.17 kB
TypeScript
/**
* Subscription Management Tools
* Provides user-facing tools for managing hive-tools subscriptions, usage tracking, and upgrades
*/
import { z } from 'zod';
export declare const CheckSubscriptionSchema: z.ZodObject<{
detailed: z.ZodDefault<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
detailed: boolean;
}, {
detailed?: boolean | undefined;
}>;
export declare const ViewUsageStatsSchema: z.ZodObject<{
period: z.ZodDefault<z.ZodEnum<["day", "week", "month", "all"]>>;
format: z.ZodDefault<z.ZodEnum<["summary", "detailed", "chart"]>>;
}, "strip", z.ZodTypeAny, {
format: "detailed" | "summary" | "chart";
period: "all" | "week" | "month" | "day";
}, {
format?: "detailed" | "summary" | "chart" | undefined;
period?: "all" | "week" | "month" | "day" | undefined;
}>;
export declare const UpgradeSubscriptionSchema: z.ZodObject<{
tier: z.ZodEnum<["basic", "standard", "premium", "team"]>;
billing: z.ZodDefault<z.ZodEnum<["monthly", "yearly"]>>;
}, "strip", z.ZodTypeAny, {
tier: "premium" | "basic" | "standard" | "team";
billing: "monthly" | "yearly";
}, {
tier: "premium" | "basic" | "standard" | "team";
billing?: "monthly" | "yearly" | undefined;
}>;
export declare const PurchaseCreditsSchema: z.ZodObject<{
pack: z.ZodEnum<["starter", "value", "power"]>;
quantity: z.ZodDefault<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
pack: "value" | "starter" | "power";
quantity: number;
}, {
pack: "value" | "starter" | "power";
quantity?: number | undefined;
}>;
export declare const ManageAccountSchema: z.ZodObject<{
action: z.ZodEnum<["view", "update_email", "change_password", "view_devices", "remove_device"]>;
email: z.ZodOptional<z.ZodString>;
device_id: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
action: "view" | "update_email" | "change_password" | "view_devices" | "remove_device";
email?: string | undefined;
device_id?: string | undefined;
}, {
action: "view" | "update_email" | "change_password" | "view_devices" | "remove_device";
email?: string | undefined;
device_id?: string | undefined;
}>;
export declare const checkSubscriptionToolName = "check_subscription";
export declare const checkSubscriptionToolDescription = "Check your current hive-tools subscription status, limits, and usage";
export declare const viewUsageStatsToolName = "view_usage_stats";
export declare const viewUsageStatsToolDescription = "View detailed usage statistics and conversation history";
export declare const upgradeSubscriptionToolName = "upgrade_subscription";
export declare const upgradeSubscriptionToolDescription = "Upgrade your hive-tools subscription to a higher tier";
export declare const purchaseCreditsToolName = "purchase_credits";
export declare const purchaseCreditsToolDescription = "Purchase additional consensus credits for extra conversations";
export declare const manageAccountToolName = "manage_account";
export declare const manageAccountToolDescription = "Manage your hive-tools account settings and devices";
export declare function runCheckSubscriptionTool(args: z.infer<typeof CheckSubscriptionSchema>): Promise<{
subscription: {
tier: any;
status: any;
daily_limit: any;
monthly_limit: any;
expires_at: any;
trial_remaining: any;
};
usage: {
daily_used: any;
monthly_used: any;
daily_percentage: number;
monthly_percentage: number;
credits_remaining: any;
};
actions: {
can_upgrade: boolean;
upgrade_recommended: boolean;
next_reset: string;
checkout_url: string;
};
message: string;
} | {
subscription: {
tier: string;
status: string;
daily_limit: number;
monthly_limit: number;
trial_remaining: null;
};
usage: {
daily_used: number;
monthly_used: number;
daily_percentage: number;
monthly_percentage: number;
};
actions: {
can_upgrade: boolean;
upgrade_recommended: boolean;
next_reset: string;
checkout_url: string;
};
message: string;
error?: undefined;
} | {
error: string;
message: string;
subscription?: undefined;
usage?: undefined;
actions?: undefined;
}>;
export declare function runViewUsageStatsTool(args: z.infer<typeof ViewUsageStatsSchema>): Promise<any>;
export declare function runUpgradeSubscriptionTool(args: z.infer<typeof UpgradeSubscriptionSchema>): Promise<{
upgrade: {
from_tier: any;
to_tier: "premium" | "basic" | "standard" | "team";
billing: "monthly" | "yearly";
cost: number;
savings: number;
checkout_url: string;
};
new_limits: {
daily_conversations: number;
monthly_conversations: number;
};
message: string;
error?: undefined;
} | {
error: string;
message: string;
upgrade?: undefined;
new_limits?: undefined;
}>;
export declare function runPurchaseCreditssTool(args: z.infer<typeof PurchaseCreditsSchema>): Promise<{
credit_purchase: {
pack_type: "value" | "starter" | "power";
quantity: number;
credits_per_pack: number;
total_credits: number;
cost_per_pack: number;
total_cost: number;
value_per_credit: number;
checkout_url: string;
};
message: string;
error?: undefined;
} | {
error: string;
message: string;
credit_purchase?: undefined;
}>;
export declare function runManageAccountTool(args: z.infer<typeof ManageAccountSchema>): Promise<{
account: any;
message: string;
devices?: undefined;
error?: undefined;
success?: undefined;
} | {
devices: any[];
message: string;
account?: undefined;
error?: undefined;
success?: undefined;
} | {
error: string;
message: string;
account?: undefined;
devices?: undefined;
success?: undefined;
} | {
success: boolean;
message: string;
account?: undefined;
devices?: undefined;
error?: undefined;
}>;
//# sourceMappingURL=subscription-management.d.ts.map