feat(schemas): add repository settings and user restore token fields

- Add allow_forking, allow_merge_commit, allow_rebase_merge, allow_squash_merge fields to repo schemas
- Add delete_branch_on_merge field to repository models and schemas
- Add has_issues, has_pull_requests, has_wiki, homepage fields to repo schemas
- Add topics array field to repository schemas and models
- Add restore_token_expires_at and restore_token_hash fields to user schemas
- Remove UserAvatarResponse and UploadUserAvatarParams schemas completely
- Update CreateRepoParams and UpdateRepoParams with new repository settings
- Modify CreateTemplateParams and UpdateTemplateParams with notification template fields
- Remove description from SetBranchProtectionParams schema
- Delete App.css and auth.css files completely
- Update App.tsx with routing migration notes
This commit is contained in:
zhenyi
2026-06-11 23:12:24 +08:00
parent defde2bca9
commit d7c4bc7c8e
582 changed files with 49188 additions and 3037 deletions
+10
View File
@@ -7,13 +7,22 @@ import type { Status } from './Status';
import type { Visibility } from './Visibility';
export type ApiResponse_Repo = {
data: {
allow_forking: boolean;
allow_merge_commit: boolean;
allow_rebase_merge: boolean;
allow_squash_merge: boolean;
archived_at?: string | null;
created_at: string;
default_branch: string;
delete_branch_on_merge: boolean;
deleted_at?: string | null;
description?: string | null;
forked_from_repo_id?: string | null;
git_service: GitService;
has_issues: boolean;
has_pull_requests: boolean;
has_wiki: boolean;
homepage?: string | null;
id: string;
is_fork: boolean;
name: string;
@@ -22,6 +31,7 @@ export type ApiResponse_Repo = {
status: Status;
storage_node_ids: Array<string>;
storage_path: string;
topics: Array<string>;
updated_at: string;
visibility: Visibility;
workspace_id: string;