/** * Gitea API. * This documentation describes the Gitea API. * * OpenAPI spec version: 1.15.0+dev-49-gaee5ef005 * * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. */ import { AxiosPromise, AxiosInstance } from 'axios'; import { Configuration } from '../configuration'; import { RequestArgs, BaseAPI } from '../base'; import { AddTimeOption } from '../models'; import { Comment } from '../models'; import { CreateIssueCommentOption } from '../models'; import { CreateIssueOption } from '../models'; import { CreateLabelOption } from '../models'; import { CreateMilestoneOption } from '../models'; import { EditDeadlineOption } from '../models'; import { EditIssueCommentOption } from '../models'; import { EditIssueOption } from '../models'; import { EditLabelOption } from '../models'; import { EditMilestoneOption } from '../models'; import { EditReactionOption } from '../models'; import { Issue } from '../models'; import { IssueDeadline } from '../models'; import { IssueLabelsOption } from '../models'; import { Label } from '../models'; import { Milestone } from '../models'; import { Reaction } from '../models'; import { TrackedTime } from '../models'; import { User } from '../models'; import { WatchInfo } from '../models'; /** * IssueApi - axios parameter creator * @export */ export declare const IssueApiAxiosParamCreator: (configuration?: Configuration) => { /** * * @summary Add a label to an issue * @param {string} owner owner of the repo * @param {string} repo name of the repo * @param {number} index index of the issue * @param {IssueLabelsOption} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} */ issueAddLabel: (owner: string, repo: string, index: number, body?: IssueLabelsOption, options?: any) => Promise; /** * * @summary Subscribe user to issue * @param {string} owner owner of the repo * @param {string} repo name of the repo * @param {number} index index of the issue * @param {string} user user to subscribe * @param {*} [options] Override http request option. * @throws {RequiredError} */ issueAddSubscription: (owner: string, repo: string, index: number, user: string, options?: any) => Promise; /** * * @summary Add tracked time to a issue * @param {string} owner owner of the repo * @param {string} repo name of the repo * @param {number} index index of the issue * @param {AddTimeOption} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} */ issueAddTime: (owner: string, repo: string, index: number, body?: AddTimeOption, options?: any) => Promise; /** * * @summary Check if user is subscribed to an issue * @param {string} owner owner of the repo * @param {string} repo name of the repo * @param {number} index index of the issue * @param {*} [options] Override http request option. * @throws {RequiredError} */ issueCheckSubscription: (owner: string, repo: string, index: number, options?: any) => Promise; /** * * @summary Remove all labels from an issue * @param {string} owner owner of the repo * @param {string} repo name of the repo * @param {number} index index of the issue * @param {*} [options] Override http request option. * @throws {RequiredError} */ issueClearLabels: (owner: string, repo: string, index: number, options?: any) => Promise; /** * * @summary Add a comment to an issue * @param {string} owner owner of the repo * @param {string} repo name of the repo * @param {number} index index of the issue * @param {CreateIssueCommentOption} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} */ issueCreateComment: (owner: string, repo: string, index: number, body?: CreateIssueCommentOption, options?: any) => Promise; /** * * @summary Create an issue. If using deadline only the date will be taken into account, and time of day ignored. * @param {string} owner owner of the repo * @param {string} repo name of the repo * @param {CreateIssueOption} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} */ issueCreateIssue: (owner: string, repo: string, body?: CreateIssueOption, options?: any) => Promise; /** * * @summary Create a label * @param {string} owner owner of the repo * @param {string} repo name of the repo * @param {CreateLabelOption} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} */ issueCreateLabel: (owner: string, repo: string, body?: CreateLabelOption, options?: any) => Promise; /** * * @summary Create a milestone * @param {string} owner owner of the repo * @param {string} repo name of the repo * @param {CreateMilestoneOption} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} */ issueCreateMilestone: (owner: string, repo: string, body?: CreateMilestoneOption, options?: any) => Promise; /** * * @summary Delete a comment * @param {string} owner owner of the repo * @param {string} repo name of the repo * @param {number} id id of comment to delete * @param {*} [options] Override http request option. * @throws {RequiredError} */ issueDeleteComment: (owner: string, repo: string, id: number, options?: any) => Promise; /** * * @summary Delete a comment * @param {string} owner owner of the repo * @param {string} repo name of the repo * @param {number} index this parameter is ignored * @param {number} id id of comment to delete * @param {*} [options] Override http request option. * @throws {RequiredError} */ issueDeleteCommentDeprecated: (owner: string, repo: string, index: number, id: number, options?: any) => Promise; /** * * @summary Remove a reaction from a comment of an issue * @param {string} owner owner of the repo * @param {string} repo name of the repo * @param {number} id id of the comment to edit * @param {EditReactionOption} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} */ issueDeleteCommentReaction: (owner: string, repo: string, id: number, body?: EditReactionOption, options?: any) => Promise; /** * * @summary Remove a reaction from an issue * @param {string} owner owner of the repo * @param {string} repo name of the repo * @param {number} index index of the issue * @param {EditReactionOption} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} */ issueDeleteIssueReaction: (owner: string, repo: string, index: number, body?: EditReactionOption, options?: any) => Promise; /** * * @summary Delete a label * @param {string} owner owner of the repo * @param {string} repo name of the repo * @param {number} id id of the label to delete * @param {*} [options] Override http request option. * @throws {RequiredError} */ issueDeleteLabel: (owner: string, repo: string, id: number, options?: any) => Promise; /** * * @summary Delete a milestone * @param {string} owner owner of the repo * @param {string} repo name of the repo * @param {string} id the milestone to delete, identified by ID and if not available by name * @param {*} [options] Override http request option. * @throws {RequiredError} */ issueDeleteMilestone: (owner: string, repo: string, id: string, options?: any) => Promise; /** * * @summary Delete an issue's existing stopwatch. * @param {string} owner owner of the repo * @param {string} repo name of the repo * @param {number} index index of the issue to stop the stopwatch on * @param {*} [options] Override http request option. * @throws {RequiredError} */ issueDeleteStopWatch: (owner: string, repo: string, index: number, options?: any) => Promise; /** * * @summary Unsubscribe user from issue * @param {string} owner owner of the repo * @param {string} repo name of the repo * @param {number} index index of the issue * @param {string} user user witch unsubscribe * @param {*} [options] Override http request option. * @throws {RequiredError} */ issueDeleteSubscription: (owner: string, repo: string, index: number, user: string, options?: any) => Promise; /** * * @summary Delete specific tracked time * @param {string} owner owner of the repo * @param {string} repo name of the repo * @param {number} index index of the issue * @param {number} id id of time to delete * @param {*} [options] Override http request option. * @throws {RequiredError} */ issueDeleteTime: (owner: string, repo: string, index: number, id: number, options?: any) => Promise; /** * * @summary Edit a comment * @param {string} owner owner of the repo * @param {string} repo name of the repo * @param {number} id id of the comment to edit * @param {EditIssueCommentOption} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} */ issueEditComment: (owner: string, repo: string, id: number, body?: EditIssueCommentOption, options?: any) => Promise; /** * * @summary Edit a comment * @param {string} owner owner of the repo * @param {string} repo name of the repo * @param {number} index this parameter is ignored * @param {number} id id of the comment to edit * @param {EditIssueCommentOption} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} */ issueEditCommentDeprecated: (owner: string, repo: string, index: number, id: number, body?: EditIssueCommentOption, options?: any) => Promise; /** * * @summary Edit an issue. If using deadline only the date will be taken into account, and time of day ignored. * @param {string} owner owner of the repo * @param {string} repo name of the repo * @param {number} index index of the issue to edit * @param {EditIssueOption} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} */ issueEditIssue: (owner: string, repo: string, index: number, body?: EditIssueOption, options?: any) => Promise; /** * * @summary Set an issue deadline. If set to null, the deadline is deleted. If using deadline only the date will be taken into account, and time of day ignored. * @param {string} owner owner of the repo * @param {string} repo name of the repo * @param {number} index index of the issue to create or update a deadline on * @param {EditDeadlineOption} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} */ issueEditIssueDeadline: (owner: string, repo: string, index: number, body?: EditDeadlineOption, options?: any) => Promise; /** * * @summary Update a label * @param {string} owner owner of the repo * @param {string} repo name of the repo * @param {number} id id of the label to edit * @param {EditLabelOption} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} */ issueEditLabel: (owner: string, repo: string, id: number, body?: EditLabelOption, options?: any) => Promise; /** * * @summary Update a milestone * @param {string} owner owner of the repo * @param {string} repo name of the repo * @param {string} id the milestone to edit, identified by ID and if not available by name * @param {EditMilestoneOption} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} */ issueEditMilestone: (owner: string, repo: string, id: string, body?: EditMilestoneOption, options?: any) => Promise; /** * * @summary Get a comment * @param {string} owner owner of the repo * @param {string} repo name of the repo * @param {number} id id of the comment * @param {*} [options] Override http request option. * @throws {RequiredError} */ issueGetComment: (owner: string, repo: string, id: number, options?: any) => Promise; /** * * @summary Get a list of reactions from a comment of an issue * @param {string} owner owner of the repo * @param {string} repo name of the repo * @param {number} id id of the comment to edit * @param {*} [options] Override http request option. * @throws {RequiredError} */ issueGetCommentReactions: (owner: string, repo: string, id: number, options?: any) => Promise; /** * * @summary List all comments on an issue * @param {string} owner owner of the repo * @param {string} repo name of the repo * @param {number} index index of the issue * @param {Date} [since] if provided, only comments updated since the specified time are returned. * @param {Date} [before] if provided, only comments updated before the provided time are returned. * @param {*} [options] Override http request option. * @throws {RequiredError} */ issueGetComments: (owner: string, repo: string, index: number, since?: Date, before?: Date, options?: any) => Promise; /** * * @summary Get an issue * @param {string} owner owner of the repo * @param {string} repo name of the repo * @param {number} index index of the issue to get * @param {*} [options] Override http request option. * @throws {RequiredError} */ issueGetIssue: (owner: string, repo: string, index: number, options?: any) => Promise; /** * * @summary Get a list reactions of an issue * @param {string} owner owner of the repo * @param {string} repo name of the repo * @param {number} index index of the issue * @param {number} [page] page number of results to return (1-based) * @param {number} [limit] page size of results * @param {*} [options] Override http request option. * @throws {RequiredError} */ issueGetIssueReactions: (owner: string, repo: string, index: number, page?: number, limit?: number, options?: any) => Promise; /** * * @summary Get a single label * @param {string} owner owner of the repo * @param {string} repo name of the repo * @param {number} id id of the label to get * @param {*} [options] Override http request option. * @throws {RequiredError} */ issueGetLabel: (owner: string, repo: string, id: number, options?: any) => Promise; /** * * @summary Get an issue's labels * @param {string} owner owner of the repo * @param {string} repo name of the repo * @param {number} index index of the issue * @param {*} [options] Override http request option. * @throws {RequiredError} */ issueGetLabels: (owner: string, repo: string, index: number, options?: any) => Promise; /** * * @summary Get a milestone * @param {string} owner owner of the repo * @param {string} repo name of the repo * @param {string} id the milestone to get, identified by ID and if not available by name * @param {*} [options] Override http request option. * @throws {RequiredError} */ issueGetMilestone: (owner: string, repo: string, id: string, options?: any) => Promise; /** * * @summary Get all of a repository's opened milestones * @param {string} owner owner of the repo * @param {string} repo name of the repo * @param {string} [state] Milestone state, Recognised values are open, closed and all. Defaults to \"open\" * @param {string} [name] filter by milestone name * @param {number} [page] page number of results to return (1-based) * @param {number} [limit] page size of results * @param {*} [options] Override http request option. * @throws {RequiredError} */ issueGetMilestonesList: (owner: string, repo: string, state?: string, name?: string, page?: number, limit?: number, options?: any) => Promise; /** * * @summary List all comments in a repository * @param {string} owner owner of the repo * @param {string} repo name of the repo * @param {Date} [since] if provided, only comments updated since the provided time are returned. * @param {Date} [before] if provided, only comments updated before the provided time are returned. * @param {number} [page] page number of results to return (1-based) * @param {number} [limit] page size of results * @param {*} [options] Override http request option. * @throws {RequiredError} */ issueGetRepoComments: (owner: string, repo: string, since?: Date, before?: Date, page?: number, limit?: number, options?: any) => Promise; /** * * @summary List a repository's issues * @param {string} owner owner of the repo * @param {string} repo name of the repo * @param {string} [state] whether issue is open or closed * @param {string} [labels] comma separated list of labels. Fetch only issues that have any of this labels. Non existent labels are discarded * @param {string} [q] search string * @param {string} [type] filter by type (issues / pulls) if set * @param {string} [milestones] comma separated list of milestone names or ids. It uses names and fall back to ids. Fetch only issues that have any of this milestones. Non existent milestones are discarded * @param {number} [page] page number of results to return (1-based) * @param {number} [limit] page size of results * @param {*} [options] Override http request option. * @throws {RequiredError} */ issueListIssues: (owner: string, repo: string, state?: string, labels?: string, q?: string, type?: string, milestones?: string, page?: number, limit?: number, options?: any) => Promise; /** * * @summary Get all of a repository's labels * @param {string} owner owner of the repo * @param {string} repo name of the repo * @param {number} [page] page number of results to return (1-based) * @param {number} [limit] page size of results * @param {*} [options] Override http request option. * @throws {RequiredError} */ issueListLabels: (owner: string, repo: string, page?: number, limit?: number, options?: any) => Promise; /** * * @summary Add a reaction to a comment of an issue * @param {string} owner owner of the repo * @param {string} repo name of the repo * @param {number} id id of the comment to edit * @param {EditReactionOption} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} */ issuePostCommentReaction: (owner: string, repo: string, id: number, body?: EditReactionOption, options?: any) => Promise; /** * * @summary Add a reaction to an issue * @param {string} owner owner of the repo * @param {string} repo name of the repo * @param {number} index index of the issue * @param {EditReactionOption} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} */ issuePostIssueReaction: (owner: string, repo: string, index: number, body?: EditReactionOption, options?: any) => Promise; /** * * @summary Remove a label from an issue * @param {string} owner owner of the repo * @param {string} repo name of the repo * @param {number} index index of the issue * @param {number} id id of the label to remove * @param {*} [options] Override http request option. * @throws {RequiredError} */ issueRemoveLabel: (owner: string, repo: string, index: number, id: number, options?: any) => Promise; /** * * @summary Replace an issue's labels * @param {string} owner owner of the repo * @param {string} repo name of the repo * @param {number} index index of the issue * @param {IssueLabelsOption} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} */ issueReplaceLabels: (owner: string, repo: string, index: number, body?: IssueLabelsOption, options?: any) => Promise; /** * * @summary Reset a tracked time of an issue * @param {string} owner owner of the repo * @param {string} repo name of the repo * @param {number} index index of the issue to add tracked time to * @param {*} [options] Override http request option. * @throws {RequiredError} */ issueResetTime: (owner: string, repo: string, index: number, options?: any) => Promise; /** * * @summary Search for issues across the repositories that the user has access to * @param {string} [state] whether issue is open or closed * @param {string} [labels] comma separated list of labels. Fetch only issues that have any of this labels. Non existent labels are discarded * @param {string} [q] search string * @param {number} [priority_repo_id] repository to prioritize in the results * @param {string} [type] filter by type (issues / pulls) if set * @param {Date} [since] Only show notifications updated after the given time. This is a timestamp in RFC 3339 format * @param {Date} [before] Only show notifications updated before the given time. This is a timestamp in RFC 3339 format * @param {boolean} [assigned] filter (issues / pulls) assigned to you, default is false * @param {boolean} [created] filter (issues / pulls) created by you, default is false * @param {boolean} [mentioned] filter (issues / pulls) mentioning you, default is false * @param {boolean} [review_requested] filter pulls requesting your review, default is false * @param {number} [page] page number of results to return (1-based) * @param {number} [limit] page size of results * @param {*} [options] Override http request option. * @throws {RequiredError} */ issueSearchIssues: (state?: string, labels?: string, q?: string, priority_repo_id?: number, type?: string, since?: Date, before?: Date, assigned?: boolean, created?: boolean, mentioned?: boolean, review_requested?: boolean, page?: number, limit?: number, options?: any) => Promise; /** * * @summary Start stopwatch on an issue. * @param {string} owner owner of the repo * @param {string} repo name of the repo * @param {number} index index of the issue to create the stopwatch on * @param {*} [options] Override http request option. * @throws {RequiredError} */ issueStartStopWatch: (owner: string, repo: string, index: number, options?: any) => Promise; /** * * @summary Stop an issue's existing stopwatch. * @param {string} owner owner of the repo * @param {string} repo name of the repo * @param {number} index index of the issue to stop the stopwatch on * @param {*} [options] Override http request option. * @throws {RequiredError} */ issueStopStopWatch: (owner: string, repo: string, index: number, options?: any) => Promise; /** * * @summary Get users who subscribed on an issue. * @param {string} owner owner of the repo * @param {string} repo name of the repo * @param {number} index index of the issue * @param {number} [page] page number of results to return (1-based) * @param {number} [limit] page size of results * @param {*} [options] Override http request option. * @throws {RequiredError} */ issueSubscriptions: (owner: string, repo: string, index: number, page?: number, limit?: number, options?: any) => Promise; /** * * @summary List an issue's tracked times * @param {string} owner owner of the repo * @param {string} repo name of the repo * @param {number} index index of the issue * @param {string} [user] optional filter by user (available for issue managers) * @param {Date} [since] Only show times updated after the given time. This is a timestamp in RFC 3339 format * @param {Date} [before] Only show times updated before the given time. This is a timestamp in RFC 3339 format * @param {number} [page] page number of results to return (1-based) * @param {number} [limit] page size of results * @param {*} [options] Override http request option. * @throws {RequiredError} */ issueTrackedTimes: (owner: string, repo: string, index: number, user?: string, since?: Date, before?: Date, page?: number, limit?: number, options?: any) => Promise; }; /** * IssueApi - functional programming interface * @export */ export declare const IssueApiFp: (configuration?: Configuration) => { /** * * @summary Add a label to an issue * @param {string} owner owner of the repo * @param {string} repo name of the repo * @param {number} index index of the issue * @param {IssueLabelsOption} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} */ issueAddLabel(owner: string, repo: string, index: number, body?: IssueLabelsOption, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>>; /** * * @summary Subscribe user to issue * @param {string} owner owner of the repo * @param {string} repo name of the repo * @param {number} index index of the issue * @param {string} user user to subscribe * @param {*} [options] Override http request option. * @throws {RequiredError} */ issueAddSubscription(owner: string, repo: string, index: number, user: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary Add tracked time to a issue * @param {string} owner owner of the repo * @param {string} repo name of the repo * @param {number} index index of the issue * @param {AddTimeOption} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} */ issueAddTime(owner: string, repo: string, index: number, body?: AddTimeOption, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary Check if user is subscribed to an issue * @param {string} owner owner of the repo * @param {string} repo name of the repo * @param {number} index index of the issue * @param {*} [options] Override http request option. * @throws {RequiredError} */ issueCheckSubscription(owner: string, repo: string, index: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary Remove all labels from an issue * @param {string} owner owner of the repo * @param {string} repo name of the repo * @param {number} index index of the issue * @param {*} [options] Override http request option. * @throws {RequiredError} */ issueClearLabels(owner: string, repo: string, index: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary Add a comment to an issue * @param {string} owner owner of the repo * @param {string} repo name of the repo * @param {number} index index of the issue * @param {CreateIssueCommentOption} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} */ issueCreateComment(owner: string, repo: string, index: number, body?: CreateIssueCommentOption, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary Create an issue. If using deadline only the date will be taken into account, and time of day ignored. * @param {string} owner owner of the repo * @param {string} repo name of the repo * @param {CreateIssueOption} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} */ issueCreateIssue(owner: string, repo: string, body?: CreateIssueOption, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary Create a label * @param {string} owner owner of the repo * @param {string} repo name of the repo * @param {CreateLabelOption} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} */ issueCreateLabel(owner: string, repo: string, body?: CreateLabelOption, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise