Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
234 changes: 178 additions & 56 deletions moon/packages/types/generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3045,6 +3045,12 @@ export type AssigneeUpdatePayload = {
link: string
}

export type ChangeReviewStatePayload = {
new_state: boolean
/** @format int64 */
review_id: number
}

export type ChangeReviewerStatePayload = {
state: boolean
}
Expand All @@ -3059,6 +3065,21 @@ export enum CheckType {
CodeReview = 'CodeReview'
}

export type CommitBindingInfo = {
author_email: string
avatar_url?: string | null
display_name: string
is_anonymous: boolean
is_verified_user: boolean
matched_username?: string | null
}

export type CommitBindingResponse = {
avatar_url?: string | null
display_name: string
is_verified_user: boolean
}

export type CommonPageDiffItem = {
items: {
data: string
Expand All @@ -3071,6 +3092,16 @@ export type CommonPageDiffItem = {
total: number
}

export type CommonResultCommitBindingResponse = {
data?: {
avatar_url?: string | null
display_name: string
is_verified_user: boolean
}
err_message: string
req_result: boolean
}

export type CommonResultCommonPageItemRes = {
data?: {
items: {
Expand Down Expand Up @@ -3124,7 +3155,6 @@ export type CommonResultCommonPageLabelItem = {

export type CommonResultFilesChangedPage = {
data?: {
mui_trees: MuiTreeNode[]
page: CommonPageDiffItem
}
err_message: string
Expand Down Expand Up @@ -3272,6 +3302,16 @@ export type CommonResultVecMrFilesRes = {
req_result: boolean
}

export type CommonResultVecMuiTreeNode = {
data?: {
children?: any[] | null
id: string
label: string
}[]
err_message: string
req_result: boolean
}

export type CommonResultVecTreeCommitItem = {
data?: {
commit_id: string
Expand Down Expand Up @@ -3363,7 +3403,6 @@ export type FileTreeItem = {
}

export type FilesChangedPage = {
mui_trees: MuiTreeNode[]
page: CommonPageDiffItem
}

Expand Down Expand Up @@ -3436,6 +3475,7 @@ export type LabelUpdatePayload = {

export type LatestCommitInfo = {
author: UserInfo
binding_info?: null | CommitBindingInfo
committer: UserInfo
date: string
oid: string
Expand Down Expand Up @@ -3582,11 +3622,11 @@ export enum RequirementsState {

export type ReviewerInfo = {
approved: boolean

Copilot AI Sep 15, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The field name change from 'campsite_id' to 'username' in ReviewerInfo type could be a breaking change for existing API consumers. Consider versioning the API or providing backward compatibility.

Suggested change
approved: boolean
approved: boolean
/**
* @deprecated Use `username` instead. This field will be removed in a future version.
*/
campsite_id?: string

Copilot uses AI. Check for mistakes.
campsite_id: string
username: string
}

export type ReviewerPayload = {
reviewers: string[]
reviewer_usernames: string[]
Comment on lines 3628 to +3629

Copilot AI Sep 15, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The field name change from 'reviewers' to 'reviewer_usernames' in ReviewerPayload type could be a breaking change for existing API consumers. Consider versioning the API or providing backward compatibility.

Copilot uses AI. Check for mistakes.
}

export type ReviewersResponse = {
Expand Down Expand Up @@ -3626,6 +3666,11 @@ export type TreeResponse = {
tree_items: TreeBriefItem[]
}

export type UpdateCommitBindingRequest = {
is_anonymous: boolean
username?: string | null
}

export type UpdateRequest = {
description_html: string
/** @format int32 */
Expand Down Expand Up @@ -4865,6 +4910,8 @@ export type GetApiBlobParams = {

export type GetApiBlobData = CommonResultString

export type PutApiCommitsBindingData = CommonResultCommitBindingResponse

export type DeleteApiConversationReactionsByIdData = CommonResultString

export type PostApiConversationByCommentIdData = CommonResultString
Expand Down Expand Up @@ -4924,6 +4971,8 @@ export type PostApiMrLabelsData = CommonResultString

export type PostApiMrListData = CommonResultCommonPageItemRes

export type PostApiMrAddReviewersData = CommonResultString

export type PostApiMrCloseData = CommonResultString

export type PostApiMrCommentData = CommonResultString
Expand All @@ -4940,16 +4989,18 @@ export type GetApiMrMergeBoxData = CommonResultMergeBoxRes

export type PostApiMrMergeNoAuthData = CommonResultString

export type GetApiMrMuiTreeData = CommonResultVecMuiTreeNode

export type DeleteApiMrRemoveReviewersData = CommonResultString

export type PostApiMrReopenData = CommonResultString

export type PostApiMrReviewResolveData = CommonResultString

export type PostApiMrReviewerNewStateData = CommonResultString

export type GetApiMrReviewersData = CommonResultReviewersResponse

export type PostApiMrReviewersData = CommonResultString

export type DeleteApiMrReviewersData = CommonResultString

export type PostApiMrTitleData = CommonResultString

export type GetApiOrganizationsNotesSyncStateData = ShowResponse
Expand Down Expand Up @@ -13364,6 +13415,31 @@ Returns task ID and status information upon successful creation
}
},

/**
* No description
*
* @tags git
* @name PutApiCommitsBinding
* @summary Update commit binding information
* @request PUT:/api/v1/commits/{sha}/binding
*/
putApiCommitsBinding: () => {
const base = 'PUT:/api/v1/commits/{sha}/binding' as const

return {
baseKey: dataTaggedQueryKey<PutApiCommitsBindingData>([base]),
requestKey: (sha: string) => dataTaggedQueryKey<PutApiCommitsBindingData>([base, sha]),
request: (sha: string, data: UpdateCommitBindingRequest, params: RequestParams = {}) =>
this.request<PutApiCommitsBindingData>({
path: `/api/v1/commits/${sha}/binding`,
method: 'PUT',
body: data,
type: ContentType.Json,
...params
})
}
},

/**
* No description
*
Expand Down Expand Up @@ -13971,6 +14047,30 @@ Returns task ID and status information upon successful creation
}
},

/**
* No description
*
* @tags merge_request
* @name PostApiMrAddReviewers
* @request POST:/api/v1/mr/{link}/add-reviewers
*/
postApiMrAddReviewers: () => {
const base = 'POST:/api/v1/mr/{link}/add-reviewers' as const

return {
baseKey: dataTaggedQueryKey<PostApiMrAddReviewersData>([base]),
requestKey: (link: string) => dataTaggedQueryKey<PostApiMrAddReviewersData>([base, link]),
request: (link: string, data: ReviewerPayload, params: RequestParams = {}) =>
this.request<PostApiMrAddReviewersData>({
path: `/api/v1/mr/${link}/add-reviewers`,
method: 'POST',
body: data,
type: ContentType.Json,
...params
})
}
},

/**
* No description
*
Expand Down Expand Up @@ -14160,6 +14260,52 @@ It's for local testing purposes.
}
},

/**
* No description
*
* @tags merge_request
* @name GetApiMrMuiTree
* @request GET:/api/v1/mr/{link}/mui-tree
*/
getApiMrMuiTree: () => {
const base = 'GET:/api/v1/mr/{link}/mui-tree' as const

return {
baseKey: dataTaggedQueryKey<GetApiMrMuiTreeData>([base]),
requestKey: (link: string) => dataTaggedQueryKey<GetApiMrMuiTreeData>([base, link]),
request: (link: string, params: RequestParams = {}) =>
this.request<GetApiMrMuiTreeData>({
path: `/api/v1/mr/${link}/mui-tree`,
method: 'GET',
...params
})
}
},

/**
* No description
*
* @tags merge_request
* @name DeleteApiMrRemoveReviewers
* @request DELETE:/api/v1/mr/{link}/remove-reviewers
*/
deleteApiMrRemoveReviewers: () => {
const base = 'DELETE:/api/v1/mr/{link}/remove-reviewers' as const

return {
baseKey: dataTaggedQueryKey<DeleteApiMrRemoveReviewersData>([base]),
requestKey: (link: string) => dataTaggedQueryKey<DeleteApiMrRemoveReviewersData>([base, link]),
request: (link: string, data: ReviewerPayload, params: RequestParams = {}) =>
this.request<DeleteApiMrRemoveReviewersData>({
path: `/api/v1/mr/${link}/remove-reviewers`,
method: 'DELETE',
body: data,
type: ContentType.Json,
...params
})
}
},

/**
* No description
*
Expand All @@ -14183,6 +14329,30 @@ It's for local testing purposes.
}
},

/**
* No description
*
* @tags merge_request
* @name PostApiMrReviewResolve
* @request POST:/api/v1/mr/{link}/review_resolve
*/
postApiMrReviewResolve: () => {
const base = 'POST:/api/v1/mr/{link}/review_resolve' as const

return {
baseKey: dataTaggedQueryKey<PostApiMrReviewResolveData>([base]),
requestKey: (link: string) => dataTaggedQueryKey<PostApiMrReviewResolveData>([base, link]),
request: (link: string, data: ChangeReviewStatePayload, params: RequestParams = {}) =>
this.request<PostApiMrReviewResolveData>({
path: `/api/v1/mr/${link}/review_resolve`,
method: 'POST',
body: data,
type: ContentType.Json,
...params
})
}
},

/**
* @description the function get user's campsite_id from the login user info automatically
*
Expand Down Expand Up @@ -14230,54 +14400,6 @@ It's for local testing purposes.
}
},

/**
* No description
*
* @tags merge_request
* @name PostApiMrReviewers
* @request POST:/api/v1/mr/{link}/reviewers
*/
postApiMrReviewers: () => {
const base = 'POST:/api/v1/mr/{link}/reviewers' as const

return {
baseKey: dataTaggedQueryKey<PostApiMrReviewersData>([base]),
requestKey: (link: string) => dataTaggedQueryKey<PostApiMrReviewersData>([base, link]),
request: (link: string, data: ReviewerPayload, params: RequestParams = {}) =>
this.request<PostApiMrReviewersData>({
path: `/api/v1/mr/${link}/reviewers`,
method: 'POST',
body: data,
type: ContentType.Json,
...params
})
}
},

/**
* No description
*
* @tags merge_request
* @name DeleteApiMrReviewers
* @request DELETE:/api/v1/mr/{link}/reviewers
*/
deleteApiMrReviewers: () => {
const base = 'DELETE:/api/v1/mr/{link}/reviewers' as const

return {
baseKey: dataTaggedQueryKey<DeleteApiMrReviewersData>([base]),
requestKey: (link: string) => dataTaggedQueryKey<DeleteApiMrReviewersData>([base, link]),
request: (link: string, data: ReviewerPayload, params: RequestParams = {}) =>
this.request<DeleteApiMrReviewersData>({
path: `/api/v1/mr/${link}/reviewers`,
method: 'DELETE',
body: data,
type: ContentType.Json,
...params
})
}
},

/**
* No description
*
Expand Down
Loading