node-cnb
Version:
node sdk for cnb open api
2,462 lines (2,136 loc) • 172 kB
TypeScript
//#region src/types.d.ts
type ApiBranch = {
commit: {
sha: string;
};
name: string;
protected: boolean;
};
type ApiBranchDetail = {
commit: ApiCommit;
name: string;
protected: boolean;
};
type ApiBranchProtection = {
/**是否允许所有人创建保护分支。*/
allow_creation: boolean;
/**是否允许所有人删除保护分支。*/
allow_deletions: boolean;
/**是否允许所有人强制推送。*/
allow_force_pushes: boolean;
/**是否仅允许仓库管理员及负责人创建保护分支。*/
allow_master_creation: boolean;
/**是否仅允许仓库管理员及负责人删除保护分支。*/
allow_master_deletions: boolean;
/**是否仅允许仓库管理员及负责人强制推送。*/
allow_master_force_pushes: boolean;
/**是否允许仓库管理员及负责人手动合并到目标分支。*/
allow_master_manual_merge: boolean;
/**是否仅允许仓库管理员及负责人推送代码到保护分支中。*/
allow_master_pushes: boolean;
/**是否允许所有人推送代码到保护分支中。*/
allow_pushes: boolean;
/**保护分支规则唯一标识符。*/
id: string;
/**需要的代码评审者数量。格式:`评审者数量 ∈ [1,5]`*/
required_approved_review_count: number;
/**需要的评审通过率。格式:`通过率 ∈ [1, 100]`*/
required_approved_review_ratio: number;
/**是否仅允许线性提交。*/
required_linear_history: boolean;
/**是否需至少一个仓库管理员批准。*/
required_master_approve: boolean;
/**是否仅允许自动合并。*/
required_must_auto_merge: boolean;
/**是否必须通过合并请求推送代码到此规则匹配分支中。*/
required_must_push_via_pull_request: boolean;
/**保护分支的合并请求是否需要代码评审。*/
required_pull_request_reviews: boolean;
/**是否需要通过状态检查。*/
required_status_checks: boolean;
/**保护分支规则名称,支持通配符。*/
rule: string;
};
type ApiCommit = {
author: GitWoaComCnbMonorepoGitInternalAppGitServiceBffApiUserInfo;
commit: ApiCommitObject;
committer: GitWoaComCnbMonorepoGitInternalAppGitServiceBffApiUserInfo;
parents: ApiCommitParent[];
sha: string;
};
type ApiCommitAsset = {
author: GitWoaComCnbMonorepoGitInternalAppGitServiceBffApiUserInfo;
content_type: string;
created_at: string;
id: string;
name: string;
path: string;
size_in_byte: number;
updated_at: string;
};
type ApiCommitDiffFilePatch = {
additions: number;
deletions: number;
mode: string;
name: string;
patch: string;
path: string;
previous_filename: string;
previous_mode: string;
status: string;
};
type ApiCommitObject = {
author: ApiSignature;
comment_count: number;
committer: ApiSignature;
message: string;
tree: ApiCommitObjectTree;
verification: ApiCommitObjectVerification;
};
type ApiCommitObjectTree = {
sha: string;
};
type ApiCommitObjectVerification = {
payload: string;
reason: string;
signature: string;
verified: boolean;
verified_at: string;
};
type ApiCommitParent = {
sha: string;
};
type ApiCommitStatuses = {
sha: string;
state: string;
statuses: GitWoaComCnbMonorepoGitInternalAppVcsServiceBffApiCommitStatus[];
};
type ApiCompareResponse = {
base_commit: ApiCommit;
commits: ApiCommit[];
files: ApiCommitDiffFilePatch[];
head_commit: ApiCommit;
merge_base_commit: ApiCommit;
total_commits: number;
};
type ApiContent = {
content: string;
encoding: string;
entries: ApiTreeEntry[];
lfs_download_url: string;
lfs_oid: string;
lfs_size: number;
name: string;
path: string;
sha: string;
size: number;
type: string;
};
type ApiDeleteIssueAssigneesForm = {
assignees: string[];
};
type ApiDeletePullAssigneesForm = {
assignees: string[];
};
type ApiDiffLine = {
content: string;
left_line_number: number;
prefix: string;
right_line_number: number;
type: string;
};
type ApiIssue = {
assignees: GitWoaComCnbMonorepoGitInternalAppVcsServiceBffApiUserInfo[];
author: GitWoaComCnbMonorepoGitInternalAppVcsServiceBffApiUserInfo;
comment_count: number;
created_at: string;
ended_at: string;
labels: ApiLabel[];
last_acted_at: string;
number: string;
priority: string;
started_at: string;
state: string;
state_reason: string;
title: string;
updated_at: string;
};
type ApiIssueComment = {
author: GitWoaComCnbMonorepoGitInternalAppVcsServiceBffApiUserInfo;
body: string;
created_at: string;
id: string;
updated_at: string;
};
type ApiIssueDetail = {
assignees: GitWoaComCnbMonorepoGitInternalAppVcsServiceBffApiUserInfo[];
author: GitWoaComCnbMonorepoGitInternalAppVcsServiceBffApiUserInfo;
body: string;
comment_count: number;
created_at: string;
ended_at: string;
labels: ApiLabel[];
last_acted_at: string;
number: string;
priority: string;
started_at: string;
state: string;
state_reason: string;
title: string;
updated_at: string;
};
type ApiLabel = {
color: string;
description: string;
id: string;
name: string;
};
type ApiMergePullRequest = {
commit_message: string;
commit_title: string;
/**The merge method to use. Can be one of: `merge`, `squash`, `rebase`*/
merge_style: string;
};
type ApiMergePullResponse = {
merged: boolean;
message: string;
sha: string;
};
type ApiPatchIssueAssigneesForm = {
assignees: string[];
};
type ApiPatchIssueCommentForm = {
body: string;
};
type ApiPatchIssueForm = {
body: string;
/**end time*/
end_date: string;
/**Priority of this issue. Can be one of: `-1P`, `-2P`, `P0`, `P1`, `P2`, `P3`, `""`.*/
priority: string;
/**start time*/
start_date: string;
/**State of this issue. Either `open` or `closed`.*/
state: string;
/**StateReason can be one of: `completed`, `not_planned`, `reopened`*/
state_reason: string;
title: string;
};
type ApiPatchLabelForm = {
/**The hexadecimal color code for the label, without the leading `#`.*/
color: string;
description: string;
new_name: string;
};
type ApiPatchPullCommentForm = {
body: string;
};
type ApiPatchPullRequest = {
body: string;
/**State of this Pull Request. Either `open` or `closed`.*/
state: string;
title: string;
};
type ApiPipelineSettings = {
/**是否允许仓库按照.cnb.yml配置自动触发云原生构建。*/
auto_trigger: boolean;
/**是否允许本仓Fork出来的仓库按照.cnb.yml配置自动触发云原生构建。*/
forked_repo_auto_trigger: boolean;
};
type ApiPostBlobForm = {
content: string;
/**当前编码只支持 `"utf-8"` and `"base64"` 。默认: `utf-8`*/
encoding: string;
};
type ApiPostIssueAssigneesForm = {
assignees: string[];
};
type ApiPostIssueCommentForm = {
body: string;
};
type ApiPostIssueForm = {
assignees: string[];
body: string;
end_date: string;
labels: string[];
/**Priority of this issue. Can be one of: `-1P`, `-2P`, `P0`, `P1`, `P2`, `P3`, `""`.*/
priority: string;
start_date: string;
title: string;
};
type ApiPostIssueLabelsForm = {
labels: string[];
};
type ApiPostLabelForm = {
/**The hexadecimal color code for the label, without the leading `#`.*/
color: string;
description: string;
name: string;
};
type ApiPostPullAssigneesForm = {
assignees: string[];
};
type ApiPostPullLabelsForm = {
labels: string[];
};
type ApiPostTagFrom = {
message: string;
name: string;
target: string;
};
type ApiPull = {
base: ApiPullRef;
blocked_on: string;
body: string;
head: ApiPullRef;
is_wip: boolean;
labels: ApiLabel[];
merged_by: GitWoaComCnbMonorepoGitInternalAppGitServiceBffApiUserInfo;
number: string;
reviewers: ApiPullReviewer[];
state: string;
title: string;
};
type ApiPullCommentCreationForm = {
body: string;
};
type ApiPullCreationForm = {
base: string;
body: string;
head: string;
head_repo: string;
title: string;
};
type ApiPullFile = {
additions: number;
blob_url: string;
contents_url: string;
deletions: number;
filename: string;
patch: string;
raw_url: string;
sha: string;
/**Status of this Pull Request specified diff file. Either `add` / `modify` / `delete` / `rename` / `copy`.*/
status: string;
};
type ApiPullRef = {
ref: string;
repo: ApiRepo;
sha: string;
};
type ApiPullRefInfo = {
ref: string;
repo: ApiRepoInfo;
sha: string;
};
type ApiPullRequest = {
assignees: GitWoaComCnbMonorepoGitInternalAppGitServiceBffApiUserInfo[];
author: GitWoaComCnbMonorepoGitInternalAppGitServiceBffApiUserInfo;
base: ApiPullRef;
blocked_on: string;
comment_count: number;
created_at: string;
head: ApiPullRef;
is_wip: boolean;
labels: ApiLabel[];
last_acted_at: string;
mergeable_state: string;
merged_by: GitWoaComCnbMonorepoGitInternalAppGitServiceBffApiUserInfo;
number: string;
repo: ApiRepo;
review_count: number;
state: string;
title: string;
updated_at: string;
};
type ApiPullRequestComment = {
author: GitWoaComCnbMonorepoGitInternalAppGitServiceBffApiUserInfo;
body: string;
created_at: string;
id: string;
updated_at: string;
};
type ApiPullRequestInfo = {
assignees: GitWoaComCnbMonorepoGitInternalAppVcsServiceBffApiUserInfo[];
author: GitWoaComCnbMonorepoGitInternalAppVcsServiceBffApiUserInfo;
base: ApiPullRefInfo;
blocked_on: string;
created_at: string;
head: ApiPullRefInfo;
labels: ApiLabel[];
last_acted_at: string;
mergeable_state: string;
merged_by: GitWoaComCnbMonorepoGitInternalAppVcsServiceBffApiUserInfo;
number: string;
repo: ApiRepoInfo;
reviewers: GitWoaComCnbMonorepoGitInternalAppVcsServiceBffApiUserInfo[];
state: string;
title: string;
updated_at: string;
};
type ApiPullRequestSettings = {
/**是否允许直接提交合并。*/
allow_merge_commit_merge: boolean;
/**是否允许变基合并。*/
allow_rebase_merge: boolean;
/**是否允许压缩合并。*/
allow_squash_merge: boolean;
/**是否允许自动添加仓库管理员为评审者。*/
master_auto_as_reviewer: boolean;
/**直接提交合并操作时默认生成的提交信息内容。可选值:`default`,`pull_request_title`,`pull_request_title_with_body`*/
merge_commit_message_style: string;
/**压缩合并操作时默认生成的提交信息内容。可选值:`default`,`pull_request_title`,`pull_request_title_with_body`*/
squash_commit_message_style: string;
};
type ApiPullReview = {
author: GitWoaComCnbMonorepoGitInternalAppGitServiceBffApiUserInfo;
body: string;
created_at: string;
id: string;
state: string;
updated_at: string;
};
type ApiPullReviewComment = {
author: GitWoaComCnbMonorepoGitInternalAppGitServiceBffApiUserInfo;
body: string;
commit_hash: string;
created_at: string;
diff_hunk: ApiDiffLine[];
end_line: number;
end_side: string;
id: string;
path: string;
reply_to_comment_id: string;
review_id: string;
review_state: string;
start_line: number;
start_side: string;
subject_type: string;
updated_at: string;
};
type ApiPullReviewCommentCreationForm = {
body: string;
end_line: number;
end_side: string;
path: string;
start_line: number;
start_side: string;
/**can be one of: line, file*/
subject_type: string;
};
type ApiPullReviewCreationForm = {
body: string;
comments: ApiPullReviewCommentCreationForm[];
event: string;
};
type ApiPullReviewer = {
/**reviewState contains One of: `pending`, `commented`, `approved`, `changes_requested`, `dismissed`.*/
review_state: string;
user: GitWoaComCnbMonorepoGitInternalAppGitServiceBffApiUserInfo;
};
type ApiPushLimitSettings = {
/**允许单次推送最多允许更新分支和标签的个数数量。*/
allow_single_push_number: number;
/**是否开启单次更新分支和标签的个数限制。*/
check_single_push_number: boolean;
/**是否仅允许负责人和管理员推送或删除标签、创建或删除版本。*/
only_master_can_push_tag: boolean;
/**推送提交到仓库,对提交作者和提交人进行检查。可选值:`any`,`registered`,`pusher`*/
push_commit_must_be: string;
};
type ApiPutIssueLabelsForm = {
labels: string[];
};
type ApiPutPullLabelsForm = {
labels: string[];
};
type ApiRelease = {
/**发布附件列表*/
assets: ApiReleaseAsset[];
/**发布作者信息*/
author: any;
/**发布描述内容*/
body: string;
/**创建时间*/
created_at: string;
/**是否为草稿版本*/
draft: boolean;
/**发布ID*/
id: string;
/**是否为最新版本*/
is_latest: boolean;
/**发布名称*/
name: string;
/**是否为预发布版本*/
prerelease: boolean;
/**发布时间*/
published_at: string;
/**标签对应的提交哈希*/
tag_commitish: string;
/**标签名称*/
tag_name: string;
/**更新时间*/
updated_at: string;
};
type ApiReleaseAsset = {
/**浏览器下载URL*/
brower_download_url: string;
/**附件内容类型*/
content_type: string;
/**创建时间*/
created_at: string;
/**附件ID*/
id: string;
/**附件名称*/
name: string;
/**附件路径*/
path: string;
/**附件大小(字节)*/
size: number;
/**更新时间*/
updated_at: string;
/**附件上传者信息*/
uploader: any;
/**附件下载URL*/
url: string;
};
type ApiRepo = {
id: string;
name: string;
path: string;
web_url: string;
};
type ApiRepoInfo = {
id: string;
name: string;
path: string;
web_url: string;
};
type ApiSignature = {
date: string;
email: string;
name: string;
};
type ApiTag = {
commit: ApiCommit;
name: string;
target: string;
target_type: string;
verification: ApiTagObjectVerification;
};
type ApiTagObjectVerification = {
payload: string;
reason: string;
signature: string;
verified: boolean;
verified_at: string;
};
type ApiTreeEntry = {
name: string;
path: string;
sha: string;
type: string;
};
type ChartDependency = {
/**Alias usable alias to be used for the chart*/
alias: string;
/**A yaml path that resolves to a boolean, used for enabling/disabling charts (e.g. subchart1.enabled )*/
condition: string;
/**Enabled bool determines if chart should be loaded*/
enabled: boolean;
/**ImportValues holds the mapping of source values to parent key to be imported. Each item can be a
string or pair of child/parent sublist items.*/
"import-values": any[];
/**Name is the name of the dependency.
This must mach the name in the dependency's Chart.yaml.*/
name: string;
/**The URL to the repository.
Appending `index.yaml` to this string should result in a URL that can be
used to fetch the repository index.*/
repository: string;
/**Tags can be used to group charts for enabling/disabling together*/
tags: string[];
/**Version is the version (range) of this chart.
A lock file will always produce a single version, while a dependency
may contain a semantic version range.*/
version: string;
};
type ChartMaintainer = {
/**Email is an optional email address to contact the named maintainer*/
email: string;
/**Name is a user name or organization name*/
name: string;
/**URL is an optional URL to an address for the named maintainer*/
url: string;
};
type ChartMetadata = {
/**Annotations are additional mappings uninterpreted by Helm,
made available for inspection by other applications.*/
annotations: any;
/**The API Version of this chart. Required.*/
apiVersion: string;
/**The version of the application enclosed inside of this chart.*/
appVersion: string;
/**The condition to check to enable chart*/
condition: string;
/**Dependencies are a list of dependencies for a chart.*/
dependencies: ChartDependency[];
/**Whether or not this chart is deprecated*/
deprecated: boolean;
/**A one-sentence description of the chart*/
description: string;
/**The URL to a relevant project page, git repo, or contact person*/
home: string;
/**The URL to an icon file.*/
icon: string;
/**A list of string keywords*/
keywords: string[];
/**KubeVersion is a SemVer constraint specifying the version of Kubernetes required.*/
kubeVersion: string;
/**A list of name and URL/email address combinations for the maintainer(s)*/
maintainers: ChartMaintainer[];
/**The name of the chart. Required.*/
name: string;
/**Source is the URL to the source code of this chart*/
sources: string[];
/**The tags to check to enable chart*/
tags: string;
/**Specifies the chart type: application or library*/
type: string;
/**A SemVer 2 conformant version string of the chart. Required.*/
version: string;
};
type ConstantAccessRole = "Unknown" | "Guest" | "Reporter" | "Developer" | "Master" | "Owner";
type ConstantRepoDisplayModule = {
/**仓库动态*/
activity: boolean;
/**仓库贡献者*/
contributors: boolean;
/**仓库版本*/
release: boolean;
};
type ConstantUserEditable = {
/**可修改账户头像*/
avatar: boolean;
/**可修改主邮箱*/
email: boolean;
/**是否允许注销账户*/
logoff: boolean;
/**可修改昵称*/
nickname: boolean;
/**是否允许同步昵称和头像*/
"sync-data": boolean;
/**可修改账户名*/
username: boolean;
};
type ConstantUserType = 0 | 1 | 2 | 3 | 4;
type ConstantVisibility = "Private" | "Public" | "Secret";
type DtoActivityCreateRepoDetail = {
create_at: string;
/**公仓转私仓或仓库被删除后为 null*/
detail: any;
/**activity 发生时仓库的 path,这时的 path 是可以公开的*/
exposed_repo_path: string;
/**仓库是否封禁*/
freeze: boolean;
/**仓库是否不可访问(公仓转私仓或仓库被删除后不可访问)*/
repo_unaccessible: boolean;
/**仓库可见性*/
visibility_level: any;
};
type DtoActivityDate = {
code_review_count: number;
code_reviews: DtoActivityRepoDetail[];
commit_count: number;
commits: DtoActivityRepoDetail[];
group_count: number;
groups: DtoActivityJoinGroupDetail[];
issues: DtoActivityRepoDetail[];
issues_count: number;
private_score: number;
pull_request_count: number;
pull_requests: DtoActivityRepoDetail[];
repo_count: number;
repos: DtoActivityCreateRepoDetail[];
};
type DtoActivityJoinGroupDetail = {
create_at: string;
/**组织详情,组织被删后为 null*/
detail: any;
/**组织别名,组织被删除后才有值*/
remark: string;
};
type DtoActivityRepoDetail = {
/**公仓转私仓或仓库被删除后为 null*/
detail: any;
/**activity 发生时仓库的 path,这时的 path 是可以公开的*/
exposed_repo_path: string;
/**仓库是否封禁*/
freeze: boolean;
/**仓库是否不可访问(公仓转私仓或仓库被删除后不可访问)*/
repo_unaccessible: boolean;
time: number;
/**仓库可见性*/
visibility_level: any;
};
type DtoAiAutoPrReq = {
/**需求内容*/
body: string;
/**基于该分支编码并提交代码到随机分支,然后将随机分支提 PR 到该分支*/
branch: string;
/**需求来源,默认为 issue,其他来源的需求可写上,会出现在代码提交日志的描述信息里*/
source: string;
/**需求标题*/
title: string;
/**需求来源 URL 地址*/
url: string;
};
type DtoAiAutoPrResult = {
/**构建链接*/
buildLogUrl: string;
/**message*/
message: string;
/**构建号*/
sn: string;
};
type DtoAiChatCompletionsChoice = {
/**结束原因*/
finish_reason: string;
/**索引*/
index: number;
/**消息*/
message: any;
};
type DtoAiChatCompletionsReq = {
/**对话内容*/
messages: DtoMessage[];
/**模型名称*/
model: string;
/**是否流式返回结果,部分模型可能不支持非流式*/
stream: boolean;
};
type DtoAiChatCompletionsResult = {
/**选择*/
choices: DtoAiChatCompletionsChoice[];
/**创建时间*/
created: number;
/**ID*/
id: string;
/**模型*/
model: string;
/**对象*/
object: string;
};
type DtoAssets = {
content_type: string;
ext: any;
name: string;
path: string;
size: number;
};
type DtoBadge = {
/**徽章描述*/
desc: string;
/**徽章分组*/
group: any;
/**徽章链接*/
link: string;
/**徽章名称*/
name: string;
/**徽章类型*/
type: string;
/**徽章URL*/
url: string;
};
type DtoBuildCommonResult = {
/**返回码,0 表示成功,1 表示失败*/
code: number;
/**描述*/
message: string;
};
type DtoBuildLogsResult = {
/**构建数据列表*/
data: DtoLogInfo[];
/**当前仓库是否已经有构建记录,1 表示有构建记录,0 表示没有构建记录*/
init: boolean;
/**当前时间戳*/
timestamp: number;
/**总数*/
total: number;
};
type DtoBuildResult = {
/**构建链接*/
buildLogUrl: string;
/**构建信息*/
message: string;
/**构建号*/
sn: string;
/**构建是否触发成功,不代表构建结果*/
success: boolean;
};
type DtoBuildStageResult = {
/**stage 日志内容,数组格式,一个元素表示一行日志*/
content: string[];
/**stage 耗时,单位:ms*/
duration: number;
/**stage 结束时间*/
endTime: number;
/**stage 错误信息*/
error: string;
/**stage id*/
id: string;
/**stage 名称*/
name: string;
/**stage 开始时间*/
startTime: number;
/**stage 状态: "pending", "start", "success", "error", "cancel", "skipped"*/
status: string;
};
type DtoBuildStatusResult = {
/**解析后的流水线JSON格式配置内容*/
jsonConfig: string;
/**流水线的状态*/
pipelinesStatus: any;
/**流水线原始配置内容*/
rawConfig: string;
/**构建状态*/
status: string;
};
type DtoChartPackageDetail = {
address: string;
desc: string;
last_pusher: DtoLastPusher;
package: string;
pull_count: number;
recent_pull_count: number;
slug: string;
tag_total: number;
tags: DtoChartTag[];
};
type DtoChartTag = {
address: string;
digest: string;
is_deprecated: boolean;
last_pusher: DtoLastPusher;
metadata: ChartMetadata;
name: string;
pull_count: number;
recent_pull_count: number;
size: number;
};
type DtoChartTagDetail = {
address: string;
is_deprecated: boolean;
last_pusher: DtoLastPusher;
metadata: ChartMetadata;
package: string;
pull_count: number;
recent_pull_count: number;
size: number;
slug: string;
tag: string;
};
type DtoCodeIssueSummary = {
/**严重风险问题数量*/
critical_count: number;
/**严重风险问题忽略数量*/
critical_ignore_count: number;
/**是否开启源码信息扫描*/
enable: boolean;
/**高风险问题数量*/
high_count: number;
/**高风险问题忽略数量*/
high_ignore_count: number;
/**忽略的问题数量*/
ignored: number;
/**低风险问题数量*/
low_count: number;
/**低风险问题忽略数量*/
low_ignore_count: number;
/**中风险问题数量*/
medium_count: number;
/**中风险问题忽略数量*/
medium_ignore_count: number;
/**开启中问题数量*/
open: number;
};
type DtoCodeSensitiveSummary = {
/**是否开启代码敏感信息扫描*/
enable: boolean;
/**高风险问题数量*/
high_count: number;
/**高风险问题忽略数量*/
high_ignore_count: number;
/**忽略问题数量*/
ignored: number;
/**低风险问题数量*/
low_count: number;
/**低风险问题忽略数量*/
low_ignore_count: number;
/**中风险问题数量*/
medium_count: number;
/**中风险问题忽略数量*/
medium_ignore_count: number;
/**开启中问题数量*/
open: number;
};
type DtoCodeVulOverview = {
/**忽略的严重风险漏洞的数量*/
critical_vul_ignore_cnt: number;
/**打开的严重风险级别漏洞的数量*/
critical_vul_open_cnt: number;
/**是否开启代码漏洞扫描*/
enable: boolean;
/**忽略的高风险级别漏洞的数量*/
high_vul_ignore_cnt: number;
/**打开的高风险级别漏洞的数量*/
high_vul_open_cnt: number;
/**忽略问题数量*/
ignored: number;
/**忽略的低风险级别漏洞的数量*/
low_vul_ignore_cnt: number;
/**打开的低风险级别漏洞的数量*/
low_vul_open_cnt: number;
/**忽略的中风险级别漏洞的数量*/
medium_vul_ignore_cnt: number;
/**打开的中风险级别漏洞的数量*/
medium_vul_open_cnt: number;
/**开启中问题数量*/
open: number;
};
type DtoCommonRegistryPackageDetail = {
address: string;
desc: string;
last_pusher: DtoLastPusher;
package: string;
pull_count: number;
recent_pull_count: number;
slug: string;
tag_total: number;
tags: DtoCommonRegistryTag[];
};
type DtoCommonRegistryTag = {
desc: string;
digest: string;
last_pusher: DtoLastPusher;
name: string;
pull_count: number;
recent_pull_count: number;
size: number;
status: string;
};
type DtoCommonRegistryTagDetail = {
address: string;
dependencies: DtoDependency[];
desc: string;
files: DtoFile[];
last_pusher: DtoLastPusher;
metadata: DtoMetaData;
package: string;
pull_count: number;
recent_pull_count: number;
size: number;
slug: string;
status: string;
tag: string;
tags: DtoCommonRegistryTag[];
};
type DtoConanMetaData = {
author: string;
/**conan 的 package 列表*/
conan_packages: DtoConanPackage[];
/**conan recipe 的 revision, conan 制品专用字段*/
conan_recipe_revision: string;
conan_reference: string;
home_page: string;
license_url: string;
package_name: string;
package_tag: string;
package_type: string;
readme: string;
repository_url: string;
};
type DtoConanPackage = {
arch: string;
build_type: string;
compiler: any;
options: any;
os: string;
package_id: string;
package_revision: string;
requires: string[];
};
type DtoConanRegistryTagDetail = {
address: string;
dependencies: DtoDependency[];
desc: string;
files: DtoFile[];
last_pusher: DtoLastPusher;
metadata: DtoConanMetaData;
package: string;
pull_count: number;
recent_pull_count: number;
size: number;
slug: string;
status: string;
tag: string;
tags: DtoCommonRegistryTag[];
};
type DtoContainerAnnotation = {
revision: string;
sn: string;
version: string;
};
type DtoContainerImage = {
arch: string;
digest: string;
layers: DtoContainerImageLayer[];
os: string;
size: number;
};
type DtoContainerImageLayer = {
instruction: string;
size: number;
};
type DtoContainerPackageDetail = {
address: string;
desc: string;
last_pusher: DtoLastPusher;
package: string;
pull_count: number;
recent_pull_count: number;
slug: string;
tag_total: number;
tags: DtoContainerTag[];
};
type DtoContainerTag = {
address: string;
annotations: DtoContainerAnnotation;
images: DtoContainerImage[];
last_pusher: DtoLastPusher;
name: string;
pull_count: number;
recent_pull_count: number;
};
type DtoContainerTagDetail = {
address: string;
annotations: DtoContainerAnnotation;
image: DtoContainerImage;
last_pusher: DtoLastPusher;
/**返回的结果是否和提供的架构匹配*/
matches_requested_arch: boolean;
options: DtoContainerImage[];
package: string;
pull_count: number;
recent_pull_count: number;
slug: string;
tag: string;
};
type DtoCreateGroupReq = {
/**BindDomain 根组织绑定的域名*/
bind_domain: string;
description: string;
path: string;
remark: string;
};
type DtoCreateMissionReq = {
description: string;
name: string;
repos: string[];
visibility: "public" | "private";
};
type DtoCreateRepoReq = {
description: string;
license: string;
name: string;
visibility: "public" | "private" | "secret";
};
type DtoDependency = {
artifact: string;
framework_name: string;
name: string;
};
type DtoDockerModelConfig = {
architecture: string;
/**Format the packaging format of the model file(s), currently the only supported value is gguf.*/
format: string;
/**FormatVersion the version of the format*/
format_version: string;
gguf: DtoGguf;
parameters: string;
quantization: string;
size: string;
};
type DtoDockerModelDescriptor = {
created: string;
};
type DtoDockerModelPackageDetail = {
address: string;
desc: string;
last_pusher: DtoLastPusher;
package: string;
pull_count: number;
recent_pull_count: number;
slug: string;
tag_total: number;
tags: DtoDockerModelTag[];
};
type DtoDockerModelTag = {
address: string;
docker_model_config: DtoDockerModelConfig;
docker_model_descriptor: DtoDockerModelDescriptor;
last_pusher: DtoLastPusher;
name: string;
pull_count: number;
recent_pull_count: number;
};
type DtoDockerModelTagDetail = {
address: string;
docker_model_config: DtoDockerModelConfig;
docker_model_descriptor: DtoDockerModelDescriptor;
last_pusher: DtoLastPusher;
package: string;
pull_count: number;
recent_pull_count: number;
slug: string;
tag: string;
};
type DtoDocumentStatistics = {
count: number;
size: number;
};
type DtoEmbeddingModel = {
dimension: number;
name: string;
};
type DtoEmbeddingModels = {
dimension: number;
name: string;
};
type DtoFile = {
name: string;
size: number;
};
type DtoForks = {
created_at: string;
fork_count: number;
freeze: boolean;
nickname: string;
path: string;
user_freeze: boolean;
user_lock: boolean;
username: string;
};
type DtoGguf = any;
type DtoGetBadgeReq = {
/**分支名,例如:main。不传则为默认分支,获取默认分支最新徽章。传了分支名,则获取该分支最新提交记录对应的徽章。*/
branch: string;
};
type DtoGetBadgeResult = {
/**徽章颜色*/
color: string;
/**徽章左侧显示内容*/
label: string;
/**徽章链接*/
link: string;
/**徽章链接列表*/
links: string[];
/**徽章右侧显示内容*/
message: string;
};
type DtoGroupSettingReq = {
/**组织限制指定邮箱认证才能加入*/
email_verification: string;
/**组织保护开关,0 - 关闭,1 - 打开*/
group_protection: number;
/**是否对外隐藏组织成员,0 - 否, 1 - 是*/
hide_members: number;
/**是否对外隐藏子组织,0 - 否, 1 - 是*/
hide_sub_groups: number;
/**是否对外显示私有仓库水印,0 - 否, 1 - 是*/
show_private_repo_watermark: number;
/**SettingValue 组织设置值,多个选项,用逗号拼接。可选值来自 SettingNamesArray 的值,e.g. disable_organization_readme,cloud_native_dev_only*/
values: string;
};
type DtoInheritMembersUser = {
access_level: ConstantAccessRole;
avatar: string;
created_at: string;
email: string;
email_verification: string;
freeze: boolean;
id: string;
inviter: DtoUsers;
join_time: string;
locked: boolean;
nickname: string;
self_member: boolean;
type: ConstantUserType;
username: string;
/**认证类型*/
verified: number;
/**认证过期时间*/
verified_expire_in: string;
};
type DtoIssueConfig = {
/**逗号分隔的标签字符串,如 "bug,feature"*/
labels: string;
/**"open", "closed"*/
state: string;
};
type DtoKnowledgeBaseInfoRes = {
embedding_model: DtoEmbeddingModels;
exclude: string;
id: string;
include: string;
issue_last_sync_time: string;
issue_sync_enabled: boolean;
last_commit_sha: string;
metadata: DtoKnowledgeBaseMetadata;
statistics: DtoDocumentStatistics;
};
type DtoKnowledgeBaseMetadata = {
issue: DtoIssueConfig;
processing: DtoProcessingConfig;
version: string;
};
type DtoLastPusher = {
is_frozen: boolean;
is_lock: boolean;
name: string;
nickname: string;
push_at: string;
};
type DtoListBadgeReq = any;
type DtoListBadgeResult = {
/**徽章列表*/
badges: DtoBadge[];
};
type DtoListForks = {
fork_tree_count: number;
forks: DtoForks[];
};
type DtoListInheritMembers = {
inherit_path: string;
total: number;
users: DtoInheritMembersUser[];
};
type DtoLogInfo = {
/**构建日志 url*/
buildLogUrl: string;
/**提交日志 title*/
commitTitle: string;
/**构建开始时间*/
createTime: string;
/**构建耗时,单位:ms*/
duration: number;
/**事件名*/
event: string;
/**事件 url*/
eventUrl: string;
/**构建用户是否被冻结*/
freeze: boolean;
/**组织名*/
groupName: string;
/**流水线标签*/
labels: string;
/**构建用户昵称*/
nickName: string;
/**失败的子流水线个数*/
pipelineFailCount: number;
/**成功的子流水线个数*/
pipelineSuccessCount: number;
/**子流水线个数*/
pipelineTotalCount: number;
/**commitid*/
sha: string;
/**仓库路径*/
slug: string;
/**构建号*/
sn: string;
/**源分支名*/
sourceRef: string;
/**源仓库路径*/
sourceSlug: string;
/**构建状态*/
status: string;
/**目标分支名*/
targetRef: string;
/**构建 title*/
title: string;
/**用户名*/
userName: string;
};
type DtoMemberAccessLevel = {
access_level: ConstantAccessRole;
path: string;
};
type DtoMemberAccessLevelInSlugUnion = {
access_level: ConstantAccessRole;
inherit: boolean;
read_privilege: boolean;
write_privilege: boolean;
};
type DtoMessage = {
/**内容*/
content: string;
/**角色,可选值:user、assistant*/
role: string;
};
type DtoMetaData = {
author: string;
home_page: string;
license_url: string;
package_name: string;
package_tag: string;
package_type: string;
readme: string;
repository_url: string;
};
type DtoMissionPostViewReq = {
/**视图唯一标识列表,按此顺序排序*/
ids: string[];
};
type DtoMissionView = {
id: string;
name: string;
type: DtoMissionViewType;
};
type DtoMissionViewConfig = {
/**字段配置*/
fields: DtoMissionViewFieldConfig[];
/**分组信息*/
group: any;
/**视图唯一标识*/
id: string;
/**筛选条件*/
selectors: DtoMissionViewSelector[];
/**排序条件*/
sorts: DtoMissionViewSort[];
/**视图类型*/
type: any;
};
type DtoMissionViewFieldConfig = {
field: string;
width: number;
};
type DtoMissionViewSelector = {
field: string;
operator: DtoOperatorType;
value: string[];
};
type DtoMissionViewSort = {
field: string;
order: DtoMissionViewSortOrder;
};
type DtoMissionViewSortOrder = "asc" | "desc";
type DtoMissionViewType = "table" | "board" | "gantt";
type DtoMissions4User = {
access: any;
created_at: string;
description: string;
freeze: boolean;
id: string;
name: string;
path: string;
pinned: boolean;
pinned_time: string;
star_time: string;
stared: boolean;
updated_at: string;
visibility_level: ConstantVisibility;
};
type DtoOperatorType = "equal" | "equals" | "not_equals" | "contains" | "contains_all" | "not_contains" | "empty" | "not_empty" | "before" | "after" | "time_selector";
type DtoOrganizationAccess = {
/**AccessRole 用户在当前资源的最大权限*/
access_role: any;
all_member_count: number;
/**下面所有层级子组织*/
all_sub_group_count: number;
/**下面所有层级子任务*/
all_sub_mission_count: number;
all_sub_registry_count: number;
/**下面所有层级子仓库*/
all_sub_repo_count: number;
created_at: string;
description: string;
domain: string;
email: string;
follow_count: number;
freeze: boolean;
has_sub_group: boolean;
id: string;
member_count: number;
name: string;
path: string;
pinned: boolean;
pinned_time: string;
readme_repo_path: string;
remark: string;
site: string;
/**下一级子组织数量*/
sub_group_count: number;
sub_mission_count: number;
sub_registry_count: number;
/**下一级子仓库*/
sub_repo_count: number;
updated_at: string;
wechat_mp: string;
};
type DtoOrganizationSettingWithParent = {
/**上级group设置了hide_members为1,则下级都不能显示*/
can_show_members: boolean;
/**上级group设置了hide_sub_groups为1,则下级都不能显示*/
can_show_sub_groups: boolean;
can_show_watermark: boolean;
email_verification: string;
group_protection: number;
/**是否对外隐藏组织成员,0 - 否, 1 - 是*/
hide_members: number;
/**是否对外隐藏子组织,0 - 否, 1 - 是*/
hide_sub_groups: number;
root_email_verification: string;
root_group_protection: boolean;
root_values: OrganizationSettingValue;
show_private_repo_watermark: number;
values: OrganizationSettingValue;
};
type DtoOrganizationUnion = {
all_member_count: number;
/**下面所有层级子组织*/
all_sub_group_count: number;
/**下面所有层级子任务*/
all_sub_mission_count: number;
all_sub_registry_count: number;
/**下面所有层级子仓库*/
all_sub_repo_count: number;
created_at: string;
description: string;
domain: string;
email: string;
follow_count: number;
freeze: boolean;
has_sub_group: boolean;
id: string;
member_count: number;
name: string;
path: string;
pinned: boolean;
pinned_time: string;
readme_repo_path: string;
remark: string;
site: string;
/**下一级子组织数量*/
sub_group_count: number;
sub_mission_count: number;
sub_registry_count: number;
/**下一级子仓库*/
sub_repo_count: number;
updated_at: string;
wechat_mp: string;
};
type DtoOutsideCollaboratorInRepo = {
access_level: ConstantAccessRole;
avatar: string;
created_at: string;
email: string;
freeze: boolean;
id: string;
join_time: string;
locked: boolean;
nickname: string;
type: ConstantUserType;
username: string;
/**认证类型*/
verified: number;
/**认证过期时间*/
verified_expire_in: string;
};
type DtoPackage = {
count: number;
description: string;
labels: string[];
last_artifact_name: string;
last_pusher: DtoLastPusher;
name: string;
package: string;
package_type: DtoPackageType;
pull_count: number;
recent_pull_count: number;
};
type DtoPackageDetail = {
cargo: DtoCommonRegistryPackageDetail;
composer: DtoCommonRegistryPackageDetail;
conan: DtoCommonRegistryPackageDetail;
docker: DtoContainerPackageDetail;
docker_model: DtoDockerModelPackageDetail;
helm: DtoChartPackageDetail;
maven: DtoCommonRegistryPackageDetail;
npm: DtoCommonRegistryPackageDetail;
nuget: DtoCommonRegistryPackageDetail;
ohpm: DtoCommonRegistryPackageDetail;
pypi: DtoCommonRegistryPackageDetail;
};
type DtoPackageType = "all" | "docker" | "helm" | "docker-model" | "npm" | "maven" | "ohpm" | "pypi" | "composer" | "nuget" | "conan" | "cargo";
type DtoProcessingConfig = {
chunk_overlap: number;
chunk_size: number;
text_separator: string;
};
type DtoPyPiMetaData = {
author: string;
home_page: string;
license_url: string;
minimum_stability: string;
package_name: string;
package_tag: string;
package_type: string;
readme: string;
repository_url: string;
};
type DtoPyPiRegistryTagDetail = {
address: string;
dependencies: DtoDependency[];
desc: string;
files: DtoFile[];
last_pusher: DtoLastPusher;
metadata: DtoPyPiMetaData;
package: string;
pull_count: number;
recent_pull_count: number;
size: number;
slug: string;
status: string;
tag: string;
tags: DtoCommonRegistryTag[];
};
type DtoQueryKnowledgeBaseReq = {
/**元数据过滤条件*/
metadata_filtering_conditions: any;
/**查询语句*/
query: string;
/**分数阈值*/
score_threshold: number;
/**返回结果的数量*/
top_k: number;
};
type DtoQueryKnowledgeBaseRes = {
chunk: string;
metadata: any;
score: number;
};
type DtoRegistry4User = {
access: any;
artifact_policy: "all" | "snapshot" | "release";
created_at: string;
description: string;
freeze: boolean;
id: string;
kind: string;
last_push_time: string;
last_push_user: DtoUsers;
name: string;
overwrite_policy: "forbid" | "allow";
path: string;
pinned: boolean;
pinned_time: string;
pkg_count: number;
star_time: string;
stared: boolean;
updated_at: string;
used_size: number;
visibility_level: ConstantVisibility;
};
type DtoRepoPatch = {
description: string;
license: string;
site: string;
topics: string[];
};
type DtoRepoSecurityOverview = {
code_issue: DtoCodeIssueSummary;
code_sensitive: DtoCodeSensitiveSummary;
code_vulnerability: DtoCodeVulOverview;
risk_cnt: DtoRepoSecurityRiskCnt;
};
type DtoRepoSecurityRiskCnt = {
/**是否开启源码扫描*/
code_issue_enable: boolean;
/**源码扫描风险数量 (严重+高风险)*/
code_issue_risk_cnt: number;
/**是否开启代码敏感信息扫描*/
code_sensitive_enable: boolean;
/**敏感信息风险数量(高风险)*/
code_sensitive_risk_cnt: number;
/**是否开启代码漏洞扫描*/
code_vulnerability_enable: boolean;
/**代码漏洞风险数量(严重+高风险)*/
code_vulnerability_risk_cnt: number;
/**是否开启安全模块*/
enable: boolean;
/**总计数*/
total: number;
};
type DtoRepoStarUsers = {
my_follow_count: number;
total: number;
users: DtoStarUser[];
};
type DtoRepos4User = {
access: any;
created_at: string;
description: string;
display_module: ConstantRepoDisplayModule;
flags: FlagsRepo;
fork_count: number;
/**预留*/
forked_from_repo: any;
freeze: boolean;
id: string;
/**仓库程序语言,预留*/
language: string;
/**仓库语言*/
languages: any;
/**最新代码更新人姓名*/
last_update_nickname: string;
/**最新代码更新人账户名*/
last_update_username: string;
/**最新代码更新时间*/
last_updated_at: any;
license: string;
mark_count: number;
name: string;
/**开启的issue数*/
open_issue_count: number;
/**开启的pull request数*/
open_pull_request_count: number;
/**完整仓库路径*/
path: string;
pinned: boolean;
pinned_time: string;
/**第二语言*/
second_languages: any;
site: string;
star_count: number;
star_time: string;
stared: boolean;
status: any;
tags: {
name: string;
}[];
topics: string;
updated_at: string;
visibility_level: ConstantVisibility;
web_url: string;
};
type DtoRepos4UserBase = {
created_at: string;
description: string;
display_module: ConstantRepoDisplayModule;
flags: FlagsRepo;
fork_count: number;
/**预留*/
forked_from_repo: any;
freeze: boolean;
id: string;
/**仓库程序语言,预留*/
language: string;
/**仓库语言*/
languages: any;
/**最新代码更新人姓名*/
last_update_nickname: string;
/**最新代码更新人账户名*/
last_update_username: string;
/**最新代码更新时间*/
last_updated_at: any;
license: string;
mark_count: number;
name: string;
/**开启的issue数*/
open_issue_count: number;
/**开启的pull request数*/
open_pull_request_count: number;
/**完整仓库路径*/
path: string;
/**第二语言*/
second_languages: any;
site: string;
star_count: number;
status: any;
tags: {
name: string;
}[];
topics: string;
updated_at: string;
visibility_level: ConstantVisibility;
web_url: string;
};
type DtoStarUser = {
avatar: string;
created_at: string;
email: string;
freeze: boolean;
id: string;
is_follow: boolean;
locked: boolean;
nickname: string;
stared_at: string;
type: ConstantUserType;
username: string;
/**认证类型*/
verified: number;
/**认证过期时间*/
verified_expire_in: string;
};
type DtoStartBuildReq = {
/**触发分支,默认为主分支*/
branch: string;
/**指定配置文件内容,yaml 格式*/
config: string;
/**环境变量,对象格式*/
env: any;
/**事件名,必须是 api_trigger 或以 api_trigger_ 开头,默认为 `api_trigger`*/
event: string;
/**commit id ,优先级比 tag 高,默认为分支最新提交记录*/
sha: string;
/**是否等待构建正式触发,为false时会立刻返回 sn 和 buildLogUrl*/
sync: string;
/**触发 tag,优先级比 branch 高*/
tag: string;
};
type DtoStartWorkspaceReq = {
/**分支名或 tag 名,例如:main 或 v1.0.0。*/
branch: string;
/**Git ref,例如,refs/heads/main 或 refs/tags/v1.0.0。不传 ref 时默认基于分支启动*/
ref: string;
};
type DtoStartWorkspaceResult = {
/**仅新创建开发环境时返回,表示创建开发环境的流水线日志地址*/
buildLogUrl: string;
/**仅新创建开发环境时返回,表示创建开发环境的提示信息*/
message: string;
/**仅新创建开发环境时返回,表示创建开发环境的流水线 sn*/
sn: string;
/**如果存在开发环境,则返回 WebIDE 访问 url;如果不存在开发环境,则返回启动云原生开发的 loading 页面 url 地址*/
url: string;
};
type DtoTag = {
cargo: DtoCommonRegistryTag[];
composer: DtoCommonRegistryTag[];
conan: DtoCommonRegistryTag[];
docker: DtoContainerTag[];
docker_model: DtoDockerModelTag[];
helm: DtoChartTag[];
maven: DtoCommonRegistryTag[];
npm: DtoCommonRegistryTag[];
nuget: DtoCommonRegistryTag[];
ohpm: DtoCommonRegistryTag[];
package: string;
pypi: DtoCommonRegistryTag[];
};
type DtoTagDetail = {
cargo: DtoCommonRegistryTagDetail;
composer: DtoCommonRegistryTagDetail;
conan: DtoConanRegistryTagDetail;
docker: DtoContainerTagDetail;
docker_model: DtoDockerModelTagDetail;
helm: DtoChartTagDetail;
maven: DtoCommonRegistryTagDetail;
npm: DtoCommonRegistryTagDetail;
nuget: DtoCommonRegistryTagDetail;
ohpm: DtoCommonRegistryTagDetail;
pypi: DtoPyPiRegistryTagDetail;
};
type DtoTransferSlugReq = {
source: string;
target: string;
};
type DtoUpdateGroupReq = {
description: string;
domain: string;
email: string;
readme_repo_id: number;
readme_repo_path: string;
remark: string;
site: string;
wechat_mp: string;
};
type DtoUpdateMembersRequest = {
access_level: string;
is_outside_collaborator: boolean;
};
type DtoUpdateUserInfoPayload = {
address: string;
bio: string;
company: string;
location: string;
name: string;
nickname: string;
readme_repo_id: number;
readme_repo_path: string;
site: string;
wechat_mp: string;
wechat_mp_qrcode: string;
};
type DtoUploadAssetsResponse = {
assets: DtoAssets;
form: any;
/**后续调用 confirm 接口用的*/
token: string;
upload_url: string;
};
type DtoUploadBadgeReq = {
/**徽章 key。目前允许上传的 key 包括:security/tca*/
key: string;
/**是否上传 latest 徽章。默认为 false:不上传 latest,仅上传 commitid 对应的徽章;true:上传 latest 和 commitid 对应的徽章*/
latest: boolean;
/**点击徽章右侧的跳转链接*/
link: string;
/**徽章右侧显示内容*/
message: string;
/**commit id*/
sha: string;
/**徽章数值,不传默认用 message 代替*/
value: number;
};
type DtoUploadBadgeResult = {
/**latest 对应的徽章 url 地址。如果没有传 latest: true,则该字段为空字符串*/
latest_url: string;
/**commitid 对应的徽章 url 地址*/
url: string;
};
type DtoUploadRequestParams = {
ext: any;
name: string;
size: number;
};
type DtoUserFollowResult = {
freeze: boolean;
/**查询人是否follow了此用户*/
is_following: boolean;
locked: boolean;
nickname: string;
username: string;
};
type DtoUsers = {
avatar: string;
created_at: string;
email: string;
freeze: boolean;
id: string;
locked: boolean;
nickname: string;
type: ConstantUserType;
username: string;
/**认证类型*/
verified: number;
/**认证过期时间*/
verified_expire_in: string;
};
type DtoUsersResult = {
address: string;
/**用户赞赏码状态,0-无赞赏码,1-有*/
appreciate_status: number;
avatar: string;
bio: string;
company: string;
created_at: string;
email: string;
follow_count: number;
follow_mission_count: number;
follow_repo_count: number;
follower_count: number;
freeze: boolean;
gender: number;
group_count: number;
id: string;
/**查询人是否follow了此用户*/
is_following: boolean;
location: string;
locked: boolean;
mission_count: number;
nickname: string;
public_mission_count: number;
public_registry_count: number;
public_repo_count: number;
readme_repo_path: string;
registry_count: number;
repo_count: number;
reward_amount: number;
reward_count: number;
site: string;
stars_count: number;
type: ConstantUserType;
username: string;
/**认证类型*/
verified: number;
/**认证过期时间*/
verified_expire_in: string;
wechat_mp: string;
wechat_mp_qrcode: string;
};
type DtoUsersResultForSelf = {
address: string;
appearance: string;
/**用户赞赏码状态,0-无赞赏码,1-有*/
appreciate_status: number;
avatar: string;
bio: string;
company: string;
created_at: string;
editable: ConstantUserEditable;
email: string;
follow_count: number;
follow_mission_count: number;
follow_repo_count: number;
follower_count: number;
freeze: boolean;
gender: number;
group_count: number;
id: string;
language: string;
last_login_at: string;
last_login_ip: string;
location: string;
locked: boolean;
mission_count: number;
next_updated_name_at: string;
nickname: string;
public_mission_count: number;
public_registry_count: number;
public_repo_count: number;
readme_repo_path: string;
registry_count: number;
repo_count: number;
reward_amount: number;
reward_count: number;
site: string;
stars_count: number;
type: ConstantUserType;
updated_name_at: string;
updated_nick_at: string;
username: string;
/**认证类型*/
verified: number;
/**认证过期时间*/
verified_expire_in: string;
wechat_mp: string;
wechat_mp_qrcode: string;
};
type DtoUsersWithAccessLevelInSlug = {
access_level: ConstantAccessRole;
avatar: string;
created_at: string;
email: string;
email_verification: string;
freeze: boolean;
id: string;
inviter: DtoUsers;
join_time: string;
locked: boolean;
nickname: string;
type: ConstantUserType;
username: string;
/**认证类型*/
verified: number;
/**认证过期时间*/
verified_expire_in: string;
};
type DtoWorkspaceDeleteReq = {
/**表示要删除的开发环境流水线 id,sn 和 pipelineId 二选一,优先使用 pipelineId*/
pipelineId: string;
/**表示要删除的开发环境流水线构建号,sn 和 pipelineId 二选一,优先使用 pipelineId*/
sn: string;
};
type DtoWorkspaceDeleteResult = {
/**返回码,0 表示成功,1 表示失败*/
code: number;
/**描述*/
message: string;
};
type DtoWorkspaceDetailResult = {
/**CodeBuddy 国际版客户端 remote-ssh 访问 schema 地址*/
codebuddy: string;
/**CodeBuddy 国内版客户端 remote-ssh 访问 schema 地址*/
codebuddycn: string;
/**Cursor 客户端 remote-ssh 访问 schema 地址*/
cursor: string;
/**jetbrains 系列 ide 的 jetbrains gateway 访问 schema 地址,环境内有安装 JetBrains 系列 ide 才会有*/
jetbrains: any;
/**选择入口页面 url*/
jumpUrl: string;
/**remote-ssh 连接地址*/
remoteSsh: string;
/**ssh 登录命令*/
ssh: string;
/**VSCode 客户端 remote-ssh 访问 schema 地址*/
vscode: string;
/**Vscode 预览版客户端 remote-ssh 访问 schema 地址*/
"vscode-insiders": string;
/**WebIDE 访问 url*/
webide: string;
};
type DtoWorkspaceInfo = {
/**分支名,例如:main*/
branch: string;
/**备份的 commit 数*/
commit_count: number;
/**开发环境创建时间,例如:2024-12-02T03:20:22.000Z*/
create_time: string;
/**开发环境持续时间,单位:ms(非实时更新)*/
duration: number;
/**备份的文件数*/
file_count: number;
/**备份的文件列表,仅前五个备份文件相对路径*/
file_list: string;
/**环境销毁时远程最新的 commit short hash*/
latest_sha: string;
/**创建环境的子流水线 id*/
pipeline_id: string;
/**备份的 stash 数*/
remote_stash_count: number;
/**仓库地址*/
repo_url: string;
/**恢复备份代码的流水线 id,如果有值表示备份代码已被恢复(重建环境时会恢复备份代码)*/
restore_id: string;
/**仓库路径,例如:groupname/reponame*/
slug: string;
/**创建开发环境的流水线 sn*/
sn: string;
/**开发环境是否支持 ssh 链接*/
ssh: boolean;
/**工作区状态,running: 开发环境已启动,closed:开发环境已关闭*/
status: string;
/**开发环境默认工作区路径*/
workspace: string;
};
type DtoWorkspaceListResult = {
/**是否有更多数据*/
hasMore: boolean;
/**云原生开发环境列表*/
list: DtoWorkspaceInfo[];
/**分页信息*/
pageInfo: any;
/**总数*/
total: number;
};
type DtoWorkspaceStopReq = {
/**表示要停止的开发环境的流水线 id,sn 和 pipelineId 二选一,优先使用 pipelineId*/
pipelineId: string;
/**表示要停止的开发环境流水线构建号,sn 和 pipelineId 二选一,优先使用 pipelineId*/
sn: string;
};
type DtoWorkspaceStopResult = {
/**表示停止的开发环境流水线日志地址*/
buildLogUrl: string;
/**表示操作结果提示信息*/
message: string;
/**表示停止的开发环境流水线构建号*/
sn: string;
};
type FlagsRepo = "Unknown" | "KnowledgeBase" | "HideRank";
type GitWoaComCnbMonorepoGitInternalAppGitServiceBffApiCommitStatus = {
context: string;
created_at: string;
description: string;
state: string;
target_url: string;
updated_at: string;
};
type GitWoaComCnbMonorepoGitInternalAppGitServiceBffApiUserInfo = {
/**用户邮箱*/
email: string;
/**是否冻结*/
freeze: boolean;
/**昵称*/
nickname: string;
/**用户名*/
username: string;
};
type GitWoaComCnbMonorepoGitInternalAppVcsServiceBffApiCommitStatus = {
context: string;
created_at: string;
description: string;
state: string;
target_url: string;
updated_at: string;
};
type GitWoaComCnbMonorepoGitInternalAppVcsServiceBffApiUserInfo = {
nickname: string;
username: string;
};
type OpenapiCreateBranchForm = {
name: string;
start_point: string;
};
type OpenapiHeadRef = {
name: string;
protected: boolean;
};
type OpenapiIssuePropertiesForm = {
properties: OpenapiPropertyForm[];
};
type OpenapiPatchReleaseForm = {
body: string;
draft: boolean;
make_latest: string;
name: string;
prerelease: boolean;
};
type OpenapiPostCommitAssetUploadUrlForm = {
asset_name: string;
/**附件大小,单位为字节。 Attachment size, in bytes.*/
size: number;
};
type OpenapiPostReleaseAssetUploadUrlForm = {
asset_name: string;
overwrite: boolean;
/**附件大小,单位为字节。 Attachment size, in bytes.*/
size: number;
};
type OpenapiPostReleaseForm = {
body: string;
draft: boolean;
make_latest: string;
name: string;
prerelease: boolean;
tag_name: string;
target_commitish: string;
};
type OpenapiPropertyForm = {
key: string;
value: string;
};
type OpenapiPutCommitAnnotation = {
key: string;
value: string;
};
type OpenapiPutCommitAnnotationsForm = {
annotations: OpenapiPutCommitAnnotation[];
};
type OpenapiPutTagAnnotation = {
key: string;
value: string;
};
type OpenapiPutTagAnnotationsForm = {
annotations: OpenapiPutTagAnnotation[];
};
type OrganizationSettingValue = "disable_organization_readme" | "cloud_native_dev_only" | "user_root_group_branch_protection_only" | "forbid_redefine_branch_protection" | "enable_tapd_access" | "enable_show_private_mission_water_mark" | "prevent_organization_creation" | "prevent_repository_creation" | "prevent_mission_creation" | "prevent_registry_creation" | "disable_invitation" | "prevent_visibility_modification" | "prevent_resource_deletion" | "prevent_repository_archival" | "prevent_organization_transfer" | "prevent_repository_transfer" | "prevent_mission_transfer" | "prevent_registry_transfer" | "use_group_git_quota" | "use_group_git_object_limit" | "enable_add_member" | "use_root_group_git_push_limit";
type WebCommitAnnotation = {
key: string;
meta: any;
value: string;
};
type WebCommitAnnotationInBatch = {
annotations: WebCommitAnnotation[];
commit_hash: string;
};
type WebContributorTrend = {
/**贡献者信息*/
author: any;
/**贡献者的总提交数*/
commit_count: number;
/**贡献者以周为单位的提交趋势数据*/
weeks: WebWeek[];
};
type WebGetCommitAnnot