4991 lines
171 KiB
TypeScript
4991 lines
171 KiB
TypeScript
/**
|
|
* Generated by orval v8.9.0 🍺
|
|
* Do not edit manually.
|
|
* api
|
|
* OpenAPI spec version: 0.2.9
|
|
*/
|
|
import * as axios from 'axios';
|
|
import type {
|
|
AxiosInstance,
|
|
AxiosRequestConfig,
|
|
AxiosResponse
|
|
} from 'axios';
|
|
|
|
import type {
|
|
ActivityLogParams,
|
|
AddSshKeyParams,
|
|
AiConversationListParams,
|
|
AiMessageListParams,
|
|
AnswerRequest,
|
|
ApiResponseAccessKeyListResponse,
|
|
ApiResponseAccessKeyResponse,
|
|
ApiResponseActivityLogListResponse,
|
|
ApiResponseActivityLogResponse,
|
|
ApiResponseApiError,
|
|
ApiResponseApprovalCheckResult,
|
|
ApiResponseArchiveCachedResponse,
|
|
ApiResponseArchiveInvalidateAllResponse,
|
|
ApiResponseArchiveInvalidateResponse,
|
|
ApiResponseArchiveListResponse,
|
|
ApiResponseArchiveResponse,
|
|
ApiResponseArchiveSummaryResponse,
|
|
ApiResponseAuditLogResponse,
|
|
ApiResponseAvatarUploadResponse,
|
|
ApiResponseBillingErrorsResponse,
|
|
ApiResponseBlobContentResponse,
|
|
ApiResponseBlobCreateResponse,
|
|
ApiResponseBlobExistsResponse,
|
|
ApiResponseBlobInfoResponse,
|
|
ApiResponseBlobIsBinaryResponse,
|
|
ApiResponseBlobSizeResponse,
|
|
ApiResponseBoardResponse,
|
|
ApiResponseBoardWithColumnsResponse,
|
|
ApiResponseBool,
|
|
ApiResponseBranchDiffResponse,
|
|
ApiResponseBranchExistsResponse,
|
|
ApiResponseBranchFastForwardResponse,
|
|
ApiResponseBranchInfoResponse,
|
|
ApiResponseBranchIsAncestorResponse,
|
|
ApiResponseBranchIsConflictedResponse,
|
|
ApiResponseBranchIsDetachedResponse,
|
|
ApiResponseBranchIsHeadResponse,
|
|
ApiResponseBranchIsMergedResponse,
|
|
ApiResponseBranchMergeBaseResponse,
|
|
ApiResponseBranchProtectionResponse,
|
|
ApiResponseBranchSummaryResponse,
|
|
ApiResponseBranchTrackingDiffResponse,
|
|
ApiResponseCaptchaResponse,
|
|
ApiResponseCardResponse,
|
|
ApiResponseColumnResponse,
|
|
ApiResponseCommitAuthorResponse,
|
|
ApiResponseCommitBranchesResponse,
|
|
ApiResponseCommitCountResponse,
|
|
ApiResponseCommitCreateResponse,
|
|
ApiResponseCommitExistsResponse,
|
|
ApiResponseCommitGraphReactResponse,
|
|
ApiResponseCommitGraphResponse,
|
|
ApiResponseCommitIsCommitResponse,
|
|
ApiResponseCommitIsMergeResponse,
|
|
ApiResponseCommitIsTipResponse,
|
|
ApiResponseCommitLogResponse,
|
|
ApiResponseCommitMessageResponse,
|
|
ApiResponseCommitMetaResponse,
|
|
ApiResponseCommitParentCountResponse,
|
|
ApiResponseCommitParentIdsResponse,
|
|
ApiResponseCommitRefCountResponse,
|
|
ApiResponseCommitShortIdResponse,
|
|
ApiResponseCommitSummaryResponse,
|
|
ApiResponseCommitTagsResponse,
|
|
ApiResponseCommitTreeIdResponse,
|
|
ApiResponseConfigBoolResponse,
|
|
ApiResponseConfigSnapshotResponse,
|
|
ApiResponseContextMe,
|
|
ApiResponseContributionHeatmapResponse,
|
|
ApiResponseContributorsResponse,
|
|
ApiResponseConversationResponse,
|
|
ApiResponseDeleteSkillResponse,
|
|
ApiResponseDescriptionResponse,
|
|
ApiResponseDiffPatchIdResponse,
|
|
ApiResponseDiffResultResponse,
|
|
ApiResponseDiffStatsResponse,
|
|
ApiResponseEmailResponse,
|
|
ApiResponseForkConversationResponse,
|
|
ApiResponseGitInitResponse,
|
|
ApiResponseGitReadmeResponse,
|
|
ApiResponseGlobalMessageSearchResponse,
|
|
ApiResponseGroupedMemberListResponse,
|
|
ApiResponseInvitationListResponse,
|
|
ApiResponseIsLikeResponse,
|
|
ApiResponseIsWatchResponse,
|
|
ApiResponseIssueAssigneeResponse,
|
|
ApiResponseIssueCommentListResponse,
|
|
ApiResponseIssueCommentResponse,
|
|
ApiResponseIssueLabelResponse,
|
|
ApiResponseIssueListResponse,
|
|
ApiResponseIssuePullRequestResponse,
|
|
ApiResponseIssueRepoResponse,
|
|
ApiResponseIssueResponse,
|
|
ApiResponseIssueSubscriberResponse,
|
|
ApiResponseIssueSummaryResponse,
|
|
ApiResponseIssueTriageResponse,
|
|
ApiResponseJoinAnswersListResponse,
|
|
ApiResponseJoinRequestListResponse,
|
|
ApiResponseJoinSettingsResponse,
|
|
ApiResponseLabelListResponse,
|
|
ApiResponseLabelResponse,
|
|
ApiResponseMemberListResponse,
|
|
ApiResponseMergeAnalysisResponse,
|
|
ApiResponseMergeConflictResponse,
|
|
ApiResponseMergeResponse,
|
|
ApiResponseMessageEditHistoryResponse,
|
|
ApiResponseMessageResponse,
|
|
ApiResponseMessageSearchResponse,
|
|
ApiResponseNotificationListResponse,
|
|
ApiResponseNotificationPreferencesResponse,
|
|
ApiResponseOptionCommitMetaResponse,
|
|
ApiResponsePrCommitsListResponse,
|
|
ApiResponsePreferencesResponse,
|
|
ApiResponseProfileResponse,
|
|
ApiResponseProjectBillingCurrentResponse,
|
|
ApiResponseProjectBillingHistoryResponse,
|
|
ApiResponseProjectInfoRelational,
|
|
ApiResponseProjectInitResponse,
|
|
ApiResponseProjectRepoCreateResponse,
|
|
ApiResponseProjectRepositoryPagination,
|
|
ApiResponseProjectStatsResponse,
|
|
ApiResponsePullRequestListResponse,
|
|
ApiResponsePullRequestResponse,
|
|
ApiResponsePullRequestSummaryResponse,
|
|
ApiResponseReactionListResponse,
|
|
ApiResponseReactionResponse,
|
|
ApiResponseRefDeleteResponse,
|
|
ApiResponseRefExistsResponse,
|
|
ApiResponseRefInfoResponse,
|
|
ApiResponseRefTargetResponse,
|
|
ApiResponseRefUpdateResponse,
|
|
ApiResponseReviewCommentListResponse,
|
|
ApiResponseReviewCommentResponse,
|
|
ApiResponseReviewListResponse,
|
|
ApiResponseReviewRequestListResponse,
|
|
ApiResponseReviewRequestResponse,
|
|
ApiResponseReviewResponse,
|
|
ApiResponseRolePriorityInfo,
|
|
ApiResponseRolePriorityListResponse,
|
|
ApiResponseRoomAiResponse,
|
|
ApiResponseRoomCategoryResponse,
|
|
ApiResponseRoomMessageListResponse,
|
|
ApiResponseRoomMessageResponse,
|
|
ApiResponseRoomParticipantListResponse,
|
|
ApiResponseRoomPinResponse,
|
|
ApiResponseRoomResponse,
|
|
ApiResponseRoomThreadResponse,
|
|
ApiResponseRoomUserStateResponse,
|
|
ApiResponseScanResponse,
|
|
ApiResponseSearchResponse,
|
|
ApiResponseShareResponse,
|
|
ApiResponseSideBySideDiffResponse,
|
|
ApiResponseSkillResponse,
|
|
ApiResponseSshKeyListResponse,
|
|
ApiResponseSshKeyResponse,
|
|
ApiResponseStarCountResponse,
|
|
ApiResponseStarUserListResponse,
|
|
ApiResponseString,
|
|
ApiResponseTagCountResponse,
|
|
ApiResponseTagExistsResponse,
|
|
ApiResponseTagInfoResponse,
|
|
ApiResponseTagIsAnnotatedResponse,
|
|
ApiResponseTagMessageResponse,
|
|
ApiResponseTagSummaryResponse,
|
|
ApiResponseTagTaggerResponse,
|
|
ApiResponseTagTargetResponse,
|
|
ApiResponseTransferRepoResponse,
|
|
ApiResponseTreeDiffStatsResponse,
|
|
ApiResponseTreeEntryCountResponse,
|
|
ApiResponseTreeEntryResponse,
|
|
ApiResponseTreeExistsResponse,
|
|
ApiResponseTreeInfoResponse,
|
|
ApiResponseTreeIsEmptyResponse,
|
|
ApiResponseUserActivityResponse,
|
|
ApiResponseUserBillingErrorsResponse,
|
|
ApiResponseUserBillingHistoryResponse,
|
|
ApiResponseUserBillingResponse,
|
|
ApiResponseUserInfoExternal,
|
|
ApiResponseUserProjectsResponse,
|
|
ApiResponseUserReposResponse,
|
|
ApiResponseUserStarsResponse,
|
|
ApiResponseUserSummaryResponse,
|
|
ApiResponseValue,
|
|
ApiResponseVecAuditLogResponse,
|
|
ApiResponseVecBoardResponse,
|
|
ApiResponseVecBranchInfoResponse,
|
|
ApiResponseVecBranchProtectionResponse,
|
|
ApiResponseVecCommitMetaResponse,
|
|
ApiResponseVecCommitRefInfoResponse,
|
|
ApiResponseVecCommitReflogEntryResponse,
|
|
ApiResponseVecConversationResponse,
|
|
ApiResponseVecIssueAssigneeResponse,
|
|
ApiResponseVecIssueLabelResponse,
|
|
ApiResponseVecIssuePullRequestResponse,
|
|
ApiResponseVecIssueRepoResponse,
|
|
ApiResponseVecIssueSubscriberResponse,
|
|
ApiResponseVecLabelResponse,
|
|
ApiResponseVecLikeUserInfo,
|
|
ApiResponseVecMentionNotificationResponse,
|
|
ApiResponseVecMergeheadInfoResponse,
|
|
ApiResponseVecMessageResponse,
|
|
ApiResponseVecPresenceChanged,
|
|
ApiResponseVecRefInfoResponse,
|
|
ApiResponseVecRoomAiResponse,
|
|
ApiResponseVecRoomCategoryResponse,
|
|
ApiResponseVecRoomPinResponse,
|
|
ApiResponseVecRoomResponse,
|
|
ApiResponseVecRoomThreadResponse,
|
|
ApiResponseVecSkillResponse,
|
|
ApiResponseVecString,
|
|
ApiResponseVecSubscriptionInfo,
|
|
ApiResponseVecTagInfoResponse,
|
|
ApiResponseVecTreeEntryResponse,
|
|
ApiResponseVecUserCard,
|
|
ApiResponseVecWatchUserInfo,
|
|
ApiResponseWatchCountResponse,
|
|
ApiResponseWatchUserListResponse,
|
|
ApiResponseWebhookListResponse,
|
|
ApiResponseWebhookResponse,
|
|
AuditLogParams,
|
|
BlameHunkResponse,
|
|
BlobCreateRequest,
|
|
BranchCreateRequest,
|
|
BranchMoveRequest,
|
|
BranchProtectionCheckApprovalsParams,
|
|
BranchProtectionCreateRequest,
|
|
BranchProtectionUpdateRequest,
|
|
BranchRenameRequest,
|
|
BranchSetUpstreamRequest,
|
|
CaptchaQuery,
|
|
ChangePasswordParams,
|
|
CommitAmendRequest,
|
|
CommitCherryPickAbortRequest,
|
|
CommitCherryPickRequest,
|
|
CommitCreateRequest,
|
|
CommitRevertAbortRequest,
|
|
CommitRevertRequest,
|
|
ConfigSetRequest,
|
|
ConfirmResetPasswordParams,
|
|
CreateAccessKeyParams,
|
|
CreateBoardParams,
|
|
CreateCardParams,
|
|
CreateColumnParams,
|
|
CreateConversationParams,
|
|
CreateLabelParams,
|
|
CreateLabelRequest,
|
|
CreateMessageParams,
|
|
CreateModelCapabilityRequest,
|
|
CreateModelParameterProfileRequest,
|
|
CreateModelPricingRequest,
|
|
CreateModelRequest,
|
|
CreateModelVersionRequest,
|
|
CreateProviderRequest,
|
|
CreateSkillRequest,
|
|
CreateWebhookParams,
|
|
DescriptionQuery,
|
|
Disable2FAParams,
|
|
EmailChangeRequest,
|
|
EmailVerifyRequest,
|
|
Enable2FAResponse,
|
|
ExchangeProjectName,
|
|
ExchangeProjectTitle,
|
|
ExchangeProjectVisibility,
|
|
GeneratePrDescriptionRequest,
|
|
GeneratePrDescriptionResponse,
|
|
Get2FAStatusResponse,
|
|
GetUserActivityParams,
|
|
GitArchiveCachedParams,
|
|
GitArchiveInvalidateParams,
|
|
GitArchiveListParams,
|
|
GitArchiveParams,
|
|
GitArchiveSummaryParams,
|
|
GitCommitLogParams,
|
|
GitDiffTreeToTreeParams,
|
|
GitInitRequest,
|
|
GitReadmeParams,
|
|
GitStarUserListParams,
|
|
GitUpdateRepoRequest,
|
|
GitWatchRequest,
|
|
GitWatchUserListParams,
|
|
InviteUserRequest,
|
|
IssueAddLabelRequest,
|
|
IssueAddLabelsByNamesRequest,
|
|
IssueAssignUserRequest,
|
|
IssueCommentCreateRequest,
|
|
IssueCommentListParams,
|
|
IssueCommentUpdateRequest,
|
|
IssueCreateRequest,
|
|
IssueLinkPullRequestRequest,
|
|
IssueLinkRepoRequest,
|
|
IssueListParams,
|
|
IssueUpdateRequest,
|
|
LoginParams,
|
|
MentionListParams,
|
|
MergeCommitsRequest,
|
|
MergeRequest,
|
|
MergeTreesRequest,
|
|
MessageListParams,
|
|
MessageSearchParams,
|
|
ModelCapabilityResponse,
|
|
ModelCatalogParams,
|
|
ModelListParams,
|
|
ModelListResponse,
|
|
ModelParameterProfileResponse,
|
|
ModelPricingResponse,
|
|
ModelResponse,
|
|
ModelVersionListParams,
|
|
ModelVersionResponse,
|
|
MoveCardParams,
|
|
NotificationListParams,
|
|
NotificationPreferencesParams,
|
|
PreferencesParams,
|
|
ProcessJoinRequest,
|
|
ProjectActivitiesParams,
|
|
ProjectAuditLogsParams,
|
|
ProjectInitParams,
|
|
ProjectInvitationsParams,
|
|
ProjectJoinRequestsParams,
|
|
ProjectMembersParams,
|
|
ProjectRepoCreateParams,
|
|
ProviderResponse,
|
|
PullRequestCreateRequest,
|
|
PullRequestListParams,
|
|
PullRequestUpdateRequest,
|
|
ReactionAddRequest,
|
|
RefCreateRequest,
|
|
RefUpdateRequest,
|
|
RegisterParams,
|
|
ResetPasswordParams,
|
|
ReviewCommentCreateRequest,
|
|
ReviewCommentListParams,
|
|
ReviewCommentReplyRequest,
|
|
ReviewCommentUpdateRequest,
|
|
ReviewRequestCreateRequest,
|
|
ReviewSubmitRequest,
|
|
ReviewUpdateRequest,
|
|
RoomAccessGrantRequest,
|
|
RoomAiUpsertRequest,
|
|
RoomCategoryCreateRequest,
|
|
RoomCategoryUpdateRequest,
|
|
RoomCreateRequest,
|
|
RoomListParams,
|
|
RoomMemberReadSeqRequest,
|
|
RoomMessageCreateRequest,
|
|
RoomMessageUpdateRequest,
|
|
RoomThreadCreateRequest,
|
|
RoomUpdateRequest,
|
|
RoomUserStateUpdateDndRequest,
|
|
SearchMessagesParams,
|
|
SearchParams,
|
|
SubmitJoinRequest,
|
|
TagCreateLightweightRequest,
|
|
TagCreateRequest,
|
|
TagRenameQuery,
|
|
TagUpdateMessageRequest,
|
|
ThreadMessagesParams,
|
|
TransferRepoParams,
|
|
TriageIssueParams,
|
|
TriggerCodeReviewRequest,
|
|
TriggerCodeReviewResponse,
|
|
UpdateBoardParams,
|
|
UpdateCardParams,
|
|
UpdateColumnParams,
|
|
UpdateConversationParams,
|
|
UpdateJoinSettingsRequest,
|
|
UpdateLabelParams,
|
|
UpdateMemberRoleRequest,
|
|
UpdateModelCapabilityRequest,
|
|
UpdateModelParameterProfileRequest,
|
|
UpdateModelPricingRequest,
|
|
UpdateModelRequest,
|
|
UpdateModelVersionRequest,
|
|
UpdateProfileParams,
|
|
UpdateProviderRequest,
|
|
UpdateSkillRequest,
|
|
UpdateSshKeyParams,
|
|
UpdateWebhookParams,
|
|
UpsertRolePriorityRequest,
|
|
UserBillingHistoryParams,
|
|
Verify2FAParams
|
|
} from './model';
|
|
|
|
export const getApi = (axiosInstance: AxiosInstance = axios.default) => {
|
|
const modelCapabilityCreate = (
|
|
createModelCapabilityRequest: CreateModelCapabilityRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ModelCapabilityResponse>> => {
|
|
return axiosInstance.post(
|
|
`/api/agents/capabilities`,
|
|
createModelCapabilityRequest,options
|
|
);
|
|
}
|
|
|
|
const modelCapabilityGet = (
|
|
id: number, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ModelCapabilityResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/agents/capabilities/${id}`,options
|
|
);
|
|
}
|
|
|
|
const modelCapabilityDelete = (
|
|
id: number, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.delete(
|
|
`/api/agents/capabilities/${id}`,options
|
|
);
|
|
}
|
|
|
|
const modelCapabilityUpdate = (
|
|
id: number,
|
|
updateModelCapabilityRequest: UpdateModelCapabilityRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ModelCapabilityResponse>> => {
|
|
return axiosInstance.patch(
|
|
`/api/agents/capabilities/${id}`,
|
|
updateModelCapabilityRequest,options
|
|
);
|
|
}
|
|
|
|
const triggerCodeReview = (
|
|
namespace: string,
|
|
repo: string,
|
|
triggerCodeReviewRequest: TriggerCodeReviewRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<TriggerCodeReviewResponse>> => {
|
|
return axiosInstance.post(
|
|
`/api/agents/code-review/${namespace}/${repo}`,
|
|
triggerCodeReviewRequest,options
|
|
);
|
|
}
|
|
|
|
const modelList = (
|
|
params?: ModelListParams, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ModelResponse[]>> => {
|
|
return axiosInstance.get(
|
|
`/api/agents/models`,{
|
|
...options,
|
|
params: {...params, ...options?.params},}
|
|
);
|
|
}
|
|
|
|
const modelCreate = (
|
|
createModelRequest: CreateModelRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ModelResponse>> => {
|
|
return axiosInstance.post(
|
|
`/api/agents/models`,
|
|
createModelRequest,options
|
|
);
|
|
}
|
|
|
|
const modelCatalog = (
|
|
params?: ModelCatalogParams, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ModelListResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/agents/models/catalog`,{
|
|
...options,
|
|
params: {...params, ...options?.params},}
|
|
);
|
|
}
|
|
|
|
const modelGet = (
|
|
id: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ModelResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/agents/models/${id}`,options
|
|
);
|
|
}
|
|
|
|
const modelDelete = (
|
|
id: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.delete(
|
|
`/api/agents/models/${id}`,options
|
|
);
|
|
}
|
|
|
|
const modelUpdate = (
|
|
id: string,
|
|
updateModelRequest: UpdateModelRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ModelResponse>> => {
|
|
return axiosInstance.patch(
|
|
`/api/agents/models/${id}`,
|
|
updateModelRequest,options
|
|
);
|
|
}
|
|
|
|
const modelParameterProfileCreate = (
|
|
createModelParameterProfileRequest: CreateModelParameterProfileRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ModelParameterProfileResponse>> => {
|
|
return axiosInstance.post(
|
|
`/api/agents/parameters`,
|
|
createModelParameterProfileRequest,options
|
|
);
|
|
}
|
|
|
|
const modelParameterProfileGet = (
|
|
id: number, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ModelParameterProfileResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/agents/parameters/${id}`,options
|
|
);
|
|
}
|
|
|
|
const modelParameterProfileDelete = (
|
|
id: number, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.delete(
|
|
`/api/agents/parameters/${id}`,options
|
|
);
|
|
}
|
|
|
|
const modelParameterProfileUpdate = (
|
|
id: number,
|
|
updateModelParameterProfileRequest: UpdateModelParameterProfileRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ModelParameterProfileResponse>> => {
|
|
return axiosInstance.patch(
|
|
`/api/agents/parameters/${id}`,
|
|
updateModelParameterProfileRequest,options
|
|
);
|
|
}
|
|
|
|
const generatePrDescription = (
|
|
namespace: string,
|
|
repo: string,
|
|
generatePrDescriptionRequest: GeneratePrDescriptionRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<GeneratePrDescriptionResponse>> => {
|
|
return axiosInstance.post(
|
|
`/api/agents/pr-description/${namespace}/${repo}`,
|
|
generatePrDescriptionRequest,options
|
|
);
|
|
}
|
|
|
|
const modelPricingCreate = (
|
|
createModelPricingRequest: CreateModelPricingRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ModelPricingResponse>> => {
|
|
return axiosInstance.post(
|
|
`/api/agents/pricing`,
|
|
createModelPricingRequest,options
|
|
);
|
|
}
|
|
|
|
const modelPricingGet = (
|
|
id: number, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ModelPricingResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/agents/pricing/${id}`,options
|
|
);
|
|
}
|
|
|
|
const modelPricingDelete = (
|
|
id: number, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.delete(
|
|
`/api/agents/pricing/${id}`,options
|
|
);
|
|
}
|
|
|
|
const modelPricingUpdate = (
|
|
id: number,
|
|
updateModelPricingRequest: UpdateModelPricingRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ModelPricingResponse>> => {
|
|
return axiosInstance.patch(
|
|
`/api/agents/pricing/${id}`,
|
|
updateModelPricingRequest,options
|
|
);
|
|
}
|
|
|
|
const providerList = (
|
|
options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ProviderResponse[]>> => {
|
|
return axiosInstance.get(
|
|
`/api/agents/providers`,options
|
|
);
|
|
}
|
|
|
|
const providerCreate = (
|
|
createProviderRequest: CreateProviderRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ProviderResponse>> => {
|
|
return axiosInstance.post(
|
|
`/api/agents/providers`,
|
|
createProviderRequest,options
|
|
);
|
|
}
|
|
|
|
const providerGet = (
|
|
id: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ProviderResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/agents/providers/${id}`,options
|
|
);
|
|
}
|
|
|
|
const providerDelete = (
|
|
id: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.delete(
|
|
`/api/agents/providers/${id}`,options
|
|
);
|
|
}
|
|
|
|
const providerUpdate = (
|
|
id: string,
|
|
updateProviderRequest: UpdateProviderRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ProviderResponse>> => {
|
|
return axiosInstance.patch(
|
|
`/api/agents/providers/${id}`,
|
|
updateProviderRequest,options
|
|
);
|
|
}
|
|
|
|
const modelVersionList = (
|
|
params?: ModelVersionListParams, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ModelVersionResponse[]>> => {
|
|
return axiosInstance.get(
|
|
`/api/agents/versions`,{
|
|
...options,
|
|
params: {...params, ...options?.params},}
|
|
);
|
|
}
|
|
|
|
const modelVersionCreate = (
|
|
createModelVersionRequest: CreateModelVersionRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ModelVersionResponse>> => {
|
|
return axiosInstance.post(
|
|
`/api/agents/versions`,
|
|
createModelVersionRequest,options
|
|
);
|
|
}
|
|
|
|
const modelVersionGet = (
|
|
id: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ModelVersionResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/agents/versions/${id}`,options
|
|
);
|
|
}
|
|
|
|
const modelVersionDelete = (
|
|
id: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.delete(
|
|
`/api/agents/versions/${id}`,options
|
|
);
|
|
}
|
|
|
|
const modelVersionUpdate = (
|
|
id: string,
|
|
updateModelVersionRequest: UpdateModelVersionRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ModelVersionResponse>> => {
|
|
return axiosInstance.patch(
|
|
`/api/agents/versions/${id}`,
|
|
updateModelVersionRequest,options
|
|
);
|
|
}
|
|
|
|
const modelCapabilityList = (
|
|
modelVersionId: number, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ModelCapabilityResponse[]>> => {
|
|
return axiosInstance.get(
|
|
`/api/agents/versions/${modelVersionId}/capabilities`,options
|
|
);
|
|
}
|
|
|
|
const modelParameterProfileList = (
|
|
modelVersionId: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ModelParameterProfileResponse[]>> => {
|
|
return axiosInstance.get(
|
|
`/api/agents/versions/${modelVersionId}/parameters`,options
|
|
);
|
|
}
|
|
|
|
const modelPricingList = (
|
|
modelVersionId: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ModelPricingResponse[]>> => {
|
|
return axiosInstance.get(
|
|
`/api/agents/versions/${modelVersionId}/pricing`,options
|
|
);
|
|
}
|
|
|
|
const triageIssue = (
|
|
project: string,
|
|
params: TriageIssueParams, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseIssueTriageResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/agents/${project}/triage`,{
|
|
...options,
|
|
params: {...params, ...options?.params},}
|
|
);
|
|
}
|
|
|
|
const aiConversationList = (
|
|
params?: AiConversationListParams, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseVecConversationResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/ai/conversations`,{
|
|
...options,
|
|
params: {...params, ...options?.params},}
|
|
);
|
|
}
|
|
|
|
const aiConversationCreate = (
|
|
createConversationParams: CreateConversationParams, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseConversationResponse>> => {
|
|
return axiosInstance.post(
|
|
`/api/ai/conversations`,
|
|
createConversationParams,options
|
|
);
|
|
}
|
|
|
|
const aiConversationGet = (
|
|
conversationId: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseConversationResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/ai/conversations/${conversationId}`,options
|
|
);
|
|
}
|
|
|
|
const aiConversationDelete = (
|
|
conversationId: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.delete(
|
|
`/api/ai/conversations/${conversationId}`,options
|
|
);
|
|
}
|
|
|
|
const aiConversationUpdate = (
|
|
conversationId: string,
|
|
updateConversationParams: UpdateConversationParams, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.patch(
|
|
`/api/ai/conversations/${conversationId}`,
|
|
updateConversationParams,options
|
|
);
|
|
}
|
|
|
|
const aiMessageList = (
|
|
conversationId: string,
|
|
params?: AiMessageListParams, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseVecMessageResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/ai/conversations/${conversationId}/messages`,{
|
|
...options,
|
|
params: {...params, ...options?.params},}
|
|
);
|
|
}
|
|
|
|
const aiMessageCreate = (
|
|
conversationId: string,
|
|
createMessageParams: CreateMessageParams, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseMessageResponse>> => {
|
|
return axiosInstance.post(
|
|
`/api/ai/conversations/${conversationId}/messages`,
|
|
createMessageParams,options
|
|
);
|
|
}
|
|
|
|
const aiMessageGet = (
|
|
conversationId: string,
|
|
messageId: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseMessageResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/ai/conversations/${conversationId}/messages/${messageId}`,options
|
|
);
|
|
}
|
|
|
|
const aiMessageChildren = (
|
|
conversationId: string,
|
|
messageId: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseVecMessageResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/ai/conversations/${conversationId}/messages/${messageId}/children`,options
|
|
);
|
|
}
|
|
|
|
/**
|
|
* @summary Fork a conversation from a specific message, creating a new conversation
|
|
with all messages up to and including the source message.
|
|
*/
|
|
const aiConversationFork = (
|
|
conversationId: string,
|
|
messageId: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseForkConversationResponse>> => {
|
|
return axiosInstance.post(
|
|
`/api/ai/conversations/${conversationId}/messages/${messageId}/fork`,undefined,options
|
|
);
|
|
}
|
|
|
|
const aiMessageResend = (
|
|
conversationId: string,
|
|
messageId: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseMessageResponse>> => {
|
|
return axiosInstance.post(
|
|
`/api/ai/conversations/${conversationId}/messages/${messageId}/resend`,undefined,options
|
|
);
|
|
}
|
|
|
|
const aiMessageStop = (
|
|
conversationId: string,
|
|
messageId: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.post(
|
|
`/api/ai/conversations/${conversationId}/messages/${messageId}/stop`,undefined,options
|
|
);
|
|
}
|
|
|
|
const messageStream = (
|
|
conversationId: string,
|
|
messageId: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.get(
|
|
`/api/ai/conversations/${conversationId}/messages/${messageId}/stream`,options
|
|
);
|
|
}
|
|
|
|
const aiConversationShare = (
|
|
conversationId: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseShareResponse>> => {
|
|
return axiosInstance.post(
|
|
`/api/ai/conversations/${conversationId}/share`,undefined,options
|
|
);
|
|
}
|
|
|
|
const aiSharedConversationGet = (
|
|
conversationId: string,
|
|
shareToken: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseConversationResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/ai/conversations/${conversationId}/share/${shareToken}`,options
|
|
);
|
|
}
|
|
|
|
const api2faDisable = (
|
|
disable2FAParams: Disable2FAParams, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.post(
|
|
`/api/auth/2fa/disable`,
|
|
disable2FAParams,options
|
|
);
|
|
}
|
|
|
|
const api2faEnable = (
|
|
options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<Enable2FAResponse>> => {
|
|
return axiosInstance.post(
|
|
`/api/auth/2fa/enable`,undefined,options
|
|
);
|
|
}
|
|
|
|
const api2faStatus = (
|
|
options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<Get2FAStatusResponse>> => {
|
|
return axiosInstance.post(
|
|
`/api/auth/2fa/status`,undefined,options
|
|
);
|
|
}
|
|
|
|
const api2faVerify = (
|
|
verify2FAParams: Verify2FAParams, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.post(
|
|
`/api/auth/2fa/verify`,
|
|
verify2FAParams,options
|
|
);
|
|
}
|
|
|
|
const apiAuthCaptcha = (
|
|
captchaQuery: CaptchaQuery, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseCaptchaResponse>> => {
|
|
return axiosInstance.post(
|
|
`/api/auth/captcha`,
|
|
captchaQuery,options
|
|
);
|
|
}
|
|
|
|
const apiEmailGet = (
|
|
options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseEmailResponse>> => {
|
|
return axiosInstance.post(
|
|
`/api/auth/email`,undefined,options
|
|
);
|
|
}
|
|
|
|
const apiEmailChange = (
|
|
emailChangeRequest: EmailChangeRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseString>> => {
|
|
return axiosInstance.post(
|
|
`/api/auth/email/change`,
|
|
emailChangeRequest,options
|
|
);
|
|
}
|
|
|
|
const apiEmailVerify = (
|
|
emailVerifyRequest: EmailVerifyRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseString>> => {
|
|
return axiosInstance.post(
|
|
`/api/auth/email/verify`,
|
|
emailVerifyRequest,options
|
|
);
|
|
}
|
|
|
|
const apiAuthLogin = (
|
|
loginParams: LoginParams, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseString>> => {
|
|
return axiosInstance.post(
|
|
`/api/auth/login`,
|
|
loginParams,options
|
|
);
|
|
}
|
|
|
|
const apiAuthLogout = (
|
|
options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseString>> => {
|
|
return axiosInstance.post(
|
|
`/api/auth/logout`,undefined,options
|
|
);
|
|
}
|
|
|
|
const apiAuthMe = (
|
|
options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseContextMe>> => {
|
|
return axiosInstance.post(
|
|
`/api/auth/me`,undefined,options
|
|
);
|
|
}
|
|
|
|
const apiUserChangePassword = (
|
|
changePasswordParams: ChangePasswordParams, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseString>> => {
|
|
return axiosInstance.post(
|
|
`/api/auth/password/change`,
|
|
changePasswordParams,options
|
|
);
|
|
}
|
|
|
|
const apiUserConfirmPasswordReset = (
|
|
confirmResetPasswordParams: ConfirmResetPasswordParams, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseString>> => {
|
|
return axiosInstance.post(
|
|
`/api/auth/password/confirm`,
|
|
confirmResetPasswordParams,options
|
|
);
|
|
}
|
|
|
|
const apiUserRequestPasswordReset = (
|
|
resetPasswordParams: ResetPasswordParams, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseString>> => {
|
|
return axiosInstance.post(
|
|
`/api/auth/password/reset`,
|
|
resetPasswordParams,options
|
|
);
|
|
}
|
|
|
|
const apiAuthRegister = (
|
|
registerParams: RegisterParams, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseApiError>> => {
|
|
return axiosInstance.post(
|
|
`/api/auth/register`,
|
|
registerParams,options
|
|
);
|
|
}
|
|
|
|
const gitInitBare = (
|
|
gitInitRequest: GitInitRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseGitInitResponse>> => {
|
|
return axiosInstance.post(
|
|
`/api/git/init`,
|
|
gitInitRequest,options
|
|
);
|
|
}
|
|
|
|
const gitIsRepo = (
|
|
path: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseBool>> => {
|
|
return axiosInstance.get(
|
|
`/api/git/is-repo/${path}`,options
|
|
);
|
|
}
|
|
|
|
const gitOpen = (
|
|
path: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseGitInitResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/git/open/${path}`,options
|
|
);
|
|
}
|
|
|
|
const gitOpenBare = (
|
|
path: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseGitInitResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/git/open/${path}/bare`,options
|
|
);
|
|
}
|
|
|
|
const issueList = (
|
|
project: string,
|
|
params?: IssueListParams, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseIssueListResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/issue/${project}/issues`,{
|
|
...options,
|
|
params: {...params, ...options?.params},}
|
|
);
|
|
}
|
|
|
|
const issueCreate = (
|
|
project: string,
|
|
issueCreateRequest: IssueCreateRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseIssueResponse>> => {
|
|
return axiosInstance.post(
|
|
`/api/issue/${project}/issues`,
|
|
issueCreateRequest,options
|
|
);
|
|
}
|
|
|
|
const issueSummary = (
|
|
project: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseIssueSummaryResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/issue/${project}/issues/summary`,options
|
|
);
|
|
}
|
|
|
|
const issueGet = (
|
|
project: string,
|
|
number: number, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseIssueResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/issue/${project}/issues/${number}`,options
|
|
);
|
|
}
|
|
|
|
const issueDelete = (
|
|
project: string,
|
|
number: number, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.delete(
|
|
`/api/issue/${project}/issues/${number}`,options
|
|
);
|
|
}
|
|
|
|
const issueUpdate = (
|
|
project: string,
|
|
number: number,
|
|
issueUpdateRequest: IssueUpdateRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseIssueResponse>> => {
|
|
return axiosInstance.patch(
|
|
`/api/issue/${project}/issues/${number}`,
|
|
issueUpdateRequest,options
|
|
);
|
|
}
|
|
|
|
const issueAssigneeList = (
|
|
project: string,
|
|
number: number, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseVecIssueAssigneeResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/issue/${project}/issues/${number}/assignees`,options
|
|
);
|
|
}
|
|
|
|
const issueAssigneeAdd = (
|
|
project: string,
|
|
number: number,
|
|
issueAssignUserRequest: IssueAssignUserRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseIssueAssigneeResponse>> => {
|
|
return axiosInstance.post(
|
|
`/api/issue/${project}/issues/${number}/assignees`,
|
|
issueAssignUserRequest,options
|
|
);
|
|
}
|
|
|
|
const issueAssigneeRemove = (
|
|
project: string,
|
|
number: number,
|
|
assigneeId: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.delete(
|
|
`/api/issue/${project}/issues/${number}/assignees/${assigneeId}`,options
|
|
);
|
|
}
|
|
|
|
const issueClose = (
|
|
project: string,
|
|
number: number, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseIssueResponse>> => {
|
|
return axiosInstance.post(
|
|
`/api/issue/${project}/issues/${number}/close`,undefined,options
|
|
);
|
|
}
|
|
|
|
const issueCommentList = (
|
|
project: string,
|
|
number: number,
|
|
params?: IssueCommentListParams, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseIssueCommentListResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/issue/${project}/issues/${number}/comments`,{
|
|
...options,
|
|
params: {...params, ...options?.params},}
|
|
);
|
|
}
|
|
|
|
const issueCommentCreate = (
|
|
project: string,
|
|
number: number,
|
|
issueCommentCreateRequest: IssueCommentCreateRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseIssueCommentResponse>> => {
|
|
return axiosInstance.post(
|
|
`/api/issue/${project}/issues/${number}/comments`,
|
|
issueCommentCreateRequest,options
|
|
);
|
|
}
|
|
|
|
const issueCommentGet = (
|
|
project: string,
|
|
number: number,
|
|
commentId: number, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseIssueCommentResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/issue/${project}/issues/${number}/comments/${commentId}`,options
|
|
);
|
|
}
|
|
|
|
const issueCommentDelete = (
|
|
project: string,
|
|
number: number,
|
|
commentId: number, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.delete(
|
|
`/api/issue/${project}/issues/${number}/comments/${commentId}`,options
|
|
);
|
|
}
|
|
|
|
const issueCommentUpdate = (
|
|
project: string,
|
|
number: number,
|
|
commentId: number,
|
|
issueCommentUpdateRequest: IssueCommentUpdateRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseIssueCommentResponse>> => {
|
|
return axiosInstance.patch(
|
|
`/api/issue/${project}/issues/${number}/comments/${commentId}`,
|
|
issueCommentUpdateRequest,options
|
|
);
|
|
}
|
|
|
|
const issueCommentReactionList = (
|
|
project: string,
|
|
number: number,
|
|
commentId: number, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseReactionListResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/issue/${project}/issues/${number}/comments/${commentId}/reactions`,options
|
|
);
|
|
}
|
|
|
|
const issueCommentReactionAdd = (
|
|
project: string,
|
|
number: number,
|
|
commentId: number,
|
|
reactionAddRequest: ReactionAddRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseReactionResponse>> => {
|
|
return axiosInstance.post(
|
|
`/api/issue/${project}/issues/${number}/comments/${commentId}/reactions`,
|
|
reactionAddRequest,options
|
|
);
|
|
}
|
|
|
|
const issueCommentReactionRemove = (
|
|
project: string,
|
|
number: number,
|
|
commentId: number,
|
|
reaction: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.delete(
|
|
`/api/issue/${project}/issues/${number}/comments/${commentId}/reactions/${reaction}`,options
|
|
);
|
|
}
|
|
|
|
const issueLabelList = (
|
|
project: string,
|
|
number: number, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseVecIssueLabelResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/issue/${project}/issues/${number}/labels`,options
|
|
);
|
|
}
|
|
|
|
const issueLabelAdd = (
|
|
project: string,
|
|
number: number,
|
|
issueAddLabelRequest: IssueAddLabelRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseIssueLabelResponse>> => {
|
|
return axiosInstance.post(
|
|
`/api/issue/${project}/issues/${number}/labels`,
|
|
issueAddLabelRequest,options
|
|
);
|
|
}
|
|
|
|
const issueLabelAddBulk = (
|
|
project: string,
|
|
number: number,
|
|
issueAddLabelsByNamesRequest: IssueAddLabelsByNamesRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseVecIssueLabelResponse>> => {
|
|
return axiosInstance.post(
|
|
`/api/issue/${project}/issues/${number}/labels/bulk`,
|
|
issueAddLabelsByNamesRequest,options
|
|
);
|
|
}
|
|
|
|
const issueLabelRemove = (
|
|
project: string,
|
|
number: number,
|
|
labelId: number, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.delete(
|
|
`/api/issue/${project}/issues/${number}/labels/${labelId}`,options
|
|
);
|
|
}
|
|
|
|
const issuePullRequestList = (
|
|
project: string,
|
|
number: number, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseVecIssuePullRequestResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/issue/${project}/issues/${number}/pulls`,options
|
|
);
|
|
}
|
|
|
|
const issuePullRequestLink = (
|
|
project: string,
|
|
number: number,
|
|
issueLinkPullRequestRequest: IssueLinkPullRequestRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseIssuePullRequestResponse>> => {
|
|
return axiosInstance.post(
|
|
`/api/issue/${project}/issues/${number}/pulls`,
|
|
issueLinkPullRequestRequest,options
|
|
);
|
|
}
|
|
|
|
const issuePullRequestUnlink = (
|
|
project: string,
|
|
number: number,
|
|
repoId: string,
|
|
prNumber: number, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.delete(
|
|
`/api/issue/${project}/issues/${number}/pulls/${repoId}/${prNumber}`,options
|
|
);
|
|
}
|
|
|
|
const issueReactionList = (
|
|
project: string,
|
|
number: number, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseReactionListResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/issue/${project}/issues/${number}/reactions`,options
|
|
);
|
|
}
|
|
|
|
const issueReactionAdd = (
|
|
project: string,
|
|
number: number,
|
|
reactionAddRequest: ReactionAddRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseReactionResponse>> => {
|
|
return axiosInstance.post(
|
|
`/api/issue/${project}/issues/${number}/reactions`,
|
|
reactionAddRequest,options
|
|
);
|
|
}
|
|
|
|
const issueReactionRemove = (
|
|
project: string,
|
|
number: number,
|
|
reaction: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.delete(
|
|
`/api/issue/${project}/issues/${number}/reactions/${reaction}`,options
|
|
);
|
|
}
|
|
|
|
const issueReopen = (
|
|
project: string,
|
|
number: number, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseIssueResponse>> => {
|
|
return axiosInstance.post(
|
|
`/api/issue/${project}/issues/${number}/reopen`,undefined,options
|
|
);
|
|
}
|
|
|
|
const issueRepoList = (
|
|
project: string,
|
|
number: number, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseVecIssueRepoResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/issue/${project}/issues/${number}/repos`,options
|
|
);
|
|
}
|
|
|
|
const issueRepoLink = (
|
|
project: string,
|
|
number: number,
|
|
issueLinkRepoRequest: IssueLinkRepoRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseIssueRepoResponse>> => {
|
|
return axiosInstance.post(
|
|
`/api/issue/${project}/issues/${number}/repos`,
|
|
issueLinkRepoRequest,options
|
|
);
|
|
}
|
|
|
|
const issueRepoUnlink = (
|
|
project: string,
|
|
number: number,
|
|
repoId: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.delete(
|
|
`/api/issue/${project}/issues/${number}/repos/${repoId}`,options
|
|
);
|
|
}
|
|
|
|
const issueSubscribe = (
|
|
project: string,
|
|
number: number, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseIssueSubscriberResponse>> => {
|
|
return axiosInstance.post(
|
|
`/api/issue/${project}/issues/${number}/subscribe`,undefined,options
|
|
);
|
|
}
|
|
|
|
const issueUnsubscribe = (
|
|
project: string,
|
|
number: number, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.delete(
|
|
`/api/issue/${project}/issues/${number}/subscribe`,options
|
|
);
|
|
}
|
|
|
|
const issueSubscriberList = (
|
|
project: string,
|
|
number: number, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseVecIssueSubscriberResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/issue/${project}/issues/${number}/subscribers`,options
|
|
);
|
|
}
|
|
|
|
const labelList = (
|
|
project: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseVecLabelResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/issue/${project}/labels`,options
|
|
);
|
|
}
|
|
|
|
const labelCreate = (
|
|
project: string,
|
|
createLabelRequest: CreateLabelRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseLabelResponse>> => {
|
|
return axiosInstance.post(
|
|
`/api/issue/${project}/labels`,
|
|
createLabelRequest,options
|
|
);
|
|
}
|
|
|
|
const labelDelete = (
|
|
project: string,
|
|
labelId: number, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.delete(
|
|
`/api/issue/${project}/labels/${labelId}`,options
|
|
);
|
|
}
|
|
|
|
const mentionList = (
|
|
params?: MentionListParams, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseVecMentionNotificationResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/me/mentions`,{
|
|
...options,
|
|
params: {...params, ...options?.params},}
|
|
);
|
|
}
|
|
|
|
const mentionReadAll = (
|
|
options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.post(
|
|
`/api/me/mentions/read-all`,undefined,options
|
|
);
|
|
}
|
|
|
|
const notificationList = (
|
|
params?: NotificationListParams, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseNotificationListResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/me/notifications`,{
|
|
...options,
|
|
params: {...params, ...options?.params},}
|
|
);
|
|
}
|
|
|
|
const notificationMarkAllRead = (
|
|
options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.post(
|
|
`/api/me/notifications/read-all`,undefined,options
|
|
);
|
|
}
|
|
|
|
const notificationArchive = (
|
|
notificationId: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.post(
|
|
`/api/me/notifications/${notificationId}/archive`,undefined,options
|
|
);
|
|
}
|
|
|
|
const notificationMarkRead = (
|
|
notificationId: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.post(
|
|
`/api/me/notifications/${notificationId}/read`,undefined,options
|
|
);
|
|
}
|
|
|
|
const projectPresence = (
|
|
projectId: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseVecPresenceChanged>> => {
|
|
return axiosInstance.get(
|
|
`/api/project/${projectId}/presence`,options
|
|
);
|
|
}
|
|
|
|
const categoryList = (
|
|
projectName: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseVecRoomCategoryResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/project_room/${projectName}/room-categories`,options
|
|
);
|
|
}
|
|
|
|
const categoryCreate = (
|
|
projectName: string,
|
|
roomCategoryCreateRequest: RoomCategoryCreateRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseRoomCategoryResponse>> => {
|
|
return axiosInstance.post(
|
|
`/api/project_room/${projectName}/room-categories`,
|
|
roomCategoryCreateRequest,options
|
|
);
|
|
}
|
|
|
|
const roomList = (
|
|
projectName: string,
|
|
params?: RoomListParams, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseVecRoomResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/project_room/${projectName}/rooms`,{
|
|
...options,
|
|
params: {...params, ...options?.params},}
|
|
);
|
|
}
|
|
|
|
const roomCreate = (
|
|
projectName: string,
|
|
roomCreateRequest: RoomCreateRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseRoomResponse>> => {
|
|
return axiosInstance.post(
|
|
`/api/project_room/${projectName}/rooms`,
|
|
roomCreateRequest,options
|
|
);
|
|
}
|
|
|
|
const projectCreate = (
|
|
projectInitParams: ProjectInitParams, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseProjectInitResponse>> => {
|
|
return axiosInstance.post(
|
|
`/api/projects`,
|
|
projectInitParams,options
|
|
);
|
|
}
|
|
|
|
const projectMyInvitations = (
|
|
options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseInvitationListResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/projects/me/invitations`,options
|
|
);
|
|
}
|
|
|
|
const projectMyJoinRequests = (
|
|
options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseJoinRequestListResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/projects/me/join-requests`,options
|
|
);
|
|
}
|
|
|
|
const projectInfo = (
|
|
projectName: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseProjectInfoRelational>> => {
|
|
return axiosInstance.get(
|
|
`/api/projects/${projectName}`,options
|
|
);
|
|
}
|
|
|
|
const projectActivities = (
|
|
projectName: string,
|
|
params?: ProjectActivitiesParams, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseActivityLogListResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/projects/${projectName}/activities`,{
|
|
...options,
|
|
params: {...params, ...options?.params},}
|
|
);
|
|
}
|
|
|
|
const projectLogActivity = (
|
|
projectName: string,
|
|
activityLogParams: ActivityLogParams, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseActivityLogResponse>> => {
|
|
return axiosInstance.post(
|
|
`/api/projects/${projectName}/activities`,
|
|
activityLogParams,options
|
|
);
|
|
}
|
|
|
|
const projectAuditLogs = (
|
|
projectName: string,
|
|
params?: ProjectAuditLogsParams, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseVecAuditLogResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/projects/${projectName}/audit-logs`,{
|
|
...options,
|
|
params: {...params, ...options?.params},}
|
|
);
|
|
}
|
|
|
|
const projectLogAudit = (
|
|
projectName: string,
|
|
auditLogParams: AuditLogParams, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseAuditLogResponse>> => {
|
|
return axiosInstance.post(
|
|
`/api/projects/${projectName}/audit-logs`,
|
|
auditLogParams,options
|
|
);
|
|
}
|
|
|
|
const projectAuditLog = (
|
|
projectName: string,
|
|
logId: number, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseAuditLogResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/projects/${projectName}/audit-logs/${logId}`,options
|
|
);
|
|
}
|
|
|
|
const projectBilling = (
|
|
projectName: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseProjectBillingCurrentResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/projects/${projectName}/billing`,options
|
|
);
|
|
}
|
|
|
|
const projectBillingErrors = (
|
|
projectName: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseBillingErrorsResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/projects/${projectName}/billing/errors`,options
|
|
);
|
|
}
|
|
|
|
const projectBillingHistory = (
|
|
projectName: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseProjectBillingHistoryResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/projects/${projectName}/billing/history`,options
|
|
);
|
|
}
|
|
|
|
const boardList = (
|
|
projectName: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseVecBoardResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/projects/${projectName}/boards`,options
|
|
);
|
|
}
|
|
|
|
const boardCreate = (
|
|
projectName: string,
|
|
createBoardParams: CreateBoardParams, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseBoardResponse>> => {
|
|
return axiosInstance.post(
|
|
`/api/projects/${projectName}/boards`,
|
|
createBoardParams,options
|
|
);
|
|
}
|
|
|
|
const boardGet = (
|
|
projectName: string,
|
|
boardId: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseBoardWithColumnsResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/projects/${projectName}/boards/${boardId}`,options
|
|
);
|
|
}
|
|
|
|
const boardDelete = (
|
|
projectName: string,
|
|
boardId: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.delete(
|
|
`/api/projects/${projectName}/boards/${boardId}`,options
|
|
);
|
|
}
|
|
|
|
const boardUpdate = (
|
|
projectName: string,
|
|
boardId: string,
|
|
updateBoardParams: UpdateBoardParams, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseBoardResponse>> => {
|
|
return axiosInstance.patch(
|
|
`/api/projects/${projectName}/boards/${boardId}`,
|
|
updateBoardParams,options
|
|
);
|
|
}
|
|
|
|
const columnCreate = (
|
|
projectName: string,
|
|
boardId: string,
|
|
createColumnParams: CreateColumnParams, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseColumnResponse>> => {
|
|
return axiosInstance.post(
|
|
`/api/projects/${projectName}/boards/${boardId}/columns`,
|
|
createColumnParams,options
|
|
);
|
|
}
|
|
|
|
const cardCreate = (
|
|
projectName: string,
|
|
createCardParams: CreateCardParams, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseCardResponse>> => {
|
|
return axiosInstance.post(
|
|
`/api/projects/${projectName}/cards`,
|
|
createCardParams,options
|
|
);
|
|
}
|
|
|
|
const cardDelete = (
|
|
projectName: string,
|
|
cardId: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.delete(
|
|
`/api/projects/${projectName}/cards/${cardId}`,options
|
|
);
|
|
}
|
|
|
|
const cardUpdate = (
|
|
projectName: string,
|
|
cardId: string,
|
|
updateCardParams: UpdateCardParams, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseCardResponse>> => {
|
|
return axiosInstance.patch(
|
|
`/api/projects/${projectName}/cards/${cardId}`,
|
|
updateCardParams,options
|
|
);
|
|
}
|
|
|
|
const cardMove = (
|
|
projectName: string,
|
|
cardId: string,
|
|
moveCardParams: MoveCardParams, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseCardResponse>> => {
|
|
return axiosInstance.post(
|
|
`/api/projects/${projectName}/cards/${cardId}/move`,
|
|
moveCardParams,options
|
|
);
|
|
}
|
|
|
|
const columnDelete = (
|
|
projectName: string,
|
|
columnId: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.delete(
|
|
`/api/projects/${projectName}/columns/${columnId}`,options
|
|
);
|
|
}
|
|
|
|
const columnUpdate = (
|
|
projectName: string,
|
|
columnId: string,
|
|
updateColumnParams: UpdateColumnParams, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseColumnResponse>> => {
|
|
return axiosInstance.patch(
|
|
`/api/projects/${projectName}/columns/${columnId}`,
|
|
updateColumnParams,options
|
|
);
|
|
}
|
|
|
|
const projectInvitations = (
|
|
projectName: string,
|
|
params?: ProjectInvitationsParams, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseInvitationListResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/projects/${projectName}/invitations`,{
|
|
...options,
|
|
params: {...params, ...options?.params},}
|
|
);
|
|
}
|
|
|
|
const projectInviteUser = (
|
|
projectName: string,
|
|
inviteUserRequest: InviteUserRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.post(
|
|
`/api/projects/${projectName}/invitations`,
|
|
inviteUserRequest,options
|
|
);
|
|
}
|
|
|
|
const projectAcceptInvitation = (
|
|
projectName: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.post(
|
|
`/api/projects/${projectName}/invitations/accept`,undefined,options
|
|
);
|
|
}
|
|
|
|
const projectRejectInvitation = (
|
|
projectName: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.post(
|
|
`/api/projects/${projectName}/invitations/reject`,undefined,options
|
|
);
|
|
}
|
|
|
|
const projectCancelInvitation = (
|
|
projectName: string,
|
|
userId: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.delete(
|
|
`/api/projects/${projectName}/invitations/${userId}`,options
|
|
);
|
|
}
|
|
|
|
const projectJoinRequests = (
|
|
projectName: string,
|
|
params?: ProjectJoinRequestsParams, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseJoinRequestListResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/projects/${projectName}/join-requests`,{
|
|
...options,
|
|
params: {...params, ...options?.params},}
|
|
);
|
|
}
|
|
|
|
const projectSubmitJoinRequest = (
|
|
projectName: string,
|
|
submitJoinRequest: SubmitJoinRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.post(
|
|
`/api/projects/${projectName}/join-requests`,
|
|
submitJoinRequest,options
|
|
);
|
|
}
|
|
|
|
const projectCancelJoinRequest = (
|
|
projectName: string,
|
|
requestId: number, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.delete(
|
|
`/api/projects/${projectName}/join-requests/${requestId}`,options
|
|
);
|
|
}
|
|
|
|
const projectProcessJoinRequest = (
|
|
projectName: string,
|
|
requestId: number,
|
|
processJoinRequest: ProcessJoinRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.patch(
|
|
`/api/projects/${projectName}/join-requests/${requestId}`,
|
|
processJoinRequest,options
|
|
);
|
|
}
|
|
|
|
const projectJoinAnswers = (
|
|
projectName: string,
|
|
requestId: number, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseJoinAnswersListResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/projects/${projectName}/join-requests/${requestId}/answers`,options
|
|
);
|
|
}
|
|
|
|
const projectSubmitJoinAnswers = (
|
|
projectName: string,
|
|
requestId: number,
|
|
answerRequest: AnswerRequest[], options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.post(
|
|
`/api/projects/${projectName}/join-requests/${requestId}/answers`,
|
|
answerRequest,options
|
|
);
|
|
}
|
|
|
|
const projectJoinSettings = (
|
|
projectName: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseJoinSettingsResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/projects/${projectName}/join-settings`,options
|
|
);
|
|
}
|
|
|
|
const projectUpdateJoinSettings = (
|
|
projectName: string,
|
|
updateJoinSettingsRequest: UpdateJoinSettingsRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseJoinSettingsResponse>> => {
|
|
return axiosInstance.patch(
|
|
`/api/projects/${projectName}/join-settings`,
|
|
updateJoinSettingsRequest,options
|
|
);
|
|
}
|
|
|
|
const projectLabels = (
|
|
projectName: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseLabelListResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/projects/${projectName}/labels`,options
|
|
);
|
|
}
|
|
|
|
const projectCreateLabel = (
|
|
projectName: string,
|
|
createLabelParams: CreateLabelParams, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseLabelResponse>> => {
|
|
return axiosInstance.post(
|
|
`/api/projects/${projectName}/labels`,
|
|
createLabelParams,options
|
|
);
|
|
}
|
|
|
|
const projectGetLabel = (
|
|
projectName: string,
|
|
labelId: number, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseLabelResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/projects/${projectName}/labels/${labelId}`,options
|
|
);
|
|
}
|
|
|
|
const projectDeleteLabel = (
|
|
projectName: string,
|
|
labelId: number, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.delete(
|
|
`/api/projects/${projectName}/labels/${labelId}`,options
|
|
);
|
|
}
|
|
|
|
const projectUpdateLabel = (
|
|
projectName: string,
|
|
labelId: number,
|
|
updateLabelParams: UpdateLabelParams, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseLabelResponse>> => {
|
|
return axiosInstance.patch(
|
|
`/api/projects/${projectName}/labels/${labelId}`,
|
|
updateLabelParams,options
|
|
);
|
|
}
|
|
|
|
const projectIsLike = (
|
|
projectName: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseIsLikeResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/projects/${projectName}/like`,options
|
|
);
|
|
}
|
|
|
|
const projectLike = (
|
|
projectName: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.post(
|
|
`/api/projects/${projectName}/like`,undefined,options
|
|
);
|
|
}
|
|
|
|
const projectUnlike = (
|
|
projectName: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.delete(
|
|
`/api/projects/${projectName}/like`,options
|
|
);
|
|
}
|
|
|
|
const projectLikesCount = (
|
|
projectName: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.get(
|
|
`/api/projects/${projectName}/likes/count`,options
|
|
);
|
|
}
|
|
|
|
const projectLikeUsers = (
|
|
projectName: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseVecLikeUserInfo>> => {
|
|
return axiosInstance.get(
|
|
`/api/projects/${projectName}/likes/users`,options
|
|
);
|
|
}
|
|
|
|
const projectMembers = (
|
|
projectName: string,
|
|
params?: ProjectMembersParams, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseMemberListResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/projects/${projectName}/members`,{
|
|
...options,
|
|
params: {...params, ...options?.params},}
|
|
);
|
|
}
|
|
|
|
const projectMembersGrouped = (
|
|
projectName: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseGroupedMemberListResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/projects/${projectName}/members/grouped`,options
|
|
);
|
|
}
|
|
|
|
const projectUpdateMemberRole = (
|
|
projectName: string,
|
|
updateMemberRoleRequest: UpdateMemberRoleRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.patch(
|
|
`/api/projects/${projectName}/members/role`,
|
|
updateMemberRoleRequest,options
|
|
);
|
|
}
|
|
|
|
const projectRemoveMember = (
|
|
projectName: string,
|
|
userId: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.delete(
|
|
`/api/projects/${projectName}/members/${userId}`,options
|
|
);
|
|
}
|
|
|
|
const projectRepos = (
|
|
projectName: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseProjectRepositoryPagination>> => {
|
|
return axiosInstance.get(
|
|
`/api/projects/${projectName}/repos`,options
|
|
);
|
|
}
|
|
|
|
const projectRepoCreate = (
|
|
projectName: string,
|
|
projectRepoCreateParams: ProjectRepoCreateParams, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseProjectRepoCreateResponse>> => {
|
|
return axiosInstance.post(
|
|
`/api/projects/${projectName}/repos`,
|
|
projectRepoCreateParams,options
|
|
);
|
|
}
|
|
|
|
const projectRolePriorities = (
|
|
projectName: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseRolePriorityListResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/projects/${projectName}/role-priorities`,options
|
|
);
|
|
}
|
|
|
|
const projectUpsertRolePriority = (
|
|
projectName: string,
|
|
upsertRolePriorityRequest: UpsertRolePriorityRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseRolePriorityInfo>> => {
|
|
return axiosInstance.post(
|
|
`/api/projects/${projectName}/role-priorities`,
|
|
upsertRolePriorityRequest,options
|
|
);
|
|
}
|
|
|
|
const projectDeleteRolePriority = (
|
|
projectName: string,
|
|
roleKey: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.delete(
|
|
`/api/projects/${projectName}/role-priorities/${roleKey}`,options
|
|
);
|
|
}
|
|
|
|
const projectExchangeName = (
|
|
projectName: string,
|
|
exchangeProjectName: ExchangeProjectName, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.patch(
|
|
`/api/projects/${projectName}/settings/name`,
|
|
exchangeProjectName,options
|
|
);
|
|
}
|
|
|
|
const projectExchangeTitle = (
|
|
projectName: string,
|
|
exchangeProjectTitle: ExchangeProjectTitle, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.patch(
|
|
`/api/projects/${projectName}/settings/title`,
|
|
exchangeProjectTitle,options
|
|
);
|
|
}
|
|
|
|
const projectExchangeVisibility = (
|
|
projectName: string,
|
|
exchangeProjectVisibility: ExchangeProjectVisibility, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.patch(
|
|
`/api/projects/${projectName}/settings/visibility`,
|
|
exchangeProjectVisibility,options
|
|
);
|
|
}
|
|
|
|
const skillList = (
|
|
projectName: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseVecSkillResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/projects/${projectName}/skills`,options
|
|
);
|
|
}
|
|
|
|
const skillCreate = (
|
|
projectName: string,
|
|
createSkillRequest: CreateSkillRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseSkillResponse>> => {
|
|
return axiosInstance.post(
|
|
`/api/projects/${projectName}/skills`,
|
|
createSkillRequest,options
|
|
);
|
|
}
|
|
|
|
const skillScan = (
|
|
projectName: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseScanResponse>> => {
|
|
return axiosInstance.post(
|
|
`/api/projects/${projectName}/skills/scan`,undefined,options
|
|
);
|
|
}
|
|
|
|
const skillGet = (
|
|
projectName: string,
|
|
slug: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseSkillResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/projects/${projectName}/skills/${slug}`,options
|
|
);
|
|
}
|
|
|
|
const skillDelete = (
|
|
projectName: string,
|
|
slug: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseDeleteSkillResponse>> => {
|
|
return axiosInstance.delete(
|
|
`/api/projects/${projectName}/skills/${slug}`,options
|
|
);
|
|
}
|
|
|
|
const skillUpdate = (
|
|
projectName: string,
|
|
slug: string,
|
|
updateSkillRequest: UpdateSkillRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseSkillResponse>> => {
|
|
return axiosInstance.patch(
|
|
`/api/projects/${projectName}/skills/${slug}`,
|
|
updateSkillRequest,options
|
|
);
|
|
}
|
|
|
|
const projectStats = (
|
|
projectName: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseProjectStatsResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/projects/${projectName}/stats`,options
|
|
);
|
|
}
|
|
|
|
const projectIsWatch = (
|
|
projectName: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseIsWatchResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/projects/${projectName}/watch`,options
|
|
);
|
|
}
|
|
|
|
const projectWatch = (
|
|
projectName: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.post(
|
|
`/api/projects/${projectName}/watch`,undefined,options
|
|
);
|
|
}
|
|
|
|
const projectUnwatch = (
|
|
projectName: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.delete(
|
|
`/api/projects/${projectName}/watch`,options
|
|
);
|
|
}
|
|
|
|
const projectWatchesCount = (
|
|
projectName: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.get(
|
|
`/api/projects/${projectName}/watches/count`,options
|
|
);
|
|
}
|
|
|
|
const projectWatchUsers = (
|
|
projectName: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseVecWatchUserInfo>> => {
|
|
return axiosInstance.get(
|
|
`/api/projects/${projectName}/watches/users`,options
|
|
);
|
|
}
|
|
|
|
const projectTransferRepo = (
|
|
sourceProject: string,
|
|
repoName: string,
|
|
transferRepoParams: TransferRepoParams, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseTransferRepoResponse>> => {
|
|
return axiosInstance.post(
|
|
`/api/projects/${sourceProject}/repos/${repoName}/transfer`,
|
|
transferRepoParams,options
|
|
);
|
|
}
|
|
|
|
const pullRequestList = (
|
|
namespace: string,
|
|
repo: string,
|
|
params?: PullRequestListParams, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponsePullRequestListResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repo_pr/${namespace}/${repo}/pulls`,{
|
|
...options,
|
|
params: {...params, ...options?.params},}
|
|
);
|
|
}
|
|
|
|
const pullRequestCreate = (
|
|
namespace: string,
|
|
repo: string,
|
|
pullRequestCreateRequest: PullRequestCreateRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponsePullRequestResponse>> => {
|
|
return axiosInstance.post(
|
|
`/api/repo_pr/${namespace}/${repo}/pulls`,
|
|
pullRequestCreateRequest,options
|
|
);
|
|
}
|
|
|
|
const pullRequestSummary = (
|
|
namespace: string,
|
|
repo: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponsePullRequestSummaryResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repo_pr/${namespace}/${repo}/pulls/summary`,options
|
|
);
|
|
}
|
|
|
|
const pullRequestGet = (
|
|
namespace: string,
|
|
repo: string,
|
|
number: number, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponsePullRequestResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repo_pr/${namespace}/${repo}/pulls/${number}`,options
|
|
);
|
|
}
|
|
|
|
const pullRequestDelete = (
|
|
namespace: string,
|
|
repo: string,
|
|
number: number, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.delete(
|
|
`/api/repo_pr/${namespace}/${repo}/pulls/${number}`,options
|
|
);
|
|
}
|
|
|
|
const pullRequestUpdate = (
|
|
namespace: string,
|
|
repo: string,
|
|
number: number,
|
|
pullRequestUpdateRequest: PullRequestUpdateRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponsePullRequestResponse>> => {
|
|
return axiosInstance.patch(
|
|
`/api/repo_pr/${namespace}/${repo}/pulls/${number}`,
|
|
pullRequestUpdateRequest,options
|
|
);
|
|
}
|
|
|
|
const pullRequestClose = (
|
|
namespace: string,
|
|
repo: string,
|
|
number: number, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponsePullRequestResponse>> => {
|
|
return axiosInstance.post(
|
|
`/api/repo_pr/${namespace}/${repo}/pulls/${number}/close`,undefined,options
|
|
);
|
|
}
|
|
|
|
const pullRequestReopen = (
|
|
namespace: string,
|
|
repo: string,
|
|
number: number, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponsePullRequestResponse>> => {
|
|
return axiosInstance.post(
|
|
`/api/repo_pr/${namespace}/${repo}/pulls/${number}/reopen`,undefined,options
|
|
);
|
|
}
|
|
|
|
const reviewCommentList = (
|
|
namespace: string,
|
|
repo: string,
|
|
prNumber: number,
|
|
params?: ReviewCommentListParams, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseReviewCommentListResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repo_pr/${namespace}/${repo}/pulls/${prNumber}/comments`,{
|
|
...options,
|
|
params: {...params, ...options?.params},}
|
|
);
|
|
}
|
|
|
|
const reviewCommentCreate = (
|
|
namespace: string,
|
|
repo: string,
|
|
prNumber: number,
|
|
reviewCommentCreateRequest: ReviewCommentCreateRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseReviewCommentResponse>> => {
|
|
return axiosInstance.post(
|
|
`/api/repo_pr/${namespace}/${repo}/pulls/${prNumber}/comments`,
|
|
reviewCommentCreateRequest,options
|
|
);
|
|
}
|
|
|
|
const reviewCommentDelete = (
|
|
namespace: string,
|
|
repo: string,
|
|
prNumber: number,
|
|
commentId: number, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.delete(
|
|
`/api/repo_pr/${namespace}/${repo}/pulls/${prNumber}/comments/${commentId}`,options
|
|
);
|
|
}
|
|
|
|
const reviewCommentUpdate = (
|
|
namespace: string,
|
|
repo: string,
|
|
prNumber: number,
|
|
commentId: number,
|
|
reviewCommentUpdateRequest: ReviewCommentUpdateRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseReviewCommentResponse>> => {
|
|
return axiosInstance.patch(
|
|
`/api/repo_pr/${namespace}/${repo}/pulls/${prNumber}/comments/${commentId}`,
|
|
reviewCommentUpdateRequest,options
|
|
);
|
|
}
|
|
|
|
const reviewCommentReply = (
|
|
namespace: string,
|
|
repo: string,
|
|
prNumber: number,
|
|
commentId: number,
|
|
reviewCommentReplyRequest: ReviewCommentReplyRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseReviewCommentResponse>> => {
|
|
return axiosInstance.post(
|
|
`/api/repo_pr/${namespace}/${repo}/pulls/${prNumber}/comments/${commentId}/replies`,
|
|
reviewCommentReplyRequest,options
|
|
);
|
|
}
|
|
|
|
const reviewCommentResolve = (
|
|
namespace: string,
|
|
repo: string,
|
|
prNumber: number,
|
|
commentId: number, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseReviewCommentResponse>> => {
|
|
return axiosInstance.put(
|
|
`/api/repo_pr/${namespace}/${repo}/pulls/${prNumber}/comments/${commentId}/resolve`,undefined,options
|
|
);
|
|
}
|
|
|
|
const reviewCommentUnresolve = (
|
|
namespace: string,
|
|
repo: string,
|
|
prNumber: number,
|
|
commentId: number, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseReviewCommentResponse>> => {
|
|
return axiosInstance.delete(
|
|
`/api/repo_pr/${namespace}/${repo}/pulls/${prNumber}/comments/${commentId}/resolve`,options
|
|
);
|
|
}
|
|
|
|
const prCommitsList = (
|
|
namespace: string,
|
|
repo: string,
|
|
prNumber: number, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponsePrCommitsListResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repo_pr/${namespace}/${repo}/pulls/${prNumber}/commits`,options
|
|
);
|
|
}
|
|
|
|
const mergeConflictCheck = (
|
|
namespace: string,
|
|
repo: string,
|
|
prNumber: number, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseMergeConflictResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repo_pr/${namespace}/${repo}/pulls/${prNumber}/conflicts`,options
|
|
);
|
|
}
|
|
|
|
const prDiffSideBySide = (
|
|
namespace: string,
|
|
repo: string,
|
|
prNumber: number, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseSideBySideDiffResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repo_pr/${namespace}/${repo}/pulls/${prNumber}/diff/side-by-side`,options
|
|
);
|
|
}
|
|
|
|
const mergeAnalysis = (
|
|
namespace: string,
|
|
repo: string,
|
|
prNumber: number, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseMergeAnalysisResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repo_pr/${namespace}/${repo}/pulls/${prNumber}/merge`,options
|
|
);
|
|
}
|
|
|
|
const mergeExecute = (
|
|
namespace: string,
|
|
repo: string,
|
|
prNumber: number,
|
|
mergeRequest: MergeRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseMergeResponse>> => {
|
|
return axiosInstance.post(
|
|
`/api/repo_pr/${namespace}/${repo}/pulls/${prNumber}/merge`,
|
|
mergeRequest,options
|
|
);
|
|
}
|
|
|
|
const mergeAbort = (
|
|
namespace: string,
|
|
repo: string,
|
|
prNumber: number, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.post(
|
|
`/api/repo_pr/${namespace}/${repo}/pulls/${prNumber}/merge/abort`,undefined,options
|
|
);
|
|
}
|
|
|
|
const mergeIsInProgress = (
|
|
namespace: string,
|
|
repo: string,
|
|
prNumber: number, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.get(
|
|
`/api/repo_pr/${namespace}/${repo}/pulls/${prNumber}/merge/in_progress`,options
|
|
);
|
|
}
|
|
|
|
const reviewRequestList = (
|
|
namespace: string,
|
|
repo: string,
|
|
prNumber: number, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseReviewRequestListResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repo_pr/${namespace}/${repo}/pulls/${prNumber}/review-requests`,options
|
|
);
|
|
}
|
|
|
|
const reviewRequestCreate = (
|
|
namespace: string,
|
|
repo: string,
|
|
prNumber: number,
|
|
reviewRequestCreateRequest: ReviewRequestCreateRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseReviewRequestResponse>> => {
|
|
return axiosInstance.post(
|
|
`/api/repo_pr/${namespace}/${repo}/pulls/${prNumber}/review-requests`,
|
|
reviewRequestCreateRequest,options
|
|
);
|
|
}
|
|
|
|
const reviewRequestDelete = (
|
|
namespace: string,
|
|
repo: string,
|
|
prNumber: number,
|
|
reviewer: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.delete(
|
|
`/api/repo_pr/${namespace}/${repo}/pulls/${prNumber}/review-requests/${reviewer}`,options
|
|
);
|
|
}
|
|
|
|
const reviewRequestDismiss = (
|
|
namespace: string,
|
|
repo: string,
|
|
prNumber: number,
|
|
reviewer: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseReviewRequestResponse>> => {
|
|
return axiosInstance.post(
|
|
`/api/repo_pr/${namespace}/${repo}/pulls/${prNumber}/review-requests/${reviewer}/dismiss`,undefined,options
|
|
);
|
|
}
|
|
|
|
const reviewList = (
|
|
namespace: string,
|
|
repo: string,
|
|
prNumber: number, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseReviewListResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repo_pr/${namespace}/${repo}/pulls/${prNumber}/reviews`,options
|
|
);
|
|
}
|
|
|
|
const reviewSubmit = (
|
|
namespace: string,
|
|
repo: string,
|
|
prNumber: number,
|
|
reviewSubmitRequest: ReviewSubmitRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseReviewResponse>> => {
|
|
return axiosInstance.post(
|
|
`/api/repo_pr/${namespace}/${repo}/pulls/${prNumber}/reviews`,
|
|
reviewSubmitRequest,options
|
|
);
|
|
}
|
|
|
|
const reviewUpdate = (
|
|
namespace: string,
|
|
repo: string,
|
|
prNumber: number,
|
|
reviewUpdateRequest: ReviewUpdateRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseReviewResponse>> => {
|
|
return axiosInstance.patch(
|
|
`/api/repo_pr/${namespace}/${repo}/pulls/${prNumber}/reviews`,
|
|
reviewUpdateRequest,options
|
|
);
|
|
}
|
|
|
|
const reviewDelete = (
|
|
namespace: string,
|
|
repo: string,
|
|
prNumber: number,
|
|
reviewerId: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.delete(
|
|
`/api/repo_pr/${namespace}/${repo}/pulls/${prNumber}/reviews/${reviewerId}`,options
|
|
);
|
|
}
|
|
|
|
const branchProtectionList = (
|
|
namespace: string,
|
|
repo: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseVecBranchProtectionResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/branch-protections`,options
|
|
);
|
|
}
|
|
|
|
const branchProtectionCreate = (
|
|
namespace: string,
|
|
repo: string,
|
|
branchProtectionCreateRequest: BranchProtectionCreateRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseBranchProtectionResponse>> => {
|
|
return axiosInstance.post(
|
|
`/api/repos/${namespace}/${repo}/branch-protections`,
|
|
branchProtectionCreateRequest,options
|
|
);
|
|
}
|
|
|
|
const branchProtectionCheckApprovals = (
|
|
namespace: string,
|
|
repo: string,
|
|
params: BranchProtectionCheckApprovalsParams, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseApprovalCheckResult>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/branch-protections/check-approvals`,{
|
|
...options,
|
|
params: {...params, ...options?.params},}
|
|
);
|
|
}
|
|
|
|
const branchProtectionGet = (
|
|
namespace: string,
|
|
repo: string,
|
|
id: number, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseBranchProtectionResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/branch-protections/${id}`,options
|
|
);
|
|
}
|
|
|
|
const branchProtectionDelete = (
|
|
namespace: string,
|
|
repo: string,
|
|
id: number, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.delete(
|
|
`/api/repos/${namespace}/${repo}/branch-protections/${id}`,options
|
|
);
|
|
}
|
|
|
|
const branchProtectionUpdate = (
|
|
namespace: string,
|
|
repo: string,
|
|
id: number,
|
|
branchProtectionUpdateRequest: BranchProtectionUpdateRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseBranchProtectionResponse>> => {
|
|
return axiosInstance.patch(
|
|
`/api/repos/${namespace}/${repo}/branch-protections/${id}`,
|
|
branchProtectionUpdateRequest,options
|
|
);
|
|
}
|
|
|
|
const gitUpdateRepo = (
|
|
namespace: string,
|
|
repo: string,
|
|
gitUpdateRepoRequest: GitUpdateRepoRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.patch(
|
|
`/api/repos/${namespace}/${repo}/git`,
|
|
gitUpdateRepoRequest,options
|
|
);
|
|
}
|
|
|
|
const gitArchive = (
|
|
namespace: string,
|
|
repo: string,
|
|
params: GitArchiveParams, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseArchiveResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/archive`,{
|
|
...options,
|
|
params: {...params, ...options?.params},}
|
|
);
|
|
}
|
|
|
|
const gitArchiveCached = (
|
|
namespace: string,
|
|
repo: string,
|
|
params: GitArchiveCachedParams, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseArchiveCachedResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/archive/cached`,{
|
|
...options,
|
|
params: {...params, ...options?.params},}
|
|
);
|
|
}
|
|
|
|
const gitArchiveInvalidate = (
|
|
namespace: string,
|
|
repo: string,
|
|
params: GitArchiveInvalidateParams, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseArchiveInvalidateResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/archive/invalidate`,{
|
|
...options,
|
|
params: {...params, ...options?.params},}
|
|
);
|
|
}
|
|
|
|
const gitArchiveInvalidateAll = (
|
|
namespace: string,
|
|
repo: string,
|
|
commitOid: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseArchiveInvalidateAllResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/archive/invalidate/${commitOid}`,options
|
|
);
|
|
}
|
|
|
|
const gitArchiveList = (
|
|
namespace: string,
|
|
repo: string,
|
|
params: GitArchiveListParams, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseArchiveListResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/archive/list`,{
|
|
...options,
|
|
params: {...params, ...options?.params},}
|
|
);
|
|
}
|
|
|
|
const gitArchiveSummary = (
|
|
namespace: string,
|
|
repo: string,
|
|
params: GitArchiveSummaryParams, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseArchiveSummaryResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/archive/summary`,{
|
|
...options,
|
|
params: {...params, ...options?.params},}
|
|
);
|
|
}
|
|
|
|
const gitBlameFile = (
|
|
namespace: string,
|
|
repo: string,
|
|
commitOid: string,
|
|
tail: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<BlameHunkResponse[]>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/blame/${commitOid}/${tail}`,options
|
|
);
|
|
}
|
|
|
|
const gitBlobCreate = (
|
|
namespace: string,
|
|
repo: string,
|
|
blobCreateRequest: BlobCreateRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseBlobCreateResponse>> => {
|
|
return axiosInstance.post(
|
|
`/api/repos/${namespace}/${repo}/git/blob`,
|
|
blobCreateRequest,options
|
|
);
|
|
}
|
|
|
|
const gitBlobGet = (
|
|
namespace: string,
|
|
repo: string,
|
|
oid: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseBlobInfoResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/blob/${oid}`,options
|
|
);
|
|
}
|
|
|
|
const gitBlobContent = (
|
|
namespace: string,
|
|
repo: string,
|
|
oid: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseBlobContentResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/blob/${oid}/content`,options
|
|
);
|
|
}
|
|
|
|
const gitBlobExists = (
|
|
namespace: string,
|
|
repo: string,
|
|
oid: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseBlobExistsResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/blob/${oid}/exists`,options
|
|
);
|
|
}
|
|
|
|
const gitBlobIsBinary = (
|
|
namespace: string,
|
|
repo: string,
|
|
oid: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseBlobIsBinaryResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/blob/${oid}/is-binary`,options
|
|
);
|
|
}
|
|
|
|
const gitBlobSize = (
|
|
namespace: string,
|
|
repo: string,
|
|
oid: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseBlobSizeResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/blob/${oid}/size`,options
|
|
);
|
|
}
|
|
|
|
const gitBranchList = (
|
|
namespace: string,
|
|
repo: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseVecBranchInfoResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/branches`,options
|
|
);
|
|
}
|
|
|
|
const gitBranchCreate = (
|
|
namespace: string,
|
|
repo: string,
|
|
branchCreateRequest: BranchCreateRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseBranchInfoResponse>> => {
|
|
return axiosInstance.post(
|
|
`/api/repos/${namespace}/${repo}/git/branches`,
|
|
branchCreateRequest,options
|
|
);
|
|
}
|
|
|
|
const gitBranchCurrent = (
|
|
namespace: string,
|
|
repo: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseBranchInfoResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/branches/current`,options
|
|
);
|
|
}
|
|
|
|
const gitBranchDiff = (
|
|
namespace: string,
|
|
repo: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseBranchDiffResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/branches/diff`,options
|
|
);
|
|
}
|
|
|
|
const gitBranchFastForward = (
|
|
namespace: string,
|
|
repo: string,
|
|
target: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseBranchFastForwardResponse>> => {
|
|
return axiosInstance.post(
|
|
`/api/repos/${namespace}/${repo}/git/branches/fast-forward/${target}`,undefined,options
|
|
);
|
|
}
|
|
|
|
const gitBranchIsAncestor = (
|
|
namespace: string,
|
|
repo: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseBranchIsAncestorResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/branches/is-ancestor`,options
|
|
);
|
|
}
|
|
|
|
const gitBranchIsConflicted = (
|
|
namespace: string,
|
|
repo: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseBranchIsConflictedResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/branches/is-conflicted`,options
|
|
);
|
|
}
|
|
|
|
const gitBranchIsDetached = (
|
|
namespace: string,
|
|
repo: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseBranchIsDetachedResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/branches/is-detached`,options
|
|
);
|
|
}
|
|
|
|
const gitBranchIsMerged = (
|
|
namespace: string,
|
|
repo: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseBranchIsMergedResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/branches/is-merged`,options
|
|
);
|
|
}
|
|
|
|
const gitBranchMergeBase = (
|
|
namespace: string,
|
|
repo: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseBranchMergeBaseResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/branches/merge-base`,options
|
|
);
|
|
}
|
|
|
|
const gitBranchMove = (
|
|
namespace: string,
|
|
repo: string,
|
|
branchMoveRequest: BranchMoveRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseBranchInfoResponse>> => {
|
|
return axiosInstance.patch(
|
|
`/api/repos/${namespace}/${repo}/git/branches/move`,
|
|
branchMoveRequest,options
|
|
);
|
|
}
|
|
|
|
const gitBranchDeleteRemote = (
|
|
namespace: string,
|
|
repo: string,
|
|
name: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.delete(
|
|
`/api/repos/${namespace}/${repo}/git/branches/remote/${name}`,options
|
|
);
|
|
}
|
|
|
|
const gitBranchRename = (
|
|
namespace: string,
|
|
repo: string,
|
|
branchRenameRequest: BranchRenameRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseBranchInfoResponse>> => {
|
|
return axiosInstance.patch(
|
|
`/api/repos/${namespace}/${repo}/git/branches/rename`,
|
|
branchRenameRequest,options
|
|
);
|
|
}
|
|
|
|
const gitBranchSummary = (
|
|
namespace: string,
|
|
repo: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseBranchSummaryResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/branches/summary`,options
|
|
);
|
|
}
|
|
|
|
const gitBranchSetUpstream = (
|
|
namespace: string,
|
|
repo: string,
|
|
branchSetUpstreamRequest: BranchSetUpstreamRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.patch(
|
|
`/api/repos/${namespace}/${repo}/git/branches/upstream`,
|
|
branchSetUpstreamRequest,options
|
|
);
|
|
}
|
|
|
|
const gitBranchGet = (
|
|
namespace: string,
|
|
repo: string,
|
|
name: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseBranchInfoResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/branches/${name}`,options
|
|
);
|
|
}
|
|
|
|
const gitBranchDelete = (
|
|
namespace: string,
|
|
repo: string,
|
|
name: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.delete(
|
|
`/api/repos/${namespace}/${repo}/git/branches/${name}`,options
|
|
);
|
|
}
|
|
|
|
const gitBranchExists = (
|
|
namespace: string,
|
|
repo: string,
|
|
name: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseBranchExistsResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/branches/${name}/exists`,options
|
|
);
|
|
}
|
|
|
|
const gitBranchIsHead = (
|
|
namespace: string,
|
|
repo: string,
|
|
name: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseBranchIsHeadResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/branches/${name}/is-head`,options
|
|
);
|
|
}
|
|
|
|
const gitBranchTrackingDifference = (
|
|
namespace: string,
|
|
repo: string,
|
|
name: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseBranchTrackingDiffResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/branches/${name}/tracking-difference`,options
|
|
);
|
|
}
|
|
|
|
const gitBranchUpstream = (
|
|
namespace: string,
|
|
repo: string,
|
|
name: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseBranchInfoResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/branches/${name}/upstream`,options
|
|
);
|
|
}
|
|
|
|
const gitCommitLog = (
|
|
namespace: string,
|
|
repo: string,
|
|
params?: GitCommitLogParams, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseCommitLogResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/commits`,{
|
|
...options,
|
|
params: {...params, ...options?.params},}
|
|
);
|
|
}
|
|
|
|
const gitCommitCreate = (
|
|
namespace: string,
|
|
repo: string,
|
|
commitCreateRequest: CommitCreateRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseCommitCreateResponse>> => {
|
|
return axiosInstance.post(
|
|
`/api/repos/${namespace}/${repo}/git/commits`,
|
|
commitCreateRequest,options
|
|
);
|
|
}
|
|
|
|
const gitCommitBranches = (
|
|
namespace: string,
|
|
repo: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseCommitBranchesResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/commits/branches`,options
|
|
);
|
|
}
|
|
|
|
const gitCommitCount = (
|
|
namespace: string,
|
|
repo: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseCommitCountResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/commits/count`,options
|
|
);
|
|
}
|
|
|
|
const gitCommitGraph = (
|
|
namespace: string,
|
|
repo: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseCommitGraphResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/commits/graph`,options
|
|
);
|
|
}
|
|
|
|
/**
|
|
* @summary Returns commit graph data enriched with full commit metadata (author, timestamp,
|
|
parents, lane_index) for use with @gitgraph/react on the frontend.
|
|
*/
|
|
const gitCommitGraphReact = (
|
|
namespace: string,
|
|
repo: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseCommitGraphReactResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/commits/graph-react`,options
|
|
);
|
|
}
|
|
|
|
const gitCommitReflog = (
|
|
namespace: string,
|
|
repo: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseVecCommitReflogEntryResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/commits/reflog`,options
|
|
);
|
|
}
|
|
|
|
const gitCommitResolveRev = (
|
|
namespace: string,
|
|
repo: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseString>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/commits/resolve`,options
|
|
);
|
|
}
|
|
|
|
const gitCommitTags = (
|
|
namespace: string,
|
|
repo: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseCommitTagsResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/commits/tags`,options
|
|
);
|
|
}
|
|
|
|
const gitCommitWalk = (
|
|
namespace: string,
|
|
repo: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseVecCommitMetaResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/commits/walk`,options
|
|
);
|
|
}
|
|
|
|
const gitCommitGet = (
|
|
namespace: string,
|
|
repo: string,
|
|
oid: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseCommitMetaResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/commits/${oid}`,options
|
|
);
|
|
}
|
|
|
|
const gitCommitAmend = (
|
|
namespace: string,
|
|
repo: string,
|
|
oid: string,
|
|
commitAmendRequest: CommitAmendRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseCommitMetaResponse>> => {
|
|
return axiosInstance.patch(
|
|
`/api/repos/${namespace}/${repo}/git/commits/${oid}/amend`,
|
|
commitAmendRequest,options
|
|
);
|
|
}
|
|
|
|
const gitCommitAncestors = (
|
|
namespace: string,
|
|
repo: string,
|
|
oid: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseVecCommitMetaResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/commits/${oid}/ancestors`,options
|
|
);
|
|
}
|
|
|
|
const gitCommitAuthor = (
|
|
namespace: string,
|
|
repo: string,
|
|
oid: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseCommitAuthorResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/commits/${oid}/author`,options
|
|
);
|
|
}
|
|
|
|
const gitCommitCherryPick = (
|
|
namespace: string,
|
|
repo: string,
|
|
oid: string,
|
|
commitCherryPickRequest: CommitCherryPickRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseCommitMetaResponse>> => {
|
|
return axiosInstance.post(
|
|
`/api/repos/${namespace}/${repo}/git/commits/${oid}/cherry-pick`,
|
|
commitCherryPickRequest,options
|
|
);
|
|
}
|
|
|
|
const gitCommitCherryPickAbort = (
|
|
namespace: string,
|
|
repo: string,
|
|
oid: string,
|
|
commitCherryPickAbortRequest: CommitCherryPickAbortRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseBool>> => {
|
|
return axiosInstance.post(
|
|
`/api/repos/${namespace}/${repo}/git/commits/${oid}/cherry-pick/abort`,
|
|
commitCherryPickAbortRequest,options
|
|
);
|
|
}
|
|
|
|
const gitCommitDescendants = (
|
|
namespace: string,
|
|
repo: string,
|
|
oid: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseVecCommitMetaResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/commits/${oid}/descendants`,options
|
|
);
|
|
}
|
|
|
|
const gitCommitExists = (
|
|
namespace: string,
|
|
repo: string,
|
|
oid: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseCommitExistsResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/commits/${oid}/exists`,options
|
|
);
|
|
}
|
|
|
|
const gitCommitFirstParent = (
|
|
namespace: string,
|
|
repo: string,
|
|
oid: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseOptionCommitMetaResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/commits/${oid}/first-parent`,options
|
|
);
|
|
}
|
|
|
|
const gitCommitIsCommit = (
|
|
namespace: string,
|
|
repo: string,
|
|
oid: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseCommitIsCommitResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/commits/${oid}/is-commit`,options
|
|
);
|
|
}
|
|
|
|
const gitCommitIsMerge = (
|
|
namespace: string,
|
|
repo: string,
|
|
oid: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseCommitIsMergeResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/commits/${oid}/is-merge`,options
|
|
);
|
|
}
|
|
|
|
const gitCommitIsTip = (
|
|
namespace: string,
|
|
repo: string,
|
|
oid: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseCommitIsTipResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/commits/${oid}/is-tip`,options
|
|
);
|
|
}
|
|
|
|
const gitCommitMessage = (
|
|
namespace: string,
|
|
repo: string,
|
|
oid: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseCommitMessageResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/commits/${oid}/message`,options
|
|
);
|
|
}
|
|
|
|
const gitCommitParentCount = (
|
|
namespace: string,
|
|
repo: string,
|
|
oid: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseCommitParentCountResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/commits/${oid}/parent-count`,options
|
|
);
|
|
}
|
|
|
|
const gitCommitParentIds = (
|
|
namespace: string,
|
|
repo: string,
|
|
oid: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseCommitParentIdsResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/commits/${oid}/parent-ids`,options
|
|
);
|
|
}
|
|
|
|
const gitCommitParent = (
|
|
namespace: string,
|
|
repo: string,
|
|
oid: string,
|
|
index: number, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseCommitMetaResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/commits/${oid}/parent/${index}`,options
|
|
);
|
|
}
|
|
|
|
const gitCommitRefCount = (
|
|
namespace: string,
|
|
repo: string,
|
|
oid: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseCommitRefCountResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/commits/${oid}/ref-count`,options
|
|
);
|
|
}
|
|
|
|
const gitCommitRefs = (
|
|
namespace: string,
|
|
repo: string,
|
|
oid: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseVecCommitRefInfoResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/commits/${oid}/refs`,options
|
|
);
|
|
}
|
|
|
|
const gitCommitRevert = (
|
|
namespace: string,
|
|
repo: string,
|
|
oid: string,
|
|
commitRevertRequest: CommitRevertRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseCommitMetaResponse>> => {
|
|
return axiosInstance.post(
|
|
`/api/repos/${namespace}/${repo}/git/commits/${oid}/revert`,
|
|
commitRevertRequest,options
|
|
);
|
|
}
|
|
|
|
const gitCommitRevertAbort = (
|
|
namespace: string,
|
|
repo: string,
|
|
oid: string,
|
|
commitRevertAbortRequest: CommitRevertAbortRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseBool>> => {
|
|
return axiosInstance.post(
|
|
`/api/repos/${namespace}/${repo}/git/commits/${oid}/revert/abort`,
|
|
commitRevertAbortRequest,options
|
|
);
|
|
}
|
|
|
|
const gitCommitShortId = (
|
|
namespace: string,
|
|
repo: string,
|
|
oid: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseCommitShortIdResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/commits/${oid}/short-id`,options
|
|
);
|
|
}
|
|
|
|
const gitCommitSummary = (
|
|
namespace: string,
|
|
repo: string,
|
|
oid: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseCommitSummaryResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/commits/${oid}/summary`,options
|
|
);
|
|
}
|
|
|
|
const gitCommitTreeId = (
|
|
namespace: string,
|
|
repo: string,
|
|
oid: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseCommitTreeIdResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/commits/${oid}/tree-id`,options
|
|
);
|
|
}
|
|
|
|
const gitConfigEntries = (
|
|
namespace: string,
|
|
repo: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseConfigSnapshotResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/config/entries`,options
|
|
);
|
|
}
|
|
|
|
const gitConfigGet = (
|
|
namespace: string,
|
|
repo: string,
|
|
key: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseValue>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/config/${key}`,options
|
|
);
|
|
}
|
|
|
|
const gitConfigSet = (
|
|
namespace: string,
|
|
repo: string,
|
|
key: string,
|
|
configSetRequest: ConfigSetRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.put(
|
|
`/api/repos/${namespace}/${repo}/git/config/${key}`,
|
|
configSetRequest,options
|
|
);
|
|
}
|
|
|
|
const gitConfigDelete = (
|
|
namespace: string,
|
|
repo: string,
|
|
key: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.delete(
|
|
`/api/repos/${namespace}/${repo}/git/config/${key}`,options
|
|
);
|
|
}
|
|
|
|
const gitConfigHas = (
|
|
namespace: string,
|
|
repo: string,
|
|
key: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseConfigBoolResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/config/${key}/has`,options
|
|
);
|
|
}
|
|
|
|
const gitContributors = (
|
|
namespace: string,
|
|
repo: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseContributorsResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/contributors`,options
|
|
);
|
|
}
|
|
|
|
const gitDescriptionGet = (
|
|
namespace: string,
|
|
repo: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseDescriptionResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/description`,options
|
|
);
|
|
}
|
|
|
|
const gitDescriptionSet = (
|
|
namespace: string,
|
|
repo: string,
|
|
descriptionQuery: DescriptionQuery, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseDescriptionResponse>> => {
|
|
return axiosInstance.put(
|
|
`/api/repos/${namespace}/${repo}/git/description`,
|
|
descriptionQuery,options
|
|
);
|
|
}
|
|
|
|
const gitDescriptionReset = (
|
|
namespace: string,
|
|
repo: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseDescriptionResponse>> => {
|
|
return axiosInstance.delete(
|
|
`/api/repos/${namespace}/${repo}/git/description`,options
|
|
);
|
|
}
|
|
|
|
const gitDescriptionExists = (
|
|
namespace: string,
|
|
repo: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseValue>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/description/exists`,options
|
|
);
|
|
}
|
|
|
|
const gitDiffTreeToTree = (
|
|
namespace: string,
|
|
repo: string,
|
|
params: GitDiffTreeToTreeParams, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseDiffResultResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/diff`,{
|
|
...options,
|
|
params: {...params, ...options?.params},}
|
|
);
|
|
}
|
|
|
|
const gitDiffCommitToWorkdir = (
|
|
namespace: string,
|
|
repo: string,
|
|
commit: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseDiffResultResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/diff/commit/${commit}`,options
|
|
);
|
|
}
|
|
|
|
const gitDiffCommitToIndex = (
|
|
namespace: string,
|
|
repo: string,
|
|
commit: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseDiffResultResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/diff/commit/${commit}/index`,options
|
|
);
|
|
}
|
|
|
|
const gitDiffIndexToTree = (
|
|
namespace: string,
|
|
repo: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseDiffResultResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/diff/index`,options
|
|
);
|
|
}
|
|
|
|
const gitDiffPatchId = (
|
|
namespace: string,
|
|
repo: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseDiffPatchIdResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/diff/patch-id`,options
|
|
);
|
|
}
|
|
|
|
const gitDiffSideBySide = (
|
|
namespace: string,
|
|
repo: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseSideBySideDiffResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/diff/side-by-side`,options
|
|
);
|
|
}
|
|
|
|
const gitDiffStats = (
|
|
namespace: string,
|
|
repo: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseDiffStatsResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/diff/stats`,options
|
|
);
|
|
}
|
|
|
|
const gitDiffWorkdirToIndex = (
|
|
namespace: string,
|
|
repo: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseDiffResultResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/diff/workdir`,options
|
|
);
|
|
}
|
|
|
|
const gitMergeAbort = (
|
|
namespace: string,
|
|
repo: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.post(
|
|
`/api/repos/${namespace}/${repo}/git/merge/abort`,undefined,options
|
|
);
|
|
}
|
|
|
|
const gitMergeAnalysisForRef = (
|
|
namespace: string,
|
|
repo: string,
|
|
refName: string,
|
|
theirOid: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseMergeAnalysisResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/merge/analysis/${refName}/${theirOid}`,options
|
|
);
|
|
}
|
|
|
|
const gitMergeAnalysis = (
|
|
namespace: string,
|
|
repo: string,
|
|
theirOid: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseMergeAnalysisResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/merge/analysis/${theirOid}`,options
|
|
);
|
|
}
|
|
|
|
const gitMergeBase = (
|
|
namespace: string,
|
|
repo: string,
|
|
oid1: string,
|
|
oid2: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseString>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/merge/base/${oid1}/${oid2}`,options
|
|
);
|
|
}
|
|
|
|
const gitMergeCommits = (
|
|
namespace: string,
|
|
repo: string,
|
|
mergeCommitsRequest: MergeCommitsRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.post(
|
|
`/api/repos/${namespace}/${repo}/git/merge/commits`,
|
|
mergeCommitsRequest,options
|
|
);
|
|
}
|
|
|
|
const gitMergeheadList = (
|
|
namespace: string,
|
|
repo: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseVecMergeheadInfoResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/merge/heads`,options
|
|
);
|
|
}
|
|
|
|
const gitMergeIsInProgress = (
|
|
namespace: string,
|
|
repo: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseValue>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/merge/in-progress`,options
|
|
);
|
|
}
|
|
|
|
const gitMergeIsConflicted = (
|
|
namespace: string,
|
|
repo: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseValue>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/merge/is-conflicted`,options
|
|
);
|
|
}
|
|
|
|
const gitMergeTrees = (
|
|
namespace: string,
|
|
repo: string,
|
|
mergeTreesRequest: MergeTreesRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.post(
|
|
`/api/repos/${namespace}/${repo}/git/merge/trees`,
|
|
mergeTreesRequest,options
|
|
);
|
|
}
|
|
|
|
const gitReadme = (
|
|
namespace: string,
|
|
repo: string,
|
|
params?: GitReadmeParams, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseGitReadmeResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/readme`,{
|
|
...options,
|
|
params: {...params, ...options?.params},}
|
|
);
|
|
}
|
|
|
|
const gitRefList = (
|
|
namespace: string,
|
|
repo: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseVecRefInfoResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/refs`,options
|
|
);
|
|
}
|
|
|
|
const gitRefUpdate = (
|
|
namespace: string,
|
|
repo: string,
|
|
refUpdateRequest: RefUpdateRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseRefUpdateResponse>> => {
|
|
return axiosInstance.put(
|
|
`/api/repos/${namespace}/${repo}/git/refs`,
|
|
refUpdateRequest,options
|
|
);
|
|
}
|
|
|
|
const gitRefCreate = (
|
|
namespace: string,
|
|
repo: string,
|
|
refCreateRequest: RefCreateRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseRefUpdateResponse>> => {
|
|
return axiosInstance.post(
|
|
`/api/repos/${namespace}/${repo}/git/refs`,
|
|
refCreateRequest,options
|
|
);
|
|
}
|
|
|
|
const gitRefRename = (
|
|
namespace: string,
|
|
repo: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseRefInfoResponse>> => {
|
|
return axiosInstance.patch(
|
|
`/api/repos/${namespace}/${repo}/git/refs/rename`,undefined,options
|
|
);
|
|
}
|
|
|
|
const gitRefGet = (
|
|
namespace: string,
|
|
repo: string,
|
|
name: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseRefInfoResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/refs/${name}`,options
|
|
);
|
|
}
|
|
|
|
const gitRefDelete = (
|
|
namespace: string,
|
|
repo: string,
|
|
name: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseRefDeleteResponse>> => {
|
|
return axiosInstance.delete(
|
|
`/api/repos/${namespace}/${repo}/git/refs/${name}`,options
|
|
);
|
|
}
|
|
|
|
const gitRefExists = (
|
|
namespace: string,
|
|
repo: string,
|
|
name: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseRefExistsResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/refs/${name}/exists`,options
|
|
);
|
|
}
|
|
|
|
const gitRefTarget = (
|
|
namespace: string,
|
|
repo: string,
|
|
name: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseRefTargetResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/refs/${name}/target`,options
|
|
);
|
|
}
|
|
|
|
const gitStar = (
|
|
namespace: string,
|
|
repo: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.post(
|
|
`/api/repos/${namespace}/${repo}/git/star`,undefined,options
|
|
);
|
|
}
|
|
|
|
const gitUnstar = (
|
|
namespace: string,
|
|
repo: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.delete(
|
|
`/api/repos/${namespace}/${repo}/git/star`,options
|
|
);
|
|
}
|
|
|
|
const gitStarCount = (
|
|
namespace: string,
|
|
repo: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseStarCountResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/star/count`,options
|
|
);
|
|
}
|
|
|
|
const gitIsStarred = (
|
|
namespace: string,
|
|
repo: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseValue>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/star/is-starred`,options
|
|
);
|
|
}
|
|
|
|
const gitStarUserList = (
|
|
namespace: string,
|
|
repo: string,
|
|
params?: GitStarUserListParams, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseStarUserListResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/star/users`,{
|
|
...options,
|
|
params: {...params, ...options?.params},}
|
|
);
|
|
}
|
|
|
|
const gitTagList = (
|
|
namespace: string,
|
|
repo: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseVecTagInfoResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/tags`,options
|
|
);
|
|
}
|
|
|
|
const gitTagCreate = (
|
|
namespace: string,
|
|
repo: string,
|
|
tagCreateRequest: TagCreateRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseTagInfoResponse>> => {
|
|
return axiosInstance.post(
|
|
`/api/repos/${namespace}/${repo}/git/tags`,
|
|
tagCreateRequest,options
|
|
);
|
|
}
|
|
|
|
const gitTagCount = (
|
|
namespace: string,
|
|
repo: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseTagCountResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/tags/count`,options
|
|
);
|
|
}
|
|
|
|
const gitTagCreateLightweight = (
|
|
namespace: string,
|
|
repo: string,
|
|
tagCreateLightweightRequest: TagCreateLightweightRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseTagInfoResponse>> => {
|
|
return axiosInstance.post(
|
|
`/api/repos/${namespace}/${repo}/git/tags/lightweight`,
|
|
tagCreateLightweightRequest,options
|
|
);
|
|
}
|
|
|
|
const gitTagUpdateMessage = (
|
|
namespace: string,
|
|
repo: string,
|
|
tagUpdateMessageRequest: TagUpdateMessageRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseTagInfoResponse>> => {
|
|
return axiosInstance.patch(
|
|
`/api/repos/${namespace}/${repo}/git/tags/message`,
|
|
tagUpdateMessageRequest,options
|
|
);
|
|
}
|
|
|
|
const gitTagListNames = (
|
|
namespace: string,
|
|
repo: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseVecString>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/tags/names`,options
|
|
);
|
|
}
|
|
|
|
const gitTagRename = (
|
|
namespace: string,
|
|
repo: string,
|
|
tagRenameQuery: TagRenameQuery, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseTagInfoResponse>> => {
|
|
return axiosInstance.patch(
|
|
`/api/repos/${namespace}/${repo}/git/tags/rename`,
|
|
tagRenameQuery,options
|
|
);
|
|
}
|
|
|
|
const gitTagSummary = (
|
|
namespace: string,
|
|
repo: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseTagSummaryResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/tags/summary`,options
|
|
);
|
|
}
|
|
|
|
const gitTagGet = (
|
|
namespace: string,
|
|
repo: string,
|
|
name: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseTagInfoResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/tags/${name}`,options
|
|
);
|
|
}
|
|
|
|
const gitTagDelete = (
|
|
namespace: string,
|
|
repo: string,
|
|
name: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.delete(
|
|
`/api/repos/${namespace}/${repo}/git/tags/${name}`,options
|
|
);
|
|
}
|
|
|
|
const gitTagExists = (
|
|
namespace: string,
|
|
repo: string,
|
|
name: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseTagExistsResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/tags/${name}/exists`,options
|
|
);
|
|
}
|
|
|
|
const gitTagIsAnnotated = (
|
|
namespace: string,
|
|
repo: string,
|
|
name: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseTagIsAnnotatedResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/tags/${name}/is-annotated`,options
|
|
);
|
|
}
|
|
|
|
const gitTagMessage = (
|
|
namespace: string,
|
|
repo: string,
|
|
name: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseTagMessageResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/tags/${name}/message`,options
|
|
);
|
|
}
|
|
|
|
const gitTagTagger = (
|
|
namespace: string,
|
|
repo: string,
|
|
name: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseTagTaggerResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/tags/${name}/tagger`,options
|
|
);
|
|
}
|
|
|
|
const gitTagTarget = (
|
|
namespace: string,
|
|
repo: string,
|
|
name: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseTagTargetResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/tags/${name}/target`,options
|
|
);
|
|
}
|
|
|
|
const gitTreeDiffstats = (
|
|
namespace: string,
|
|
repo: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseTreeDiffStatsResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/tree/diff-stats`,options
|
|
);
|
|
}
|
|
|
|
const gitTreeEntryByCommitPath = (
|
|
namespace: string,
|
|
repo: string,
|
|
commit: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseTreeEntryResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/tree/${commit}/commit-entry-by-path`,options
|
|
);
|
|
}
|
|
|
|
const gitTreeGet = (
|
|
namespace: string,
|
|
repo: string,
|
|
oid: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseTreeInfoResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/tree/${oid}`,options
|
|
);
|
|
}
|
|
|
|
const gitTreeEntryByPath = (
|
|
namespace: string,
|
|
repo: string,
|
|
oid: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseTreeEntryResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/tree/${oid}/entry-by-path`,options
|
|
);
|
|
}
|
|
|
|
const gitTreeEntryCount = (
|
|
namespace: string,
|
|
repo: string,
|
|
oid: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseTreeEntryCountResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/tree/${oid}/entry-count`,options
|
|
);
|
|
}
|
|
|
|
const gitTreeEntry = (
|
|
namespace: string,
|
|
repo: string,
|
|
oid: string,
|
|
index: number, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseTreeEntryResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/tree/${oid}/entry/${index}`,options
|
|
);
|
|
}
|
|
|
|
const gitTreeExists = (
|
|
namespace: string,
|
|
repo: string,
|
|
oid: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseTreeExistsResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/tree/${oid}/exists`,options
|
|
);
|
|
}
|
|
|
|
const gitTreeIsEmpty = (
|
|
namespace: string,
|
|
repo: string,
|
|
oid: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseTreeIsEmptyResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/tree/${oid}/is-empty`,options
|
|
);
|
|
}
|
|
|
|
const gitTreeList = (
|
|
namespace: string,
|
|
repo: string,
|
|
oid: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseVecTreeEntryResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/tree/${oid}/list`,options
|
|
);
|
|
}
|
|
|
|
const gitWatch = (
|
|
namespace: string,
|
|
repo: string,
|
|
gitWatchRequest: GitWatchRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.post(
|
|
`/api/repos/${namespace}/${repo}/git/watch`,
|
|
gitWatchRequest,options
|
|
);
|
|
}
|
|
|
|
const gitUnwatch = (
|
|
namespace: string,
|
|
repo: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.delete(
|
|
`/api/repos/${namespace}/${repo}/git/watch`,options
|
|
);
|
|
}
|
|
|
|
const gitWatchCount = (
|
|
namespace: string,
|
|
repo: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseWatchCountResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/watch/count`,options
|
|
);
|
|
}
|
|
|
|
const gitIsWatched = (
|
|
namespace: string,
|
|
repo: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseValue>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/watch/is-watched`,options
|
|
);
|
|
}
|
|
|
|
const gitWatchUserList = (
|
|
namespace: string,
|
|
repo: string,
|
|
params?: GitWatchUserListParams, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseWatchUserListResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/watch/users`,{
|
|
...options,
|
|
params: {...params, ...options?.params},}
|
|
);
|
|
}
|
|
|
|
const gitWebhookList = (
|
|
namespace: string,
|
|
repo: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseWebhookListResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/webhooks`,options
|
|
);
|
|
}
|
|
|
|
const gitWebhookCreate = (
|
|
namespace: string,
|
|
repo: string,
|
|
createWebhookParams: CreateWebhookParams, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseWebhookResponse>> => {
|
|
return axiosInstance.post(
|
|
`/api/repos/${namespace}/${repo}/git/webhooks`,
|
|
createWebhookParams,options
|
|
);
|
|
}
|
|
|
|
const gitWebhookGet = (
|
|
namespace: string,
|
|
repo: string,
|
|
webhookId: number, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseWebhookResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/repos/${namespace}/${repo}/git/webhooks/${webhookId}`,options
|
|
);
|
|
}
|
|
|
|
const gitWebhookDelete = (
|
|
namespace: string,
|
|
repo: string,
|
|
webhookId: number, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.delete(
|
|
`/api/repos/${namespace}/${repo}/git/webhooks/${webhookId}`,options
|
|
);
|
|
}
|
|
|
|
const gitWebhookUpdate = (
|
|
namespace: string,
|
|
repo: string,
|
|
webhookId: number,
|
|
updateWebhookParams: UpdateWebhookParams, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseWebhookResponse>> => {
|
|
return axiosInstance.patch(
|
|
`/api/repos/${namespace}/${repo}/git/webhooks/${webhookId}`,
|
|
updateWebhookParams,options
|
|
);
|
|
}
|
|
|
|
const categoryDelete = (
|
|
categoryId: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.delete(
|
|
`/api/room-categories/${categoryId}`,options
|
|
);
|
|
}
|
|
|
|
const categoryUpdate = (
|
|
categoryId: string,
|
|
roomCategoryUpdateRequest: RoomCategoryUpdateRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseRoomCategoryResponse>> => {
|
|
return axiosInstance.patch(
|
|
`/api/room-categories/${categoryId}`,
|
|
roomCategoryUpdateRequest,options
|
|
);
|
|
}
|
|
|
|
const roomGet = (
|
|
roomId: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseRoomResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/rooms/${roomId}`,options
|
|
);
|
|
}
|
|
|
|
const roomDelete = (
|
|
roomId: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.delete(
|
|
`/api/rooms/${roomId}`,options
|
|
);
|
|
}
|
|
|
|
const roomUpdate = (
|
|
roomId: string,
|
|
roomUpdateRequest: RoomUpdateRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseRoomResponse>> => {
|
|
return axiosInstance.patch(
|
|
`/api/rooms/${roomId}`,
|
|
roomUpdateRequest,options
|
|
);
|
|
}
|
|
|
|
const accessGrant = (
|
|
roomId: string,
|
|
roomAccessGrantRequest: RoomAccessGrantRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.post(
|
|
`/api/rooms/${roomId}/access`,
|
|
roomAccessGrantRequest,options
|
|
);
|
|
}
|
|
|
|
const accessRevoke = (
|
|
roomId: string,
|
|
userId: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.delete(
|
|
`/api/rooms/${roomId}/access/${userId}`,options
|
|
);
|
|
}
|
|
|
|
const aiList = (
|
|
roomId: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseVecRoomAiResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/rooms/${roomId}/ai`,options
|
|
);
|
|
}
|
|
|
|
const aiUpsert = (
|
|
roomId: string,
|
|
roomAiUpsertRequest: RoomAiUpsertRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseRoomAiResponse>> => {
|
|
return axiosInstance.put(
|
|
`/api/rooms/${roomId}/ai`,
|
|
roomAiUpsertRequest,options
|
|
);
|
|
}
|
|
|
|
const aiDelete = (
|
|
roomId: string,
|
|
modelId: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.delete(
|
|
`/api/rooms/${roomId}/ai/${modelId}`,options
|
|
);
|
|
}
|
|
|
|
const messageList = (
|
|
roomId: string,
|
|
params?: MessageListParams, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseRoomMessageListResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/rooms/${roomId}/messages`,{
|
|
...options,
|
|
params: {...params, ...options?.params},}
|
|
);
|
|
}
|
|
|
|
const messageCreate = (
|
|
roomId: string,
|
|
roomMessageCreateRequest: RoomMessageCreateRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseRoomMessageResponse>> => {
|
|
return axiosInstance.post(
|
|
`/api/rooms/${roomId}/messages`,
|
|
roomMessageCreateRequest,options
|
|
);
|
|
}
|
|
|
|
const messageSearch = (
|
|
roomId: string,
|
|
params: MessageSearchParams, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseMessageSearchResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/rooms/${roomId}/messages/search`,{
|
|
...options,
|
|
params: {...params, ...options?.params},}
|
|
);
|
|
}
|
|
|
|
const messageGet = (
|
|
roomId: string,
|
|
messageId: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseRoomMessageResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/rooms/${roomId}/messages/${messageId}`,options
|
|
);
|
|
}
|
|
|
|
const messageUpdate = (
|
|
roomId: string,
|
|
messageId: string,
|
|
roomMessageUpdateRequest: RoomMessageUpdateRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseRoomMessageResponse>> => {
|
|
return axiosInstance.patch(
|
|
`/api/rooms/${roomId}/messages/${messageId}`,
|
|
roomMessageUpdateRequest,options
|
|
);
|
|
}
|
|
|
|
const messageEditHistory = (
|
|
roomId: string,
|
|
messageId: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseMessageEditHistoryResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/rooms/${roomId}/messages/${messageId}/edit-history`,options
|
|
);
|
|
}
|
|
|
|
const pinAdd = (
|
|
roomId: string,
|
|
messageId: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseRoomPinResponse>> => {
|
|
return axiosInstance.post(
|
|
`/api/rooms/${roomId}/messages/${messageId}/pin`,undefined,options
|
|
);
|
|
}
|
|
|
|
const pinRemove = (
|
|
roomId: string,
|
|
messageId: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.delete(
|
|
`/api/rooms/${roomId}/messages/${messageId}/pin`,options
|
|
);
|
|
}
|
|
|
|
const messageRevoke = (
|
|
roomId: string,
|
|
messageId: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseRoomMessageResponse>> => {
|
|
return axiosInstance.post(
|
|
`/api/rooms/${roomId}/messages/${messageId}/revoke`,undefined,options
|
|
);
|
|
}
|
|
|
|
const participantList = (
|
|
roomId: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseRoomParticipantListResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/rooms/${roomId}/participants`,options
|
|
);
|
|
}
|
|
|
|
const pinList = (
|
|
roomId: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseVecRoomPinResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/rooms/${roomId}/pins`,options
|
|
);
|
|
}
|
|
|
|
const stateUpdateDnd = (
|
|
roomId: string,
|
|
roomUserStateUpdateDndRequest: RoomUserStateUpdateDndRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseRoomUserStateResponse>> => {
|
|
return axiosInstance.patch(
|
|
`/api/rooms/${roomId}/state/dnd`,
|
|
roomUserStateUpdateDndRequest,options
|
|
);
|
|
}
|
|
|
|
const stateSetReadSeq = (
|
|
roomId: string,
|
|
roomMemberReadSeqRequest: RoomMemberReadSeqRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseRoomUserStateResponse>> => {
|
|
return axiosInstance.patch(
|
|
`/api/rooms/${roomId}/state/read-seq`,
|
|
roomMemberReadSeqRequest,options
|
|
);
|
|
}
|
|
|
|
const threadList = (
|
|
roomId: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseVecRoomThreadResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/rooms/${roomId}/threads`,options
|
|
);
|
|
}
|
|
|
|
const threadCreate = (
|
|
roomId: string,
|
|
roomThreadCreateRequest: RoomThreadCreateRequest, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseRoomThreadResponse>> => {
|
|
return axiosInstance.post(
|
|
`/api/rooms/${roomId}/threads`,
|
|
roomThreadCreateRequest,options
|
|
);
|
|
}
|
|
|
|
const threadMessages = (
|
|
roomId: string,
|
|
threadId: string,
|
|
params?: ThreadMessagesParams, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseRoomMessageListResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/rooms/${roomId}/threads/${threadId}/messages`,{
|
|
...options,
|
|
params: {...params, ...options?.params},}
|
|
);
|
|
}
|
|
|
|
const search = (
|
|
params: SearchParams, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseSearchResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/search`,{
|
|
...options,
|
|
params: {...params, ...options?.params},}
|
|
);
|
|
}
|
|
|
|
const searchMessages = (
|
|
params: SearchMessagesParams, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseGlobalMessageSearchResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/search/messages`,{
|
|
...options,
|
|
params: {...params, ...options?.params},}
|
|
);
|
|
}
|
|
|
|
const listAccessKeys = (
|
|
options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseAccessKeyListResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/users/me/access-keys`,options
|
|
);
|
|
}
|
|
|
|
const createAccessKey = (
|
|
createAccessKeyParams: CreateAccessKeyParams, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseAccessKeyResponse>> => {
|
|
return axiosInstance.post(
|
|
`/api/users/me/access-keys`,
|
|
createAccessKeyParams,options
|
|
);
|
|
}
|
|
|
|
const deleteAccessKey = (
|
|
accessKeyId: number, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.delete(
|
|
`/api/users/me/access-keys/${accessKeyId}`,options
|
|
);
|
|
}
|
|
|
|
/**
|
|
* @summary Upload current user's avatar.
|
|
Accepts a multipart form with a single file field.
|
|
*/
|
|
const uploadAvatar = (
|
|
options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseAvatarUploadResponse>> => {
|
|
return axiosInstance.post(
|
|
`/api/users/me/avatar`,undefined,options
|
|
);
|
|
}
|
|
|
|
const userBilling = (
|
|
options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseUserBillingResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/users/me/billing`,options
|
|
);
|
|
}
|
|
|
|
const userBillingErrors = (
|
|
options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseUserBillingErrorsResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/users/me/billing/errors`,options
|
|
);
|
|
}
|
|
|
|
const userBillingHistory = (
|
|
params?: UserBillingHistoryParams, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseUserBillingHistoryResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/users/me/billing/history`,{
|
|
...options,
|
|
params: {...params, ...options?.params},}
|
|
);
|
|
}
|
|
|
|
const getMyContributionHeatmap = (
|
|
options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseContributionHeatmapResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/users/me/heatmap`,options
|
|
);
|
|
}
|
|
|
|
const listSshKeys = (
|
|
options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseSshKeyListResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/users/me/keys`,options
|
|
);
|
|
}
|
|
|
|
const addSshKey = (
|
|
addSshKeyParams: AddSshKeyParams, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseSshKeyResponse>> => {
|
|
return axiosInstance.post(
|
|
`/api/users/me/keys`,
|
|
addSshKeyParams,options
|
|
);
|
|
}
|
|
|
|
const getSshKey = (
|
|
keyId: number, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseSshKeyResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/users/me/keys/${keyId}`,options
|
|
);
|
|
}
|
|
|
|
const deleteSshKey = (
|
|
keyId: number, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.delete(
|
|
`/api/users/me/keys/${keyId}`,options
|
|
);
|
|
}
|
|
|
|
const updateSshKey = (
|
|
keyId: number,
|
|
updateSshKeyParams: UpdateSshKeyParams, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseSshKeyResponse>> => {
|
|
return axiosInstance.patch(
|
|
`/api/users/me/keys/${keyId}`,
|
|
updateSshKeyParams,options
|
|
);
|
|
}
|
|
|
|
const getNotificationPreferences = (
|
|
options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseNotificationPreferencesResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/users/me/notifications/preferences`,options
|
|
);
|
|
}
|
|
|
|
const updateNotificationPreferences = (
|
|
notificationPreferencesParams: NotificationPreferencesParams, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseNotificationPreferencesResponse>> => {
|
|
return axiosInstance.patch(
|
|
`/api/users/me/notifications/preferences`,
|
|
notificationPreferencesParams,options
|
|
);
|
|
}
|
|
|
|
const getPreferences = (
|
|
options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponsePreferencesResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/users/me/preferences`,options
|
|
);
|
|
}
|
|
|
|
const updatePreferences = (
|
|
preferencesParams: PreferencesParams, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponsePreferencesResponse>> => {
|
|
return axiosInstance.patch(
|
|
`/api/users/me/preferences`,
|
|
preferencesParams,options
|
|
);
|
|
}
|
|
|
|
const getMyProfile = (
|
|
options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseProfileResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/users/me/profile`,options
|
|
);
|
|
}
|
|
|
|
const updateMyProfile = (
|
|
updateProfileParams: UpdateProfileParams, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseProfileResponse>> => {
|
|
return axiosInstance.patch(
|
|
`/api/users/me/profile`,
|
|
updateProfileParams,options
|
|
);
|
|
}
|
|
|
|
const getCurrentUserProjects = (
|
|
options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseUserProjectsResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/users/me/projects`,options
|
|
);
|
|
}
|
|
|
|
const getCurrentUserRepos = (
|
|
options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseUserReposResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/users/me/repos`,options
|
|
);
|
|
}
|
|
|
|
const getProfileByUsername = (
|
|
username: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseProfileResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/users/${username}`,options
|
|
);
|
|
}
|
|
|
|
const getUserActivity = (
|
|
username: string,
|
|
params?: GetUserActivityParams, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseUserActivityResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/users/${username}/activity`,{
|
|
...options,
|
|
params: {...params, ...options?.params},}
|
|
);
|
|
}
|
|
|
|
const isSubscribedToTarget = (
|
|
username: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.get(
|
|
`/api/users/${username}/follow`,options
|
|
);
|
|
}
|
|
|
|
const subscribeTarget = (
|
|
username: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.post(
|
|
`/api/users/${username}/follow`,undefined,options
|
|
);
|
|
}
|
|
|
|
const unsubscribeTarget = (
|
|
username: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.delete(
|
|
`/api/users/${username}/follow`,options
|
|
);
|
|
}
|
|
|
|
const getSubscribers = (
|
|
username: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseVecSubscriptionInfo>> => {
|
|
return axiosInstance.get(
|
|
`/api/users/${username}/followers`,options
|
|
);
|
|
}
|
|
|
|
const getSubscriberCount = (
|
|
username: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.get(
|
|
`/api/users/${username}/followers/count`,options
|
|
);
|
|
}
|
|
|
|
const getFollowingList = (
|
|
username: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseVecUserCard>> => {
|
|
return axiosInstance.get(
|
|
`/api/users/${username}/following`,options
|
|
);
|
|
}
|
|
|
|
const getSubscriptionCount = (
|
|
username: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<void>> => {
|
|
return axiosInstance.get(
|
|
`/api/users/${username}/following/count`,options
|
|
);
|
|
}
|
|
|
|
const getContributionHeatmap = (
|
|
username: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseContributionHeatmapResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/users/${username}/heatmap`,options
|
|
);
|
|
}
|
|
|
|
const getUserInfo = (
|
|
username: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseUserInfoExternal>> => {
|
|
return axiosInstance.get(
|
|
`/api/users/${username}/info`,options
|
|
);
|
|
}
|
|
|
|
const getUserProjects = (
|
|
username: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseUserProjectsResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/users/${username}/projects`,options
|
|
);
|
|
}
|
|
|
|
const getUserRepos = (
|
|
username: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseUserReposResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/users/${username}/repos`,options
|
|
);
|
|
}
|
|
|
|
const getUserStars = (
|
|
username: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseUserStarsResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/users/${username}/stars`,options
|
|
);
|
|
}
|
|
|
|
const getUserSummary = (
|
|
username: string, options?: AxiosRequestConfig
|
|
): Promise<AxiosResponse<ApiResponseUserSummaryResponse>> => {
|
|
return axiosInstance.get(
|
|
`/api/users/${username}/summary`,options
|
|
);
|
|
}
|
|
|
|
return {modelCapabilityCreate,modelCapabilityGet,modelCapabilityDelete,modelCapabilityUpdate,triggerCodeReview,modelList,modelCreate,modelCatalog,modelGet,modelDelete,modelUpdate,modelParameterProfileCreate,modelParameterProfileGet,modelParameterProfileDelete,modelParameterProfileUpdate,generatePrDescription,modelPricingCreate,modelPricingGet,modelPricingDelete,modelPricingUpdate,providerList,providerCreate,providerGet,providerDelete,providerUpdate,modelVersionList,modelVersionCreate,modelVersionGet,modelVersionDelete,modelVersionUpdate,modelCapabilityList,modelParameterProfileList,modelPricingList,triageIssue,aiConversationList,aiConversationCreate,aiConversationGet,aiConversationDelete,aiConversationUpdate,aiMessageList,aiMessageCreate,aiMessageGet,aiMessageChildren,aiConversationFork,aiMessageResend,aiMessageStop,messageStream,aiConversationShare,aiSharedConversationGet,api2faDisable,api2faEnable,api2faStatus,api2faVerify,apiAuthCaptcha,apiEmailGet,apiEmailChange,apiEmailVerify,apiAuthLogin,apiAuthLogout,apiAuthMe,apiUserChangePassword,apiUserConfirmPasswordReset,apiUserRequestPasswordReset,apiAuthRegister,gitInitBare,gitIsRepo,gitOpen,gitOpenBare,issueList,issueCreate,issueSummary,issueGet,issueDelete,issueUpdate,issueAssigneeList,issueAssigneeAdd,issueAssigneeRemove,issueClose,issueCommentList,issueCommentCreate,issueCommentGet,issueCommentDelete,issueCommentUpdate,issueCommentReactionList,issueCommentReactionAdd,issueCommentReactionRemove,issueLabelList,issueLabelAdd,issueLabelAddBulk,issueLabelRemove,issuePullRequestList,issuePullRequestLink,issuePullRequestUnlink,issueReactionList,issueReactionAdd,issueReactionRemove,issueReopen,issueRepoList,issueRepoLink,issueRepoUnlink,issueSubscribe,issueUnsubscribe,issueSubscriberList,labelList,labelCreate,labelDelete,mentionList,mentionReadAll,notificationList,notificationMarkAllRead,notificationArchive,notificationMarkRead,projectPresence,categoryList,categoryCreate,roomList,roomCreate,projectCreate,projectMyInvitations,projectMyJoinRequests,projectInfo,projectActivities,projectLogActivity,projectAuditLogs,projectLogAudit,projectAuditLog,projectBilling,projectBillingErrors,projectBillingHistory,boardList,boardCreate,boardGet,boardDelete,boardUpdate,columnCreate,cardCreate,cardDelete,cardUpdate,cardMove,columnDelete,columnUpdate,projectInvitations,projectInviteUser,projectAcceptInvitation,projectRejectInvitation,projectCancelInvitation,projectJoinRequests,projectSubmitJoinRequest,projectCancelJoinRequest,projectProcessJoinRequest,projectJoinAnswers,projectSubmitJoinAnswers,projectJoinSettings,projectUpdateJoinSettings,projectLabels,projectCreateLabel,projectGetLabel,projectDeleteLabel,projectUpdateLabel,projectIsLike,projectLike,projectUnlike,projectLikesCount,projectLikeUsers,projectMembers,projectMembersGrouped,projectUpdateMemberRole,projectRemoveMember,projectRepos,projectRepoCreate,projectRolePriorities,projectUpsertRolePriority,projectDeleteRolePriority,projectExchangeName,projectExchangeTitle,projectExchangeVisibility,skillList,skillCreate,skillScan,skillGet,skillDelete,skillUpdate,projectStats,projectIsWatch,projectWatch,projectUnwatch,projectWatchesCount,projectWatchUsers,projectTransferRepo,pullRequestList,pullRequestCreate,pullRequestSummary,pullRequestGet,pullRequestDelete,pullRequestUpdate,pullRequestClose,pullRequestReopen,reviewCommentList,reviewCommentCreate,reviewCommentDelete,reviewCommentUpdate,reviewCommentReply,reviewCommentResolve,reviewCommentUnresolve,prCommitsList,mergeConflictCheck,prDiffSideBySide,mergeAnalysis,mergeExecute,mergeAbort,mergeIsInProgress,reviewRequestList,reviewRequestCreate,reviewRequestDelete,reviewRequestDismiss,reviewList,reviewSubmit,reviewUpdate,reviewDelete,branchProtectionList,branchProtectionCreate,branchProtectionCheckApprovals,branchProtectionGet,branchProtectionDelete,branchProtectionUpdate,gitUpdateRepo,gitArchive,gitArchiveCached,gitArchiveInvalidate,gitArchiveInvalidateAll,gitArchiveList,gitArchiveSummary,gitBlameFile,gitBlobCreate,gitBlobGet,gitBlobContent,gitBlobExists,gitBlobIsBinary,gitBlobSize,gitBranchList,gitBranchCreate,gitBranchCurrent,gitBranchDiff,gitBranchFastForward,gitBranchIsAncestor,gitBranchIsConflicted,gitBranchIsDetached,gitBranchIsMerged,gitBranchMergeBase,gitBranchMove,gitBranchDeleteRemote,gitBranchRename,gitBranchSummary,gitBranchSetUpstream,gitBranchGet,gitBranchDelete,gitBranchExists,gitBranchIsHead,gitBranchTrackingDifference,gitBranchUpstream,gitCommitLog,gitCommitCreate,gitCommitBranches,gitCommitCount,gitCommitGraph,gitCommitGraphReact,gitCommitReflog,gitCommitResolveRev,gitCommitTags,gitCommitWalk,gitCommitGet,gitCommitAmend,gitCommitAncestors,gitCommitAuthor,gitCommitCherryPick,gitCommitCherryPickAbort,gitCommitDescendants,gitCommitExists,gitCommitFirstParent,gitCommitIsCommit,gitCommitIsMerge,gitCommitIsTip,gitCommitMessage,gitCommitParentCount,gitCommitParentIds,gitCommitParent,gitCommitRefCount,gitCommitRefs,gitCommitRevert,gitCommitRevertAbort,gitCommitShortId,gitCommitSummary,gitCommitTreeId,gitConfigEntries,gitConfigGet,gitConfigSet,gitConfigDelete,gitConfigHas,gitContributors,gitDescriptionGet,gitDescriptionSet,gitDescriptionReset,gitDescriptionExists,gitDiffTreeToTree,gitDiffCommitToWorkdir,gitDiffCommitToIndex,gitDiffIndexToTree,gitDiffPatchId,gitDiffSideBySide,gitDiffStats,gitDiffWorkdirToIndex,gitMergeAbort,gitMergeAnalysisForRef,gitMergeAnalysis,gitMergeBase,gitMergeCommits,gitMergeheadList,gitMergeIsInProgress,gitMergeIsConflicted,gitMergeTrees,gitReadme,gitRefList,gitRefUpdate,gitRefCreate,gitRefRename,gitRefGet,gitRefDelete,gitRefExists,gitRefTarget,gitStar,gitUnstar,gitStarCount,gitIsStarred,gitStarUserList,gitTagList,gitTagCreate,gitTagCount,gitTagCreateLightweight,gitTagUpdateMessage,gitTagListNames,gitTagRename,gitTagSummary,gitTagGet,gitTagDelete,gitTagExists,gitTagIsAnnotated,gitTagMessage,gitTagTagger,gitTagTarget,gitTreeDiffstats,gitTreeEntryByCommitPath,gitTreeGet,gitTreeEntryByPath,gitTreeEntryCount,gitTreeEntry,gitTreeExists,gitTreeIsEmpty,gitTreeList,gitWatch,gitUnwatch,gitWatchCount,gitIsWatched,gitWatchUserList,gitWebhookList,gitWebhookCreate,gitWebhookGet,gitWebhookDelete,gitWebhookUpdate,categoryDelete,categoryUpdate,roomGet,roomDelete,roomUpdate,accessGrant,accessRevoke,aiList,aiUpsert,aiDelete,messageList,messageCreate,messageSearch,messageGet,messageUpdate,messageEditHistory,pinAdd,pinRemove,messageRevoke,participantList,pinList,stateUpdateDnd,stateSetReadSeq,threadList,threadCreate,threadMessages,search,searchMessages,listAccessKeys,createAccessKey,deleteAccessKey,uploadAvatar,userBilling,userBillingErrors,userBillingHistory,getMyContributionHeatmap,listSshKeys,addSshKey,getSshKey,deleteSshKey,updateSshKey,getNotificationPreferences,updateNotificationPreferences,getPreferences,updatePreferences,getMyProfile,updateMyProfile,getCurrentUserProjects,getCurrentUserRepos,getProfileByUsername,getUserActivity,isSubscribedToTarget,subscribeTarget,unsubscribeTarget,getSubscribers,getSubscriberCount,getFollowingList,getSubscriptionCount,getContributionHeatmap,getUserInfo,getUserProjects,getUserRepos,getUserStars,getUserSummary}};
|
|
export type ModelCapabilityCreateResult = AxiosResponse<ModelCapabilityResponse>
|
|
export type ModelCapabilityGetResult = AxiosResponse<ModelCapabilityResponse>
|
|
export type ModelCapabilityDeleteResult = AxiosResponse<void>
|
|
export type ModelCapabilityUpdateResult = AxiosResponse<ModelCapabilityResponse>
|
|
export type TriggerCodeReviewResult = AxiosResponse<TriggerCodeReviewResponse>
|
|
export type ModelListResult = AxiosResponse<ModelResponse[]>
|
|
export type ModelCreateResult = AxiosResponse<ModelResponse>
|
|
export type ModelCatalogResult = AxiosResponse<ModelListResponse>
|
|
export type ModelGetResult = AxiosResponse<ModelResponse>
|
|
export type ModelDeleteResult = AxiosResponse<void>
|
|
export type ModelUpdateResult = AxiosResponse<ModelResponse>
|
|
export type ModelParameterProfileCreateResult = AxiosResponse<ModelParameterProfileResponse>
|
|
export type ModelParameterProfileGetResult = AxiosResponse<ModelParameterProfileResponse>
|
|
export type ModelParameterProfileDeleteResult = AxiosResponse<void>
|
|
export type ModelParameterProfileUpdateResult = AxiosResponse<ModelParameterProfileResponse>
|
|
export type GeneratePrDescriptionResult = AxiosResponse<GeneratePrDescriptionResponse>
|
|
export type ModelPricingCreateResult = AxiosResponse<ModelPricingResponse>
|
|
export type ModelPricingGetResult = AxiosResponse<ModelPricingResponse>
|
|
export type ModelPricingDeleteResult = AxiosResponse<void>
|
|
export type ModelPricingUpdateResult = AxiosResponse<ModelPricingResponse>
|
|
export type ProviderListResult = AxiosResponse<ProviderResponse[]>
|
|
export type ProviderCreateResult = AxiosResponse<ProviderResponse>
|
|
export type ProviderGetResult = AxiosResponse<ProviderResponse>
|
|
export type ProviderDeleteResult = AxiosResponse<void>
|
|
export type ProviderUpdateResult = AxiosResponse<ProviderResponse>
|
|
export type ModelVersionListResult = AxiosResponse<ModelVersionResponse[]>
|
|
export type ModelVersionCreateResult = AxiosResponse<ModelVersionResponse>
|
|
export type ModelVersionGetResult = AxiosResponse<ModelVersionResponse>
|
|
export type ModelVersionDeleteResult = AxiosResponse<void>
|
|
export type ModelVersionUpdateResult = AxiosResponse<ModelVersionResponse>
|
|
export type ModelCapabilityListResult = AxiosResponse<ModelCapabilityResponse[]>
|
|
export type ModelParameterProfileListResult = AxiosResponse<ModelParameterProfileResponse[]>
|
|
export type ModelPricingListResult = AxiosResponse<ModelPricingResponse[]>
|
|
export type TriageIssueResult = AxiosResponse<ApiResponseIssueTriageResponse>
|
|
export type AiConversationListResult = AxiosResponse<ApiResponseVecConversationResponse>
|
|
export type AiConversationCreateResult = AxiosResponse<ApiResponseConversationResponse>
|
|
export type AiConversationGetResult = AxiosResponse<ApiResponseConversationResponse>
|
|
export type AiConversationDeleteResult = AxiosResponse<void>
|
|
export type AiConversationUpdateResult = AxiosResponse<void>
|
|
export type AiMessageListResult = AxiosResponse<ApiResponseVecMessageResponse>
|
|
export type AiMessageCreateResult = AxiosResponse<ApiResponseMessageResponse>
|
|
export type AiMessageGetResult = AxiosResponse<ApiResponseMessageResponse>
|
|
export type AiMessageChildrenResult = AxiosResponse<ApiResponseVecMessageResponse>
|
|
export type AiConversationForkResult = AxiosResponse<ApiResponseForkConversationResponse>
|
|
export type AiMessageResendResult = AxiosResponse<ApiResponseMessageResponse>
|
|
export type AiMessageStopResult = AxiosResponse<void>
|
|
export type MessageStreamResult = AxiosResponse<void>
|
|
export type AiConversationShareResult = AxiosResponse<ApiResponseShareResponse>
|
|
export type AiSharedConversationGetResult = AxiosResponse<ApiResponseConversationResponse>
|
|
export type Api2faDisableResult = AxiosResponse<void>
|
|
export type Api2faEnableResult = AxiosResponse<Enable2FAResponse>
|
|
export type Api2faStatusResult = AxiosResponse<Get2FAStatusResponse>
|
|
export type Api2faVerifyResult = AxiosResponse<void>
|
|
export type ApiAuthCaptchaResult = AxiosResponse<ApiResponseCaptchaResponse>
|
|
export type ApiEmailGetResult = AxiosResponse<ApiResponseEmailResponse>
|
|
export type ApiEmailChangeResult = AxiosResponse<ApiResponseString>
|
|
export type ApiEmailVerifyResult = AxiosResponse<ApiResponseString>
|
|
export type ApiAuthLoginResult = AxiosResponse<ApiResponseString>
|
|
export type ApiAuthLogoutResult = AxiosResponse<ApiResponseString>
|
|
export type ApiAuthMeResult = AxiosResponse<ApiResponseContextMe>
|
|
export type ApiUserChangePasswordResult = AxiosResponse<ApiResponseString>
|
|
export type ApiUserConfirmPasswordResetResult = AxiosResponse<ApiResponseString>
|
|
export type ApiUserRequestPasswordResetResult = AxiosResponse<ApiResponseString>
|
|
export type ApiAuthRegisterResult = AxiosResponse<ApiResponseApiError>
|
|
export type GitInitBareResult = AxiosResponse<ApiResponseGitInitResponse>
|
|
export type GitIsRepoResult = AxiosResponse<ApiResponseBool>
|
|
export type GitOpenResult = AxiosResponse<ApiResponseGitInitResponse>
|
|
export type GitOpenBareResult = AxiosResponse<ApiResponseGitInitResponse>
|
|
export type IssueListResult = AxiosResponse<ApiResponseIssueListResponse>
|
|
export type IssueCreateResult = AxiosResponse<ApiResponseIssueResponse>
|
|
export type IssueSummaryResult = AxiosResponse<ApiResponseIssueSummaryResponse>
|
|
export type IssueGetResult = AxiosResponse<ApiResponseIssueResponse>
|
|
export type IssueDeleteResult = AxiosResponse<void>
|
|
export type IssueUpdateResult = AxiosResponse<ApiResponseIssueResponse>
|
|
export type IssueAssigneeListResult = AxiosResponse<ApiResponseVecIssueAssigneeResponse>
|
|
export type IssueAssigneeAddResult = AxiosResponse<ApiResponseIssueAssigneeResponse>
|
|
export type IssueAssigneeRemoveResult = AxiosResponse<void>
|
|
export type IssueCloseResult = AxiosResponse<ApiResponseIssueResponse>
|
|
export type IssueCommentListResult = AxiosResponse<ApiResponseIssueCommentListResponse>
|
|
export type IssueCommentCreateResult = AxiosResponse<ApiResponseIssueCommentResponse>
|
|
export type IssueCommentGetResult = AxiosResponse<ApiResponseIssueCommentResponse>
|
|
export type IssueCommentDeleteResult = AxiosResponse<void>
|
|
export type IssueCommentUpdateResult = AxiosResponse<ApiResponseIssueCommentResponse>
|
|
export type IssueCommentReactionListResult = AxiosResponse<ApiResponseReactionListResponse>
|
|
export type IssueCommentReactionAddResult = AxiosResponse<ApiResponseReactionResponse>
|
|
export type IssueCommentReactionRemoveResult = AxiosResponse<void>
|
|
export type IssueLabelListResult = AxiosResponse<ApiResponseVecIssueLabelResponse>
|
|
export type IssueLabelAddResult = AxiosResponse<ApiResponseIssueLabelResponse>
|
|
export type IssueLabelAddBulkResult = AxiosResponse<ApiResponseVecIssueLabelResponse>
|
|
export type IssueLabelRemoveResult = AxiosResponse<void>
|
|
export type IssuePullRequestListResult = AxiosResponse<ApiResponseVecIssuePullRequestResponse>
|
|
export type IssuePullRequestLinkResult = AxiosResponse<ApiResponseIssuePullRequestResponse>
|
|
export type IssuePullRequestUnlinkResult = AxiosResponse<void>
|
|
export type IssueReactionListResult = AxiosResponse<ApiResponseReactionListResponse>
|
|
export type IssueReactionAddResult = AxiosResponse<ApiResponseReactionResponse>
|
|
export type IssueReactionRemoveResult = AxiosResponse<void>
|
|
export type IssueReopenResult = AxiosResponse<ApiResponseIssueResponse>
|
|
export type IssueRepoListResult = AxiosResponse<ApiResponseVecIssueRepoResponse>
|
|
export type IssueRepoLinkResult = AxiosResponse<ApiResponseIssueRepoResponse>
|
|
export type IssueRepoUnlinkResult = AxiosResponse<void>
|
|
export type IssueSubscribeResult = AxiosResponse<ApiResponseIssueSubscriberResponse>
|
|
export type IssueUnsubscribeResult = AxiosResponse<void>
|
|
export type IssueSubscriberListResult = AxiosResponse<ApiResponseVecIssueSubscriberResponse>
|
|
export type LabelListResult = AxiosResponse<ApiResponseVecLabelResponse>
|
|
export type LabelCreateResult = AxiosResponse<ApiResponseLabelResponse>
|
|
export type LabelDeleteResult = AxiosResponse<void>
|
|
export type MentionListResult = AxiosResponse<ApiResponseVecMentionNotificationResponse>
|
|
export type MentionReadAllResult = AxiosResponse<void>
|
|
export type NotificationListResult = AxiosResponse<ApiResponseNotificationListResponse>
|
|
export type NotificationMarkAllReadResult = AxiosResponse<void>
|
|
export type NotificationArchiveResult = AxiosResponse<void>
|
|
export type NotificationMarkReadResult = AxiosResponse<void>
|
|
export type ProjectPresenceResult = AxiosResponse<ApiResponseVecPresenceChanged>
|
|
export type CategoryListResult = AxiosResponse<ApiResponseVecRoomCategoryResponse>
|
|
export type CategoryCreateResult = AxiosResponse<ApiResponseRoomCategoryResponse>
|
|
export type RoomListResult = AxiosResponse<ApiResponseVecRoomResponse>
|
|
export type RoomCreateResult = AxiosResponse<ApiResponseRoomResponse>
|
|
export type ProjectCreateResult = AxiosResponse<ApiResponseProjectInitResponse>
|
|
export type ProjectMyInvitationsResult = AxiosResponse<ApiResponseInvitationListResponse>
|
|
export type ProjectMyJoinRequestsResult = AxiosResponse<ApiResponseJoinRequestListResponse>
|
|
export type ProjectInfoResult = AxiosResponse<ApiResponseProjectInfoRelational>
|
|
export type ProjectActivitiesResult = AxiosResponse<ApiResponseActivityLogListResponse>
|
|
export type ProjectLogActivityResult = AxiosResponse<ApiResponseActivityLogResponse>
|
|
export type ProjectAuditLogsResult = AxiosResponse<ApiResponseVecAuditLogResponse>
|
|
export type ProjectLogAuditResult = AxiosResponse<ApiResponseAuditLogResponse>
|
|
export type ProjectAuditLogResult = AxiosResponse<ApiResponseAuditLogResponse>
|
|
export type ProjectBillingResult = AxiosResponse<ApiResponseProjectBillingCurrentResponse>
|
|
export type ProjectBillingErrorsResult = AxiosResponse<ApiResponseBillingErrorsResponse>
|
|
export type ProjectBillingHistoryResult = AxiosResponse<ApiResponseProjectBillingHistoryResponse>
|
|
export type BoardListResult = AxiosResponse<ApiResponseVecBoardResponse>
|
|
export type BoardCreateResult = AxiosResponse<ApiResponseBoardResponse>
|
|
export type BoardGetResult = AxiosResponse<ApiResponseBoardWithColumnsResponse>
|
|
export type BoardDeleteResult = AxiosResponse<void>
|
|
export type BoardUpdateResult = AxiosResponse<ApiResponseBoardResponse>
|
|
export type ColumnCreateResult = AxiosResponse<ApiResponseColumnResponse>
|
|
export type CardCreateResult = AxiosResponse<ApiResponseCardResponse>
|
|
export type CardDeleteResult = AxiosResponse<void>
|
|
export type CardUpdateResult = AxiosResponse<ApiResponseCardResponse>
|
|
export type CardMoveResult = AxiosResponse<ApiResponseCardResponse>
|
|
export type ColumnDeleteResult = AxiosResponse<void>
|
|
export type ColumnUpdateResult = AxiosResponse<ApiResponseColumnResponse>
|
|
export type ProjectInvitationsResult = AxiosResponse<ApiResponseInvitationListResponse>
|
|
export type ProjectInviteUserResult = AxiosResponse<void>
|
|
export type ProjectAcceptInvitationResult = AxiosResponse<void>
|
|
export type ProjectRejectInvitationResult = AxiosResponse<void>
|
|
export type ProjectCancelInvitationResult = AxiosResponse<void>
|
|
export type ProjectJoinRequestsResult = AxiosResponse<ApiResponseJoinRequestListResponse>
|
|
export type ProjectSubmitJoinRequestResult = AxiosResponse<void>
|
|
export type ProjectCancelJoinRequestResult = AxiosResponse<void>
|
|
export type ProjectProcessJoinRequestResult = AxiosResponse<void>
|
|
export type ProjectJoinAnswersResult = AxiosResponse<ApiResponseJoinAnswersListResponse>
|
|
export type ProjectSubmitJoinAnswersResult = AxiosResponse<void>
|
|
export type ProjectJoinSettingsResult = AxiosResponse<ApiResponseJoinSettingsResponse>
|
|
export type ProjectUpdateJoinSettingsResult = AxiosResponse<ApiResponseJoinSettingsResponse>
|
|
export type ProjectLabelsResult = AxiosResponse<ApiResponseLabelListResponse>
|
|
export type ProjectCreateLabelResult = AxiosResponse<ApiResponseLabelResponse>
|
|
export type ProjectGetLabelResult = AxiosResponse<ApiResponseLabelResponse>
|
|
export type ProjectDeleteLabelResult = AxiosResponse<void>
|
|
export type ProjectUpdateLabelResult = AxiosResponse<ApiResponseLabelResponse>
|
|
export type ProjectIsLikeResult = AxiosResponse<ApiResponseIsLikeResponse>
|
|
export type ProjectLikeResult = AxiosResponse<void>
|
|
export type ProjectUnlikeResult = AxiosResponse<void>
|
|
export type ProjectLikesCountResult = AxiosResponse<void>
|
|
export type ProjectLikeUsersResult = AxiosResponse<ApiResponseVecLikeUserInfo>
|
|
export type ProjectMembersResult = AxiosResponse<ApiResponseMemberListResponse>
|
|
export type ProjectMembersGroupedResult = AxiosResponse<ApiResponseGroupedMemberListResponse>
|
|
export type ProjectUpdateMemberRoleResult = AxiosResponse<void>
|
|
export type ProjectRemoveMemberResult = AxiosResponse<void>
|
|
export type ProjectReposResult = AxiosResponse<ApiResponseProjectRepositoryPagination>
|
|
export type ProjectRepoCreateResult = AxiosResponse<ApiResponseProjectRepoCreateResponse>
|
|
export type ProjectRolePrioritiesResult = AxiosResponse<ApiResponseRolePriorityListResponse>
|
|
export type ProjectUpsertRolePriorityResult = AxiosResponse<ApiResponseRolePriorityInfo>
|
|
export type ProjectDeleteRolePriorityResult = AxiosResponse<void>
|
|
export type ProjectExchangeNameResult = AxiosResponse<void>
|
|
export type ProjectExchangeTitleResult = AxiosResponse<void>
|
|
export type ProjectExchangeVisibilityResult = AxiosResponse<void>
|
|
export type SkillListResult = AxiosResponse<ApiResponseVecSkillResponse>
|
|
export type SkillCreateResult = AxiosResponse<ApiResponseSkillResponse>
|
|
export type SkillScanResult = AxiosResponse<ApiResponseScanResponse>
|
|
export type SkillGetResult = AxiosResponse<ApiResponseSkillResponse>
|
|
export type SkillDeleteResult = AxiosResponse<ApiResponseDeleteSkillResponse>
|
|
export type SkillUpdateResult = AxiosResponse<ApiResponseSkillResponse>
|
|
export type ProjectStatsResult = AxiosResponse<ApiResponseProjectStatsResponse>
|
|
export type ProjectIsWatchResult = AxiosResponse<ApiResponseIsWatchResponse>
|
|
export type ProjectWatchResult = AxiosResponse<void>
|
|
export type ProjectUnwatchResult = AxiosResponse<void>
|
|
export type ProjectWatchesCountResult = AxiosResponse<void>
|
|
export type ProjectWatchUsersResult = AxiosResponse<ApiResponseVecWatchUserInfo>
|
|
export type ProjectTransferRepoResult = AxiosResponse<ApiResponseTransferRepoResponse>
|
|
export type PullRequestListResult = AxiosResponse<ApiResponsePullRequestListResponse>
|
|
export type PullRequestCreateResult = AxiosResponse<ApiResponsePullRequestResponse>
|
|
export type PullRequestSummaryResult = AxiosResponse<ApiResponsePullRequestSummaryResponse>
|
|
export type PullRequestGetResult = AxiosResponse<ApiResponsePullRequestResponse>
|
|
export type PullRequestDeleteResult = AxiosResponse<void>
|
|
export type PullRequestUpdateResult = AxiosResponse<ApiResponsePullRequestResponse>
|
|
export type PullRequestCloseResult = AxiosResponse<ApiResponsePullRequestResponse>
|
|
export type PullRequestReopenResult = AxiosResponse<ApiResponsePullRequestResponse>
|
|
export type ReviewCommentListResult = AxiosResponse<ApiResponseReviewCommentListResponse>
|
|
export type ReviewCommentCreateResult = AxiosResponse<ApiResponseReviewCommentResponse>
|
|
export type ReviewCommentDeleteResult = AxiosResponse<void>
|
|
export type ReviewCommentUpdateResult = AxiosResponse<ApiResponseReviewCommentResponse>
|
|
export type ReviewCommentReplyResult = AxiosResponse<ApiResponseReviewCommentResponse>
|
|
export type ReviewCommentResolveResult = AxiosResponse<ApiResponseReviewCommentResponse>
|
|
export type ReviewCommentUnresolveResult = AxiosResponse<ApiResponseReviewCommentResponse>
|
|
export type PrCommitsListResult = AxiosResponse<ApiResponsePrCommitsListResponse>
|
|
export type MergeConflictCheckResult = AxiosResponse<ApiResponseMergeConflictResponse>
|
|
export type PrDiffSideBySideResult = AxiosResponse<ApiResponseSideBySideDiffResponse>
|
|
export type MergeAnalysisResult = AxiosResponse<ApiResponseMergeAnalysisResponse>
|
|
export type MergeExecuteResult = AxiosResponse<ApiResponseMergeResponse>
|
|
export type MergeAbortResult = AxiosResponse<void>
|
|
export type MergeIsInProgressResult = AxiosResponse<void>
|
|
export type ReviewRequestListResult = AxiosResponse<ApiResponseReviewRequestListResponse>
|
|
export type ReviewRequestCreateResult = AxiosResponse<ApiResponseReviewRequestResponse>
|
|
export type ReviewRequestDeleteResult = AxiosResponse<void>
|
|
export type ReviewRequestDismissResult = AxiosResponse<ApiResponseReviewRequestResponse>
|
|
export type ReviewListResult = AxiosResponse<ApiResponseReviewListResponse>
|
|
export type ReviewSubmitResult = AxiosResponse<ApiResponseReviewResponse>
|
|
export type ReviewUpdateResult = AxiosResponse<ApiResponseReviewResponse>
|
|
export type ReviewDeleteResult = AxiosResponse<void>
|
|
export type BranchProtectionListResult = AxiosResponse<ApiResponseVecBranchProtectionResponse>
|
|
export type BranchProtectionCreateResult = AxiosResponse<ApiResponseBranchProtectionResponse>
|
|
export type BranchProtectionCheckApprovalsResult = AxiosResponse<ApiResponseApprovalCheckResult>
|
|
export type BranchProtectionGetResult = AxiosResponse<ApiResponseBranchProtectionResponse>
|
|
export type BranchProtectionDeleteResult = AxiosResponse<void>
|
|
export type BranchProtectionUpdateResult = AxiosResponse<ApiResponseBranchProtectionResponse>
|
|
export type GitUpdateRepoResult = AxiosResponse<void>
|
|
export type GitArchiveResult = AxiosResponse<ApiResponseArchiveResponse>
|
|
export type GitArchiveCachedResult = AxiosResponse<ApiResponseArchiveCachedResponse>
|
|
export type GitArchiveInvalidateResult = AxiosResponse<ApiResponseArchiveInvalidateResponse>
|
|
export type GitArchiveInvalidateAllResult = AxiosResponse<ApiResponseArchiveInvalidateAllResponse>
|
|
export type GitArchiveListResult = AxiosResponse<ApiResponseArchiveListResponse>
|
|
export type GitArchiveSummaryResult = AxiosResponse<ApiResponseArchiveSummaryResponse>
|
|
export type GitBlameFileResult = AxiosResponse<BlameHunkResponse[]>
|
|
export type GitBlobCreateResult = AxiosResponse<ApiResponseBlobCreateResponse>
|
|
export type GitBlobGetResult = AxiosResponse<ApiResponseBlobInfoResponse>
|
|
export type GitBlobContentResult = AxiosResponse<ApiResponseBlobContentResponse>
|
|
export type GitBlobExistsResult = AxiosResponse<ApiResponseBlobExistsResponse>
|
|
export type GitBlobIsBinaryResult = AxiosResponse<ApiResponseBlobIsBinaryResponse>
|
|
export type GitBlobSizeResult = AxiosResponse<ApiResponseBlobSizeResponse>
|
|
export type GitBranchListResult = AxiosResponse<ApiResponseVecBranchInfoResponse>
|
|
export type GitBranchCreateResult = AxiosResponse<ApiResponseBranchInfoResponse>
|
|
export type GitBranchCurrentResult = AxiosResponse<ApiResponseBranchInfoResponse>
|
|
export type GitBranchDiffResult = AxiosResponse<ApiResponseBranchDiffResponse>
|
|
export type GitBranchFastForwardResult = AxiosResponse<ApiResponseBranchFastForwardResponse>
|
|
export type GitBranchIsAncestorResult = AxiosResponse<ApiResponseBranchIsAncestorResponse>
|
|
export type GitBranchIsConflictedResult = AxiosResponse<ApiResponseBranchIsConflictedResponse>
|
|
export type GitBranchIsDetachedResult = AxiosResponse<ApiResponseBranchIsDetachedResponse>
|
|
export type GitBranchIsMergedResult = AxiosResponse<ApiResponseBranchIsMergedResponse>
|
|
export type GitBranchMergeBaseResult = AxiosResponse<ApiResponseBranchMergeBaseResponse>
|
|
export type GitBranchMoveResult = AxiosResponse<ApiResponseBranchInfoResponse>
|
|
export type GitBranchDeleteRemoteResult = AxiosResponse<void>
|
|
export type GitBranchRenameResult = AxiosResponse<ApiResponseBranchInfoResponse>
|
|
export type GitBranchSummaryResult = AxiosResponse<ApiResponseBranchSummaryResponse>
|
|
export type GitBranchSetUpstreamResult = AxiosResponse<void>
|
|
export type GitBranchGetResult = AxiosResponse<ApiResponseBranchInfoResponse>
|
|
export type GitBranchDeleteResult = AxiosResponse<void>
|
|
export type GitBranchExistsResult = AxiosResponse<ApiResponseBranchExistsResponse>
|
|
export type GitBranchIsHeadResult = AxiosResponse<ApiResponseBranchIsHeadResponse>
|
|
export type GitBranchTrackingDifferenceResult = AxiosResponse<ApiResponseBranchTrackingDiffResponse>
|
|
export type GitBranchUpstreamResult = AxiosResponse<ApiResponseBranchInfoResponse>
|
|
export type GitCommitLogResult = AxiosResponse<ApiResponseCommitLogResponse>
|
|
export type GitCommitCreateResult = AxiosResponse<ApiResponseCommitCreateResponse>
|
|
export type GitCommitBranchesResult = AxiosResponse<ApiResponseCommitBranchesResponse>
|
|
export type GitCommitCountResult = AxiosResponse<ApiResponseCommitCountResponse>
|
|
export type GitCommitGraphResult = AxiosResponse<ApiResponseCommitGraphResponse>
|
|
export type GitCommitGraphReactResult = AxiosResponse<ApiResponseCommitGraphReactResponse>
|
|
export type GitCommitReflogResult = AxiosResponse<ApiResponseVecCommitReflogEntryResponse>
|
|
export type GitCommitResolveRevResult = AxiosResponse<ApiResponseString>
|
|
export type GitCommitTagsResult = AxiosResponse<ApiResponseCommitTagsResponse>
|
|
export type GitCommitWalkResult = AxiosResponse<ApiResponseVecCommitMetaResponse>
|
|
export type GitCommitGetResult = AxiosResponse<ApiResponseCommitMetaResponse>
|
|
export type GitCommitAmendResult = AxiosResponse<ApiResponseCommitMetaResponse>
|
|
export type GitCommitAncestorsResult = AxiosResponse<ApiResponseVecCommitMetaResponse>
|
|
export type GitCommitAuthorResult = AxiosResponse<ApiResponseCommitAuthorResponse>
|
|
export type GitCommitCherryPickResult = AxiosResponse<ApiResponseCommitMetaResponse>
|
|
export type GitCommitCherryPickAbortResult = AxiosResponse<ApiResponseBool>
|
|
export type GitCommitDescendantsResult = AxiosResponse<ApiResponseVecCommitMetaResponse>
|
|
export type GitCommitExistsResult = AxiosResponse<ApiResponseCommitExistsResponse>
|
|
export type GitCommitFirstParentResult = AxiosResponse<ApiResponseOptionCommitMetaResponse>
|
|
export type GitCommitIsCommitResult = AxiosResponse<ApiResponseCommitIsCommitResponse>
|
|
export type GitCommitIsMergeResult = AxiosResponse<ApiResponseCommitIsMergeResponse>
|
|
export type GitCommitIsTipResult = AxiosResponse<ApiResponseCommitIsTipResponse>
|
|
export type GitCommitMessageResult = AxiosResponse<ApiResponseCommitMessageResponse>
|
|
export type GitCommitParentCountResult = AxiosResponse<ApiResponseCommitParentCountResponse>
|
|
export type GitCommitParentIdsResult = AxiosResponse<ApiResponseCommitParentIdsResponse>
|
|
export type GitCommitParentResult = AxiosResponse<ApiResponseCommitMetaResponse>
|
|
export type GitCommitRefCountResult = AxiosResponse<ApiResponseCommitRefCountResponse>
|
|
export type GitCommitRefsResult = AxiosResponse<ApiResponseVecCommitRefInfoResponse>
|
|
export type GitCommitRevertResult = AxiosResponse<ApiResponseCommitMetaResponse>
|
|
export type GitCommitRevertAbortResult = AxiosResponse<ApiResponseBool>
|
|
export type GitCommitShortIdResult = AxiosResponse<ApiResponseCommitShortIdResponse>
|
|
export type GitCommitSummaryResult = AxiosResponse<ApiResponseCommitSummaryResponse>
|
|
export type GitCommitTreeIdResult = AxiosResponse<ApiResponseCommitTreeIdResponse>
|
|
export type GitConfigEntriesResult = AxiosResponse<ApiResponseConfigSnapshotResponse>
|
|
export type GitConfigGetResult = AxiosResponse<ApiResponseValue>
|
|
export type GitConfigSetResult = AxiosResponse<void>
|
|
export type GitConfigDeleteResult = AxiosResponse<void>
|
|
export type GitConfigHasResult = AxiosResponse<ApiResponseConfigBoolResponse>
|
|
export type GitContributorsResult = AxiosResponse<ApiResponseContributorsResponse>
|
|
export type GitDescriptionGetResult = AxiosResponse<ApiResponseDescriptionResponse>
|
|
export type GitDescriptionSetResult = AxiosResponse<ApiResponseDescriptionResponse>
|
|
export type GitDescriptionResetResult = AxiosResponse<ApiResponseDescriptionResponse>
|
|
export type GitDescriptionExistsResult = AxiosResponse<ApiResponseValue>
|
|
export type GitDiffTreeToTreeResult = AxiosResponse<ApiResponseDiffResultResponse>
|
|
export type GitDiffCommitToWorkdirResult = AxiosResponse<ApiResponseDiffResultResponse>
|
|
export type GitDiffCommitToIndexResult = AxiosResponse<ApiResponseDiffResultResponse>
|
|
export type GitDiffIndexToTreeResult = AxiosResponse<ApiResponseDiffResultResponse>
|
|
export type GitDiffPatchIdResult = AxiosResponse<ApiResponseDiffPatchIdResponse>
|
|
export type GitDiffSideBySideResult = AxiosResponse<ApiResponseSideBySideDiffResponse>
|
|
export type GitDiffStatsResult = AxiosResponse<ApiResponseDiffStatsResponse>
|
|
export type GitDiffWorkdirToIndexResult = AxiosResponse<ApiResponseDiffResultResponse>
|
|
export type GitMergeAbortResult = AxiosResponse<void>
|
|
export type GitMergeAnalysisForRefResult = AxiosResponse<ApiResponseMergeAnalysisResponse>
|
|
export type GitMergeAnalysisResult = AxiosResponse<ApiResponseMergeAnalysisResponse>
|
|
export type GitMergeBaseResult = AxiosResponse<ApiResponseString>
|
|
export type GitMergeCommitsResult = AxiosResponse<void>
|
|
export type GitMergeheadListResult = AxiosResponse<ApiResponseVecMergeheadInfoResponse>
|
|
export type GitMergeIsInProgressResult = AxiosResponse<ApiResponseValue>
|
|
export type GitMergeIsConflictedResult = AxiosResponse<ApiResponseValue>
|
|
export type GitMergeTreesResult = AxiosResponse<void>
|
|
export type GitReadmeResult = AxiosResponse<ApiResponseGitReadmeResponse>
|
|
export type GitRefListResult = AxiosResponse<ApiResponseVecRefInfoResponse>
|
|
export type GitRefUpdateResult = AxiosResponse<ApiResponseRefUpdateResponse>
|
|
export type GitRefCreateResult = AxiosResponse<ApiResponseRefUpdateResponse>
|
|
export type GitRefRenameResult = AxiosResponse<ApiResponseRefInfoResponse>
|
|
export type GitRefGetResult = AxiosResponse<ApiResponseRefInfoResponse>
|
|
export type GitRefDeleteResult = AxiosResponse<ApiResponseRefDeleteResponse>
|
|
export type GitRefExistsResult = AxiosResponse<ApiResponseRefExistsResponse>
|
|
export type GitRefTargetResult = AxiosResponse<ApiResponseRefTargetResponse>
|
|
export type GitStarResult = AxiosResponse<void>
|
|
export type GitUnstarResult = AxiosResponse<void>
|
|
export type GitStarCountResult = AxiosResponse<ApiResponseStarCountResponse>
|
|
export type GitIsStarredResult = AxiosResponse<ApiResponseValue>
|
|
export type GitStarUserListResult = AxiosResponse<ApiResponseStarUserListResponse>
|
|
export type GitTagListResult = AxiosResponse<ApiResponseVecTagInfoResponse>
|
|
export type GitTagCreateResult = AxiosResponse<ApiResponseTagInfoResponse>
|
|
export type GitTagCountResult = AxiosResponse<ApiResponseTagCountResponse>
|
|
export type GitTagCreateLightweightResult = AxiosResponse<ApiResponseTagInfoResponse>
|
|
export type GitTagUpdateMessageResult = AxiosResponse<ApiResponseTagInfoResponse>
|
|
export type GitTagListNamesResult = AxiosResponse<ApiResponseVecString>
|
|
export type GitTagRenameResult = AxiosResponse<ApiResponseTagInfoResponse>
|
|
export type GitTagSummaryResult = AxiosResponse<ApiResponseTagSummaryResponse>
|
|
export type GitTagGetResult = AxiosResponse<ApiResponseTagInfoResponse>
|
|
export type GitTagDeleteResult = AxiosResponse<void>
|
|
export type GitTagExistsResult = AxiosResponse<ApiResponseTagExistsResponse>
|
|
export type GitTagIsAnnotatedResult = AxiosResponse<ApiResponseTagIsAnnotatedResponse>
|
|
export type GitTagMessageResult = AxiosResponse<ApiResponseTagMessageResponse>
|
|
export type GitTagTaggerResult = AxiosResponse<ApiResponseTagTaggerResponse>
|
|
export type GitTagTargetResult = AxiosResponse<ApiResponseTagTargetResponse>
|
|
export type GitTreeDiffstatsResult = AxiosResponse<ApiResponseTreeDiffStatsResponse>
|
|
export type GitTreeEntryByCommitPathResult = AxiosResponse<ApiResponseTreeEntryResponse>
|
|
export type GitTreeGetResult = AxiosResponse<ApiResponseTreeInfoResponse>
|
|
export type GitTreeEntryByPathResult = AxiosResponse<ApiResponseTreeEntryResponse>
|
|
export type GitTreeEntryCountResult = AxiosResponse<ApiResponseTreeEntryCountResponse>
|
|
export type GitTreeEntryResult = AxiosResponse<ApiResponseTreeEntryResponse>
|
|
export type GitTreeExistsResult = AxiosResponse<ApiResponseTreeExistsResponse>
|
|
export type GitTreeIsEmptyResult = AxiosResponse<ApiResponseTreeIsEmptyResponse>
|
|
export type GitTreeListResult = AxiosResponse<ApiResponseVecTreeEntryResponse>
|
|
export type GitWatchResult = AxiosResponse<void>
|
|
export type GitUnwatchResult = AxiosResponse<void>
|
|
export type GitWatchCountResult = AxiosResponse<ApiResponseWatchCountResponse>
|
|
export type GitIsWatchedResult = AxiosResponse<ApiResponseValue>
|
|
export type GitWatchUserListResult = AxiosResponse<ApiResponseWatchUserListResponse>
|
|
export type GitWebhookListResult = AxiosResponse<ApiResponseWebhookListResponse>
|
|
export type GitWebhookCreateResult = AxiosResponse<ApiResponseWebhookResponse>
|
|
export type GitWebhookGetResult = AxiosResponse<ApiResponseWebhookResponse>
|
|
export type GitWebhookDeleteResult = AxiosResponse<void>
|
|
export type GitWebhookUpdateResult = AxiosResponse<ApiResponseWebhookResponse>
|
|
export type CategoryDeleteResult = AxiosResponse<void>
|
|
export type CategoryUpdateResult = AxiosResponse<ApiResponseRoomCategoryResponse>
|
|
export type RoomGetResult = AxiosResponse<ApiResponseRoomResponse>
|
|
export type RoomDeleteResult = AxiosResponse<void>
|
|
export type RoomUpdateResult = AxiosResponse<ApiResponseRoomResponse>
|
|
export type AccessGrantResult = AxiosResponse<void>
|
|
export type AccessRevokeResult = AxiosResponse<void>
|
|
export type AiListResult = AxiosResponse<ApiResponseVecRoomAiResponse>
|
|
export type AiUpsertResult = AxiosResponse<ApiResponseRoomAiResponse>
|
|
export type AiDeleteResult = AxiosResponse<void>
|
|
export type MessageListResult = AxiosResponse<ApiResponseRoomMessageListResponse>
|
|
export type MessageCreateResult = AxiosResponse<ApiResponseRoomMessageResponse>
|
|
export type MessageSearchResult = AxiosResponse<ApiResponseMessageSearchResponse>
|
|
export type MessageGetResult = AxiosResponse<ApiResponseRoomMessageResponse>
|
|
export type MessageUpdateResult = AxiosResponse<ApiResponseRoomMessageResponse>
|
|
export type MessageEditHistoryResult = AxiosResponse<ApiResponseMessageEditHistoryResponse>
|
|
export type PinAddResult = AxiosResponse<ApiResponseRoomPinResponse>
|
|
export type PinRemoveResult = AxiosResponse<void>
|
|
export type MessageRevokeResult = AxiosResponse<ApiResponseRoomMessageResponse>
|
|
export type ParticipantListResult = AxiosResponse<ApiResponseRoomParticipantListResponse>
|
|
export type PinListResult = AxiosResponse<ApiResponseVecRoomPinResponse>
|
|
export type StateUpdateDndResult = AxiosResponse<ApiResponseRoomUserStateResponse>
|
|
export type StateSetReadSeqResult = AxiosResponse<ApiResponseRoomUserStateResponse>
|
|
export type ThreadListResult = AxiosResponse<ApiResponseVecRoomThreadResponse>
|
|
export type ThreadCreateResult = AxiosResponse<ApiResponseRoomThreadResponse>
|
|
export type ThreadMessagesResult = AxiosResponse<ApiResponseRoomMessageListResponse>
|
|
export type SearchResult = AxiosResponse<ApiResponseSearchResponse>
|
|
export type SearchMessagesResult = AxiosResponse<ApiResponseGlobalMessageSearchResponse>
|
|
export type ListAccessKeysResult = AxiosResponse<ApiResponseAccessKeyListResponse>
|
|
export type CreateAccessKeyResult = AxiosResponse<ApiResponseAccessKeyResponse>
|
|
export type DeleteAccessKeyResult = AxiosResponse<void>
|
|
export type UploadAvatarResult = AxiosResponse<ApiResponseAvatarUploadResponse>
|
|
export type UserBillingResult = AxiosResponse<ApiResponseUserBillingResponse>
|
|
export type UserBillingErrorsResult = AxiosResponse<ApiResponseUserBillingErrorsResponse>
|
|
export type UserBillingHistoryResult = AxiosResponse<ApiResponseUserBillingHistoryResponse>
|
|
export type GetMyContributionHeatmapResult = AxiosResponse<ApiResponseContributionHeatmapResponse>
|
|
export type ListSshKeysResult = AxiosResponse<ApiResponseSshKeyListResponse>
|
|
export type AddSshKeyResult = AxiosResponse<ApiResponseSshKeyResponse>
|
|
export type GetSshKeyResult = AxiosResponse<ApiResponseSshKeyResponse>
|
|
export type DeleteSshKeyResult = AxiosResponse<void>
|
|
export type UpdateSshKeyResult = AxiosResponse<ApiResponseSshKeyResponse>
|
|
export type GetNotificationPreferencesResult = AxiosResponse<ApiResponseNotificationPreferencesResponse>
|
|
export type UpdateNotificationPreferencesResult = AxiosResponse<ApiResponseNotificationPreferencesResponse>
|
|
export type GetPreferencesResult = AxiosResponse<ApiResponsePreferencesResponse>
|
|
export type UpdatePreferencesResult = AxiosResponse<ApiResponsePreferencesResponse>
|
|
export type GetMyProfileResult = AxiosResponse<ApiResponseProfileResponse>
|
|
export type UpdateMyProfileResult = AxiosResponse<ApiResponseProfileResponse>
|
|
export type GetCurrentUserProjectsResult = AxiosResponse<ApiResponseUserProjectsResponse>
|
|
export type GetCurrentUserReposResult = AxiosResponse<ApiResponseUserReposResponse>
|
|
export type GetProfileByUsernameResult = AxiosResponse<ApiResponseProfileResponse>
|
|
export type GetUserActivityResult = AxiosResponse<ApiResponseUserActivityResponse>
|
|
export type IsSubscribedToTargetResult = AxiosResponse<void>
|
|
export type SubscribeTargetResult = AxiosResponse<void>
|
|
export type UnsubscribeTargetResult = AxiosResponse<void>
|
|
export type GetSubscribersResult = AxiosResponse<ApiResponseVecSubscriptionInfo>
|
|
export type GetSubscriberCountResult = AxiosResponse<void>
|
|
export type GetFollowingListResult = AxiosResponse<ApiResponseVecUserCard>
|
|
export type GetSubscriptionCountResult = AxiosResponse<void>
|
|
export type GetContributionHeatmapResult = AxiosResponse<ApiResponseContributionHeatmapResponse>
|
|
export type GetUserInfoResult = AxiosResponse<ApiResponseUserInfoExternal>
|
|
export type GetUserProjectsResult = AxiosResponse<ApiResponseUserProjectsResponse>
|
|
export type GetUserReposResult = AxiosResponse<ApiResponseUserReposResponse>
|
|
export type GetUserStarsResult = AxiosResponse<ApiResponseUserStarsResponse>
|
|
export type GetUserSummaryResult = AxiosResponse<ApiResponseUserSummaryResponse>
|