Spaces:
Sleeping
Sleeping
Download src/types.ts from Momoxiao111/P.help: direct link, hf CLI and curl.
- Browser
- Download file 3.39 kB
-
https://huggingface.co/spaces/Momoxiao111/P.help/resolve/main/src/types.ts
- Command line
-
hf download hf://spaces/Momoxiao111/P.help/src/types.ts
-
curl -L -o types.ts https://huggingface.co/spaces/Momoxiao111/P.help/resolve/main/src/types.ts
3.39 kB
| export interface Project { | |
| id: string; | |
| title: string; | |
| invention_type: 'invention' | 'utility_model' | 'design'; // 发明专利, 实用新型, 外观设计 | |
| status: 'draft' | 'supplementing' | 'searching' | 'analyzing' | 'reported' | 'archived'; // 状态 | |
| risk_score: number; | |
| created_at: string; | |
| updated_at: string; | |
| technical_field?: string; // 技术领域 | |
| background_problem?: string; // 背景技术/要解决的技术问题 | |
| technical_solution?: string; // 技术方案/核心技术手段 | |
| innovation_points?: string; // 创新点 | |
| beneficial_effects?: string; // 有益效果 | |
| embodiments?: string; // 具体实施方式/实施例 | |
| } | |
| export interface Document { | |
| id: string; | |
| project_id: string; | |
| file_name: string; | |
| file_type: string; // 'docx' | 'pdf' | 'txt' | 'img' | |
| parsed_text: string; | |
| created_at: string; | |
| } | |
| export interface Claim { | |
| id: string; | |
| project_id: string; | |
| claim_number: number; | |
| claim_type: 'independent' | 'dependent'; | |
| content: string; | |
| parent_claim_id?: string; | |
| risk_score?: number; | |
| explanation?: string; // 保护重点说明 | |
| } | |
| export interface Specification { | |
| project_id: string; | |
| technical_field?: string; | |
| background_art?: string; | |
| summary?: string; | |
| brief_drawings?: string; | |
| detailed_description?: string; | |
| } | |
| export interface PriorArt { | |
| id: string; | |
| project_id: string; | |
| title: string; | |
| publication_number: string; | |
| applicant: string; | |
| publication_date: string; | |
| abstract: string; | |
| similarity_score: number; | |
| same_features?: string; // 相同技术特征 | |
| diff_features?: string; // 区别技术特征 | |
| risk_level: 'high' | 'medium' | 'low'; | |
| } | |
| export interface ReviewReport { | |
| id: string; | |
| project_id: string; | |
| novelty_score: number; // 新颖性评分 | |
| inventiveness_score: number; // 创造性评分 | |
| clarity_score: number; // 权利要求清楚性评分 | |
| support_score: number; // 说明书充分公开/支持评分 | |
| commercial_score: number; // 商业价值评分 | |
| avoidance_difficulty_score: number; // 可规避难度评分 | |
| completeness_score: number; // 文件完整度评分 | |
| final_score: number; // 风险评分/最终分数 | |
| risk_level: string; // 风险等级 | |
| conclusion: string; // 结论建议 | |
| novelty_analysis: string; | |
| inventiveness_analysis: string; | |
| clarity_analysis: string; | |
| support_analysis: string; | |
| suggestions: string[]; | |
| recommended_type?: 'invention' | 'utility_model'; // 推荐申请类型 | |
| recommended_reason?: string; // 推荐理由 | |
| created_at: string; | |
| } | |
| export interface OfficeAction { | |
| id: string; | |
| project_id: string; | |
| file_name?: string; | |
| content: string; // 审查意见通知书文本 | |
| oa_type: string; // 审查意见类型 (e.g., 驳回通知书, 第一次审查意见通知书等) | |
| rejected_claims: string; // 被驳回的权利要求 | |
| citations: string; // 引用的对比文件 | |
| examiner_arguments: string; // 审查员认为缺乏创造性/新颖性的理由 | |
| distinguishing_features: string; // 可争辩的区别技术特征 | |
| suggested_amendments: string; // 权利要求修改建议 | |
| argument_draft: string; // 意见陈述书草稿 | |
| risk_score: number; // 答复风险评分 | |
| created_at: string; | |
| } | |
| export interface ChatMessage { | |
| id: string; | |
| role: 'user' | 'assistant'; | |
| content: string; | |
| created_at: string; | |
| } | |
| export interface InterviewState { | |
| chat_history: ChatMessage[]; | |
| pending_questions: string[]; | |
| } | |