UNPKG

node-cnb

Version:

node sdk for cnb open api

2,207 lines (2,037 loc) 139 kB
//#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; required_approved_review_count: number; required_approved_review_ratio: number; required_commit_signatures: boolean; 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; name: string; patch: string; path: 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 ApiCommitStatus = { context: string; created_at: string; description: string; state: string; target_url: string; updated_at: string; }; 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; name: string; path: string; sha: string; size: number; type: string; }; type ApiDeleteIssueAssigneesForm = { assignees: string[]; }; type ApiDeletePullAssigneesForm = { assignees: 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: `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 ApiPatchPullRequest = { body: string; /**State of this Pull Request. Either `open` or `closed`.*/ state: string; title: string; }; type ApiPipelineSettings = { auto_trigger: boolean; 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: `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; body: string; head: ApiPullRef; merged_by: GitWoaComCnbMonorepoGitInternalAppGitServiceBffApiUserInfo; number: string; state: string; title: string; }; type ApiPullCommentCreationForm = { body: string; }; type ApiPullCreationForm = { base: string; body: string; head: string; head_repo: string; title: 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; 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; updated_at: string; }; type ApiPullRequestInfo = { assignees: GitWoaComCnbMonorepoGitInternalAppVcsServiceBffApiUserInfo[]; author: GitWoaComCnbMonorepoGitInternalAppVcsServiceBffApiUserInfo; base: ApiPullRefInfo; blocked_on: string; created_at: string; head: ApiPullRefInfo; 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; merge_commit_message_style: string; squash_commit_message_style: 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 ApiPushLimitSettings = { allow_single_push_number: number; check_single_push_number: boolean; only_master_can_push_tag: boolean; push_commit_must_be: string; }; type ApiPutIssueLabelsForm = { labels: string[]; }; type ApiPutPullLabelsForm = { labels: string[]; }; type ApiRelease = { assets: ApiReleaseAsset[]; author: GitWoaComCnbMonorepoGitInternalAppGitServiceBffApiUserInfo; body: string; created_at: string; draft: boolean; id: string; is_latest: boolean; name: string; prerelease: boolean; published_at: string; tag_commitish: string; tag_name: string; updated_at: string; }; type ApiReleaseAsset = { content_type: string; created_at: string; id: string; name: string; path: string; size: number; updated_at: string; uploader: GitWoaComCnbMonorepoGitInternalAppGitServiceBffApiUserInfo; }; 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 = 0 | 10 | 20 | 30 | 40 | 50; type ConstantRepoDisplayModule = 1 | 2 | 4; type ConstantUserEditable = 1 | 2 | 4 | 8 | 16 | 32; type ConstantUserType = 0 | 1 | 2 | 3; type ConstantVisibility = 0 | 10 | 20; 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 DtoAssets = { content_type: string; name: string; path: string; size: number; }; type DtoBuildLogsResult = { /**构建数据列表*/ data: DtoLogInfo[]; /**当前仓库是否已经有构建记录,1 表示有构建记录,0 表示没有构建记录*/ init: boolean; /**当前时间戳*/ timestamp: number; /**总数*/ total: number; }; type DtoBuildResult = { /**构建链接*/ buildLogUrl: string; /**message*/ message: string; /**构建号*/ sn: string; }; type DtoBuildStatusResult = { /**流水线的状态*/ pipelinesStatus: any; /**构建状态*/ 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 DtoCodeRepoQuotaRsp = { docker: DtoQuotaRsp; helm: DtoQuotaRsp; }; 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 DtoContainerAnnotation = { revision: 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; 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 DtoCreateRepoReq = { description: string; license: string; name: string; visibility: "public" | "private" | "secret"; }; type DtoDependency = { artifact: string; framework_name: string; name: string; }; type DtoFile = { name: string; size: number; }; type DtoForkReq = { branch: string; description: string; group: string; name: string; }; type DtoForks = { created_at: string; fork_count: number; freeze: boolean; nickname: string; path: string; user_freeze: boolean; user_lock: boolean; username: 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 DtoLastPusher = { is_frozen: boolean; is_lock: boolean; name: string; nickname: string; push_at: string; }; 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 DtoMetaData = { 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 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: number; member_count: number; name: string; path: string; pinned: boolean; pinned_time: 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: number; member_count: number; name: string; 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 = { composer: DtoCommonRegistryPackageDetail; docker: DtoContainerPackageDetail; helm: DtoChartPackageDetail; maven: DtoCommonRegistryPackageDetail; npm: DtoCommonRegistryPackageDetail; nuget: DtoCommonRegistryPackageDetail; ohpm: DtoCommonRegistryPackageDetail; pypi: DtoCommonRegistryPackageDetail; }; type DtoPackageType = "all" | "docker" | "helm" | "npm" | "maven" | "ohpm" | "pypi" | "composer" | "nuget"; type DtoQuotaRsp = { /**The hard limits of the quota,example: { "hard": { "storage": -1}}*/ hard: any; /**The repository name of the quota*/ repository_name: string; /**The cnb default quota value*/ storage_per_project: string; /**The used limits of the quota,example: { "used": { "storage": 0}}*/ used: any; }; type DtoRegistryLevelQuotaRsp = { code_repo: DtoCodeRepoQuotaRsp; common_registry: DtoQuotaRsp; }; type DtoRepoPatch = { description: string; license: string; site: string; topics: string[]; }; 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: number; /**仓库程序语言,预留*/ 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: number; /**仓库程序语言,预留*/ 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 DtoTag = { composer: DtoCommonRegistryTag[]; docker: DtoContainerTag[]; helm: DtoChartTag[]; maven: DtoCommonRegistryTag[]; npm: DtoCommonRegistryTag[]; nuget: DtoCommonRegistryTag[]; ohpm: DtoCommonRegistryTag[]; package: string; pypi: DtoCommonRegistryTag[]; }; type DtoTagDetail = { composer: DtoCommonRegistryTagDetail; docker: DtoContainerTagDetail; helm: DtoChartTagDetail; maven: DtoCommonRegistryTagDetail; npm: DtoCommonRegistryTagDetail; nuget: DtoCommonRegistryTagDetail; ohpm: DtoCommonRegistryTagDetail; pypi: DtoCommonRegistryTagDetail; }; type DtoTransferSlugReq = { source: string; target: string; }; type DtoUpdateGroupAvatarReq = { /**新头像 url*/ url: string; }; type DtoUpdateGroupReq = { description: string; domain: string; email: string; remark: string; site: string; wechat_mp: string; }; type DtoUpdateMembersRequest = { access_level: string; is_outside_collaborator: boolean; }; type DtoUploadAssetsResponse = { assets: DtoAssets; form: any; /**后续调用 confirm 接口用的*/ token: string; upload_url: string; }; type DtoUploadRequestParams = { 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; 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; /**用户赞赏码状态,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; 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*/ pipelineId: string; }; type DtoWorkspaceDeleteResult = { /**返回码,0 表示成功,1 表示失败*/ code: number; /**描述*/ message: string; }; type DtoWorkspaceDetailResult = { /**Cursor 客户端 remote-ssh 访问 schema 地址*/ cursor: string; /**VSCode 客户端 remote-ssh 访问 schema 地址*/ vscode: 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 = { /**开发环境状态,running: 开发环境已启动,closed:开发环境已关闭*/ hasMore: boolean; /**查询开始时间,格式:YYYY-MM-DD HH:mm:ssZZ,例如:2024-12-01 00:00:00+0800*/ list: DtoWorkspaceInfo[]; /**查询结束时间,格式:YYYY-MM-DD HH:mm:ssZZ,例如:2024-12-01 00:00:00+0800*/ pageInfo: any; /**分支名,例如:main*/ total: number; }; type FlagsRepo = 0 | 2; type GitWoaComCnbMonorepoGitInternalAppGitServiceBffApiUserInfo = { freeze: boolean; nickname: string; username: string; }; type GitWoaComCnbMonorepoGitInternalAppGitServiceBffWebUserInfo = { freeze: boolean; nickname: string; username: string; }; type GitWoaComCnbMonorepoGitInternalAppVcsServiceBffApiUserInfo = { nickname: string; username: string; }; type HttpUpdateUserInfoPayload = { address: string; bio: string; company: string; location: string; name: string; nickname: string; site: string; wechat_mp: string; wechat_mp_qrcode: string; }; type OpenapiCreateBranchForm = { name: string; start_point: string; }; type OpenapiHeadRef = { name: string; protected: boolean; }; 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 OpenapiPutCommitAnnotation = { key: string; value: string; }; type OpenapiPutCommitAnnotationsForm = { annotations: OpenapiPutCommitAnnotation[]; }; type OpenapiPutTagAnnotation = { key: string; value: string; }; type OpenapiPutTagAnnotationsForm = { annotations: OpenapiPutTagAnnotation[]; }; type OrganizationSettingValue = 1 | 2 | 4 | 8 | 16 | 32 | 64 | 128 | 256 | 512 | 1024 | 2048 | 4096 | 8192 | 16384 | 32768 | 65536 | 131072 | 262144 | 524288; type WebCommitAnnotation = { key: string; meta: any; value: string; }; type WebCommitAnnotationInBatch = { annotations: WebCommitAnnotation[]; commit_hash: string; }; type WebCommitStatus = { context: string; created_at: string; description: string; state: string; target_url: string; updated_at: string; }; type WebCommitStatuses = { sha: string; state: string; statuses: WebCommitStatus[]; }; type WebContributorTrend = { /**贡献者信息*/ author: any; /**贡献者的总提交数*/ commit_count: number; /**贡献者以周为单位的提交趋势数据*/ weeks: WebWeek[]; }; type WebDeferredCommit = { oid: string; signature_information: WebSignatureInformation; status_check_statuses: WebCommitStatuses; /**one of `verified`, `unverified`, `unsigned`*/ verified_status: string; }; type WebGetCommitAnnotationsInBatchForm = { commit_hashes: string[]; keys: string[]; }; type WebMeta = { gen_branch: string; gen_hash: string; updated_at: string; }; type WebPipelineSettings = { auto_trigger: boolean; forked_repo_auto_trigger: boolean; }; type WebRepoContribTrend = { meta: WebMeta; repo_data: WebWeek[]; user_total: number; users_data: WebContributorTrend[]; week_total: number; /**是否统计增删的行数, 默认总提交超过 10000 的仓库不统计*/ with_line_counts: boolean; }; type WebSignatureInformation = { has_signature: boolean; key_expired: boolean; key_id: string; signature_type: string; signature_verification_reason: string; signed_by_cnb: boolean; signer: GitWoaComCnbMonorepoGitInternalAppGitServiceBffWebUserInfo; verified: boolean; verified_at: string; }; type WebTagAnnotation = { key: string; meta: any; value: string; }; type WebWeek = { /**每周增加的行数*/ a: number; /**每周的提交数量*/ c: number; /**每周删除的行数*/ d: number; /**周的时间戳*/ w: number; }; type WebapiRevertPullRequestForm = { create_pr: boolean; target_branch: string; }; //#endregion //#region src/client.d.ts type Organizations_CreateOrganization = (params: { request: DtoCreateGroupReq; }) => Promise<any>; type Users_GetUserInfo = () => Promise<DtoUsersResultForSelf>; type Users_UpdateUserInfo = (params: { request: HttpUpdateUserInfoPayload; }) => Promise<any>; type Users_AutoCompleteSource = (params?: { source_type?: "Group" | "Repo"; page?: number; page_size?: number; search?: string; access?: "Reporter" | "Developer" | "Master" | "Owner"; }) => Promise<string[]>; type Organizations_ListTopGroups = (params?: { page?: number; page_size?: number; search?: string; role?: "Guest" | "Reporter" | "Developer" | "Master" | "Owner"; }) => Promise<DtoOrganizationAccess[]>; type Organizations_ListGroups = (params: { group: string; page?: number; page_size?: number; access?: number; }) => Promise<DtoOrganizationAccess[]>; type Repositories_GetRepos = (params?: { page?: number; page_size?: number; search?: string; filter_type?: "private" | "public" | "encrypted"; role?: "Reporter" | "Developer" | "Master" | "Owner"; flags?: "KnowledgeBase"; order_by?: "created_at" | "last_updated_at" | "stars" | "slug_path" | "forks"; desc?: boolean; }) => Promise<DtoRepos4User[]>; type Repositories_GetUserAllStaredRepos = (params?: { page?: number; page_size?: number; search?: string; desc?: boolean; order_by?: "created_at" | "last_updated_at" | "stars" | "forks"; }) => Promise<DtoRepos4User[]>; type Users_GetUserInfoByName = (params: { username: string; }) => Promise<DtoUsersResult>; type Activities_GetUserActivitiesByDate = (params: { username: string; date?: string; }) => Promise<DtoActivityDate>; type Assets_GetUserAvatar = (params: { username: string; size: string; }) => Promise<any>; type Followers_GetFollowersByUserID = (params: { username: string; page?: number; page_size?: number; }) => Promise<DtoUserFollowResult[]>; type Followers_GetFollowingByUserID = (params: { username: string; page?: number; page_size?: number; }) => Promise<DtoUserFollowResult[]>; type Organizations_GetGroupsByUserID = (params: { username: string; search?: string; page?: number; page_size?: number; desc?: boolean; order_by?: "join_time" | "created_at"; }) => Promise<DtoOrganizationUnion>; type Repositories_GetPinnedRepoByID = (params: { username: string; }) => Promise<DtoRepos4User[]>; type Activities_GetUserRepoActivityDetails = (params: { username: string; activityType: "issue" | "pull_request" | "code_review"; slug: string; date: string; }) => Promise<any[]>; type Repositories_GetReposByUserName = (params: { username: string; search?: string; role?: "Reporter" | "Developer" | "Master" | "Owner"; page?: number; page_size?: number; desc?: boolean; order_by?: "created_at" | "last_updated_at" | "stars" | "slug_path" | "forks"; }) => Promise<DtoRepos4User[]>; type Starring_GetUserStaredRepos = (params: { username: string; search?: string; page?: number; page_size?: number; desc?: boolean; order_by?: "created_at" | "last_updated_at" | "stars" | "forks"; }) => Promise<DtoRepos4User[]>; type Workspace_DeleteWorkspace = (params: { request: DtoWorkspaceDeleteReq; }) => Promise<DtoWorkspaceDeleteResult>; type Workspace_ListWorkspaces = (params?: { branch?: string; end?: string; page?: number; pageSize?: number; slug?: string; start?: string; status?: string; }) => Promise<DtoWorkspaceListResult>; type Organizations_DeleteOrganization = (params: { group: string; "x-cnb-identity-ticket"?: string; }) => Promise<any>; type Organizations_GetGroup = (params: { group: string; }) => Promise<DtoOrganizationAccess>; type Organizations_UpdateOrganization = (params: { group: string; request: DtoUpdateGroupReq; }) => Promise<any>; type Organizations_UpdateGroupAvatar = (params: { group: string; request: DtoUpdateGroupAvatarReq; }) => Promise<any>; type Collaborators_ListInheritMembersOfGroup = (params: { group: string; search?: string; role?: "Guest" | "Reporter" | "Developer" | "Master" | "Owner"; page?: number; page_size?: number; }) => Promise<DtoListInheritMembers[]>; type Assets_PutLogos = (params: { group: string; token: string; }) => Promise<any>; type Assets_GetLogos = (params: { group: string; size?: string; }) => Promise<any>; type Collaborators_ListMembersOfGroup = (params: { group: string; page?: number; page_size?: number; role?: "Guest" | "Reporter" | "Developer" | "Master" | "Owner"; search?: string; }) => Promise<DtoUsersWithAccessLevelInSlug[]>; type Contributors_GetMemberAccessLevelOfGroup = (params: { group: string; include_inherit?: boolean; }) => Promise<DtoMemberAccessLevelInSlugUnion>; type Contributors_ListMemberAccessLevelOfGroup = (params: { group: string; username: string; }) => Promise<DtoMemberAccessLevel[]>; type Collaborators_DeleteMembersOfGroup = (params: { group: string; username: string; }) => Promise<any>; type Collaborators_AddMembersOfGroup = (params: { group: string; username: string; request: DtoUpdateMembersRequest; }) => Promise<any>; type Collaborators_UpdateMembersOfGroup = (params: { group: string; username: string; request: DtoUpdateMembersRequest; }) => Promise<any>; type Repositories_GetPinnedRepoByGroup = (params: { group: string; }) => Promise<DtoRepos4UserBase[]>; type Repositories_SetPinnedRepoByGroup = (params: { group: string; request: string[]; }) => Promise<DtoRepos4UserBase[]>; type Repositories_GetGroupSubRepos = (params: { group: string; page?: number; page_size?: number; filter_type?: "private" | "public" | "encrypted"; order_by?: "created_at" | "last_updated_at" | "stars" | "slug_path"; desc?: boolean; descendant?: "all" | "sub" | "grand"; search?: string; }) => Promise<DtoRepos4User[]>; type Repositories_CreateRepo = (params: { group: string; request: DtoCreateRepoReq; }) => Promise<any>; type Organizations_GetGroupSetting = (params: { group: string; }) => Promise<DtoOrganizationSettingWithParent>; type Organizations_UpdateGroupSetting = (params: { group: string; request: DtoGroupSettingReq; }) => Promise<any>; type Organizations_ListSubgroups = (params: { group: string; search?: string; page: number; page_size: number; }) => Promise<DtoOrganizationUnion[]>; type Organizations_TransferGroup = (params: { group: string; request: DtoTransferSlugReq; }) => Promise<any>; type Assets_UploadLogos = (params: { group: string; request: DtoUploadRequestParams; }) => Promise<DtoUploadAssetsResponse>; type Missions_DeleteMission = (params: { mission: string; "x-cnb-identity-ticket"?: string; }) => Promise<any>; type Collaborators_AddMembersOfMission = (params: { mission: string; username: string; request: DtoUpdateMembersRequest; }) => Promise<any>; type Artifactory_DeleteRegistry = (params: { registry: string; "x-cnb-identity-ticket"?: string; }) => Promise<any>; type Collaborators_AddMembersOfRegistry = (params: { registry: string; username: string; request: DtoUpdateMembersRequest; }) => Promise<any>; type Repositories_DeleteRepo = (params: { repo: string; "x-cnb-identity-ticket"?: string; }) => Promise<any>; type Repositories_GetByID = (params: { repo: string; }) => Promise<DtoRepos4User>; type Repositories_UpdateRepo = (params: { repo: string; request: DtoRepoPatch; }) => Promise<any>; type Build_GetBuildLogs = (params: { repo: string; createTime?: string; endTime?: string; event?: string; page?: number; pagesize?: number; sha?: string; sn?: string; sourceRef?: string; status?: string; targetRef?: string; userId?: string; userName?: string; }) => Promise<DtoBuildLogsResult>; type Build_StartBuild = (params: { repo: string; request: DtoStartBuildReq; }) => Promise<DtoBuildResult>; type Build_GetBuildStatus = (params: { repo: string; sn: string; }) => Promise<DtoBuildStatusResult>; type Build_StopBuild = (params: { repo: string; sn: string; }) => Promise<DtoBuildResult>; type Assets_GetCommitAssets = (params: { repo: string; fileName: string; share?: boolean; }) => Promise<any>; type RepoContributor_GetRepoContributorTrend = (params: { repo: string; limit?: number; exclude_external_users?: boolean; }) => Promise<WebRepoContribTrend>; type Assets_GetFiles = (params: { repo: string; userIdKey: string; randomUUID: string; fileName: string; }) => Promise<any>; type Assets_PutFiles = (params: { repo: string; userIdKey: string; randomUUID: string; fileName: string; token: string; }) => Promise<any>; type Repositories_ListForksRepos = (params: { repo: string; start_from_root?: boolean; page: number; page_size: number; }) => Promise<DtoListForks>; type Repositories_CreateAFork = (params: { repo: string; request: DtoForkReq; }) => Promise<any>; type Git_GetArchiveCommitChangedFiles = (params: { repo: string; sha1?: string; }) => Promise<any>; type Git_GetArchiveCompareChangedFiles = (params: { repo: string; base_head: string; }) => Promise<any>; type Git_CreateBlob = (params: { repo: string; post_blob_form: ApiPostBlobForm; }) => Promise<any>; type Git_ListBranches = (params: { repo: string; page?: number; page_size?: number; }) => Promise<ApiBranch[]>; type Git_CreateBranch = (params: { repo: string; create_branch_form: OpenapiCreateBranchForm; }) => Promise<any>; type Git_DeleteBranch = (params: { repo: string; branch: string; }) => Promise<any>; type Git_GetBranch = (params: { repo: string; branch?: string; }) => Promise<ApiBranchDetail>; type Git_GetCommitAnnotationsInBatch = (params: { repo: string; get_commit_annotations_form: WebGetCommitAnnotationsInBatchForm; }) => Promise<WebCommitAnnotationInBatch[]>; type Git_GetCommitAnnotations = (params: { repo: string; sha: string; }) => Promise<WebCommitAnnotation[]>; type Git_PutCommitAnnotations = (params: { repo: string; sha: string; put_commit_annotations_form: OpenapiPutCommitAnnotationsForm; }) => Promise<any>; type Git_DeleteCommitAnnotation = (params: { repo: string; sha: string; key: string; }) => Promise<any>; type Git_GetCommitAssetsBySha = (params: { repo: string; sha1: string; }) => Promise<ApiCommitAsset[]>; type Git_PostCommitAssetUploadConfirmation = (params: { repo: string; sha1: string; token: string; asset_path: string; }) => Promise<any>; type Git_PostCommitAssetUploadURL = (params: { repo: string; sha1: string; create_commit_asset_upload_url_form: OpenapiPostCommitAssetUploadUrlForm; }) => Promise<any>; type Git_DeleteCommitAsset = (params: { repo: string; sha1: string; asset_id: string; }) => Promise<any>; type Git_GetCommitStatuses = (params: { repo: string; commitish: string; }) => Promise<ApiCommitStatus[]>; type Git_ListCommits = (params: { repo: string; sha?: string; author?: string; committer?: string; since?: string; until?: string; page?: number; page_size?: number; }) => Promise<ApiCommit[]>; type Git_GetCommit = (params: { repo: string; ref: string; }) => Promise<ApiCommit>; type Git_GetCompareCommits = (params: { repo: string; base_head: string; }) => Promise<ApiCompareResponse>; type Git_GetContent = (params: { repo: string; file_path: string; ref?: string; }) => Promise<ApiContent>; type Git_ListDeferredCommits = (params: { repo: string; cs: string; }) => Promise<WebDeferredCommit[]>; type Git_GetHead = (params: { repo: string; }) => Promise<OpenapiHeadRef>; type Git_DeleteTagAnnotation = (params: { repo: string; tag_with_key: string; }) => Promise<any>; type Git_GetTagAnnotations = (params: { repo: string; tag: string; }) => Promise<WebTagAnnotation[]>; type Git_PutTagAnnotations = (params: { repo: string; tag: string; put_tag_annotations_form: OpenapiPutTagAnnotationsForm; }) => Promise<any>; type Git_ListTags = (params: { repo: string; page?: number; page_size?: number; }) => Promise<ApiTag[]>; type Git_CreateTag = (params: { repo: string; post_tag_form: ApiPostTagFrom; }) => Promise<any>; type Git_DeleteTag = (params: { repo: string; tag: string; }) => Promise<any>; type Git_GetTag = (params: { repo: string; tag: string; }) => Promise<ApiTag>; type Assets_GetImgs = (params: { repo: string; userIdKey: string; fileName: string; }) => Promise<any>; type Assets_PutImgs = (params: { repo: string; userIdKey: string; fileName: string; token: string; }) => Promise<any>; type Collaborators_ListInheritMembersOfRepo = (params: { repo: string; search?: string; role?: "Guest" | "Reporter" | "Developer" | "Master" | "Owner"; page?: number; page_size?: number; }) => Promise<DtoListInheritMembers[]>; type Issues_ListIssues = (params: { repo: string; page?: number; page_size?: number; state?: string; keyword?: string; priority?: string; labels?: string; authors?: string; assignees?: string; updated_time_begin?: string; updated_time_end?: string; close_time_begin?: string; close_time_end?: string; order_by?: string; }) => Promise<ApiIssue[]>; type Issues_CreateIssue = (params: { repo: string; post_issue_form: ApiPostIssueForm; }) => Promise<any>; type Issues_GetIssue = (params: { repo: string; number: number; }) => Promise<ApiIssueDetail>; type Issues_UpdateIssue = (params: { repo: string; number: number; patch_issue_form: ApiPatchIssueForm; }) => Promise<ApiIssueDetail>; type Issues_DeleteIssueAssignees = (params: { repo: string; number: string; delete_issue_assignees_form: ApiDeleteIssueAssigneesForm; }) => Promise<ApiIssueDetail>; type Issues_ListIssueAssignees = (params: { repo: string; number: string; }) => Promise<GitWoaComCnbMonorepoGitInternalAppVcsServiceBffApiUserInfo[]>; type Issues_PatchIssueAssignees = (params: { repo: string; number: string; patch_issue_assignees_form: ApiPatchIssueAssigneesForm; }) => Promise<ApiIssueDetail>; type Issues_PostIssueAssignees = (params: { repo: string; number: string; post_issue_assignees_form: ApiPostIssueAssigneesForm; }) => Promise<any>; type Issues_CanUserBeAssignedToIssue = (params: { repo: string; number: string; assignee: string; }) => Promise<any>; type Issues_ListIssueComments = (params: { repo: string; number: number; page?: number; page_size?: number; }) => Promise<ApiIssueComment[]>; type Issues_PostIssueComment = (params: { repo: string; number: number; post_issue_comment_form: ApiPostIssueCommentForm; }) => Promise<any>; type Issues_GetIssueComment = (params: { repo: string; number: string; comment_id: string; }) => Promise<ApiIs