/** * 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 { CreateHookOption } from '../models'; import { CreateLabelOption } from '../models'; import { CreateOrgOption } from '../models'; import { CreateRepoOption } from '../models'; import { CreateTeamOption } from '../models'; import { EditHookOption } from '../models'; import { EditLabelOption } from '../models'; import { EditOrgOption } from '../models'; import { EditTeamOption } from '../models'; import { Hook } from '../models'; import { InlineResponse200 } from '../models'; import { Label } from '../models'; import { Organization } from '../models'; import { Repository } from '../models'; import { Team } from '../models'; import { User } from '../models'; /** * OrganizationApi - axios parameter creator * @export */ export declare const OrganizationApiAxiosParamCreator: (configuration?: Configuration) => { /** * * @summary Create a repository in an organization * @param {string} org name of organization * @param {CreateRepoOption} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createOrgRepo: (org: string, body?: CreateRepoOption, options?: any) => Promise; /** * * @summary Create a repository in an organization * @param {string} org name of organization * @param {CreateRepoOption} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createOrgRepoDeprecated: (org: string, body?: CreateRepoOption, options?: any) => Promise; /** * * @summary Add a team member * @param {number} id id of the team * @param {string} username username of the user to add * @param {*} [options] Override http request option. * @throws {RequiredError} */ orgAddTeamMember: (id: number, username: string, options?: any) => Promise; /** * * @summary Add a repository to a team * @param {number} id id of the team * @param {string} org organization that owns the repo to add * @param {string} repo name of the repo to add * @param {*} [options] Override http request option. * @throws {RequiredError} */ orgAddTeamRepository: (id: number, org: string, repo: string, options?: any) => Promise; /** * * @summary Conceal a user's membership * @param {string} org name of the organization * @param {string} username username of the user * @param {*} [options] Override http request option. * @throws {RequiredError} */ orgConcealMember: (org: string, username: string, options?: any) => Promise; /** * * @summary Create an organization * @param {CreateOrgOption} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ orgCreate: (body: CreateOrgOption, options?: any) => Promise; /** * * @summary Create a hook * @param {CreateHookOption} body * @param {string} org name of the organization * @param {*} [options] Override http request option. * @throws {RequiredError} */ orgCreateHook: (body: CreateHookOption, org: string, options?: any) => Promise; /** * * @summary Create a label for an organization * @param {string} org name of the organization * @param {CreateLabelOption} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} */ orgCreateLabel: (org: string, body?: CreateLabelOption, options?: any) => Promise; /** * * @summary Create a team * @param {string} org name of the organization * @param {CreateTeamOption} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} */ orgCreateTeam: (org: string, body?: CreateTeamOption, options?: any) => Promise; /** * * @summary Delete an organization * @param {string} org organization that is to be deleted * @param {*} [options] Override http request option. * @throws {RequiredError} */ orgDelete: (org: string, options?: any) => Promise; /** * * @summary Delete a hook * @param {string} org name of the organization * @param {number} id id of the hook to delete * @param {*} [options] Override http request option. * @throws {RequiredError} */ orgDeleteHook: (org: string, id: number, options?: any) => Promise; /** * * @summary Delete a label * @param {string} org name of the organization * @param {number} id id of the label to delete * @param {*} [options] Override http request option. * @throws {RequiredError} */ orgDeleteLabel: (org: string, id: number, options?: any) => Promise; /** * * @summary Remove a member from an organization * @param {string} org name of the organization * @param {string} username username of the user * @param {*} [options] Override http request option. * @throws {RequiredError} */ orgDeleteMember: (org: string, username: string, options?: any) => Promise; /** * * @summary Delete a team * @param {number} id id of the team to delete * @param {*} [options] Override http request option. * @throws {RequiredError} */ orgDeleteTeam: (id: number, options?: any) => Promise; /** * * @summary Edit an organization * @param {EditOrgOption} body * @param {string} org name of the organization to edit * @param {*} [options] Override http request option. * @throws {RequiredError} */ orgEdit: (body: EditOrgOption, org: string, options?: any) => Promise; /** * * @summary Update a hook * @param {string} org name of the organization * @param {number} id id of the hook to update * @param {EditHookOption} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} */ orgEditHook: (org: string, id: number, body?: EditHookOption, options?: any) => Promise; /** * * @summary Update a label * @param {string} org name of the organization * @param {number} id id of the label to edit * @param {EditLabelOption} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} */ orgEditLabel: (org: string, id: number, body?: EditLabelOption, options?: any) => Promise; /** * * @summary Edit a team * @param {number} id id of the team to edit * @param {EditTeamOption} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} */ orgEditTeam: (id: number, body?: EditTeamOption, options?: any) => Promise; /** * * @summary Get an organization * @param {string} org name of the organization to get * @param {*} [options] Override http request option. * @throws {RequiredError} */ orgGet: (org: string, options?: any) => Promise; /** * * @summary Get list of organizations * @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} */ orgGetAll: (page?: number, limit?: number, options?: any) => Promise; /** * * @summary Get a hook * @param {string} org name of the organization * @param {number} id id of the hook to get * @param {*} [options] Override http request option. * @throws {RequiredError} */ orgGetHook: (org: string, id: number, options?: any) => Promise; /** * * @summary Get a single label * @param {string} org name of the organization * @param {number} id id of the label to get * @param {*} [options] Override http request option. * @throws {RequiredError} */ orgGetLabel: (org: string, id: number, options?: any) => Promise; /** * * @summary Get a team * @param {number} id id of the team to get * @param {*} [options] Override http request option. * @throws {RequiredError} */ orgGetTeam: (id: number, options?: any) => Promise; /** * * @summary Check if a user is a member of an organization * @param {string} org name of the organization * @param {string} username username of the user * @param {*} [options] Override http request option. * @throws {RequiredError} */ orgIsMember: (org: string, username: string, options?: any) => Promise; /** * * @summary Check if a user is a public member of an organization * @param {string} org name of the organization * @param {string} username username of the user * @param {*} [options] Override http request option. * @throws {RequiredError} */ orgIsPublicMember: (org: string, username: string, options?: any) => Promise; /** * * @summary List the current user's organizations * @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} */ orgListCurrentUserOrgs: (page?: number, limit?: number, options?: any) => Promise; /** * * @summary List an organization's webhooks * @param {string} org name of the organization * @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} */ orgListHooks: (org: string, page?: number, limit?: number, options?: any) => Promise; /** * * @summary List an organization's labels * @param {string} org name of the organization * @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} */ orgListLabels: (org: string, page?: number, limit?: number, options?: any) => Promise; /** * * @summary List an organization's members * @param {string} org name of the organization * @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} */ orgListMembers: (org: string, page?: number, limit?: number, options?: any) => Promise; /** * * @summary List an organization's public members * @param {string} org name of the organization * @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} */ orgListPublicMembers: (org: string, page?: number, limit?: number, options?: any) => Promise; /** * * @summary List an organization's repos * @param {string} org name of the organization * @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} */ orgListRepos: (org: string, page?: number, limit?: number, options?: any) => Promise; /** * * @summary List a particular member of team * @param {number} id id of the team * @param {string} username username of the member to list * @param {*} [options] Override http request option. * @throws {RequiredError} */ orgListTeamMember: (id: number, username: string, options?: any) => Promise; /** * * @summary List a team's members * @param {number} id id of the team * @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} */ orgListTeamMembers: (id: number, page?: number, limit?: number, options?: any) => Promise; /** * * @summary List a team's repos * @param {number} id id of the team * @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} */ orgListTeamRepos: (id: number, page?: number, limit?: number, options?: any) => Promise; /** * * @summary List an organization's teams * @param {string} org name of the organization * @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} */ orgListTeams: (org: string, page?: number, limit?: number, options?: any) => Promise; /** * * @summary List a user's organizations * @param {string} username username of user * @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} */ orgListUserOrgs: (username: string, page?: number, limit?: number, options?: any) => Promise; /** * * @summary Publicize a user's membership * @param {string} org name of the organization * @param {string} username username of the user * @param {*} [options] Override http request option. * @throws {RequiredError} */ orgPublicizeMember: (org: string, username: string, options?: any) => Promise; /** * * @summary Remove a team member * @param {number} id id of the team * @param {string} username username of the user to remove * @param {*} [options] Override http request option. * @throws {RequiredError} */ orgRemoveTeamMember: (id: number, username: string, options?: any) => Promise; /** * This does not delete the repository, it only removes the repository from the team. * @summary Remove a repository from a team * @param {number} id id of the team * @param {string} org organization that owns the repo to remove * @param {string} repo name of the repo to remove * @param {*} [options] Override http request option. * @throws {RequiredError} */ orgRemoveTeamRepository: (id: number, org: string, repo: string, options?: any) => Promise; /** * * @summary Search for teams within an organization * @param {string} org name of the organization * @param {string} [q] keywords to search * @param {boolean} [include_desc] include search within team description (defaults to true) * @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} */ teamSearch: (org: string, q?: string, include_desc?: boolean, page?: number, limit?: number, options?: any) => Promise; }; /** * OrganizationApi - functional programming interface * @export */ export declare const OrganizationApiFp: (configuration?: Configuration) => { /** * * @summary Create a repository in an organization * @param {string} org name of organization * @param {CreateRepoOption} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createOrgRepo(org: string, body?: CreateRepoOption, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary Create a repository in an organization * @param {string} org name of organization * @param {CreateRepoOption} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createOrgRepoDeprecated(org: string, body?: CreateRepoOption, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary Add a team member * @param {number} id id of the team * @param {string} username username of the user to add * @param {*} [options] Override http request option. * @throws {RequiredError} */ orgAddTeamMember(id: number, username: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary Add a repository to a team * @param {number} id id of the team * @param {string} org organization that owns the repo to add * @param {string} repo name of the repo to add * @param {*} [options] Override http request option. * @throws {RequiredError} */ orgAddTeamRepository(id: number, org: string, repo: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary Conceal a user's membership * @param {string} org name of the organization * @param {string} username username of the user * @param {*} [options] Override http request option. * @throws {RequiredError} */ orgConcealMember(org: string, username: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary Create an organization * @param {CreateOrgOption} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ orgCreate(body: CreateOrgOption, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary Create a hook * @param {CreateHookOption} body * @param {string} org name of the organization * @param {*} [options] Override http request option. * @throws {RequiredError} */ orgCreateHook(body: CreateHookOption, org: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary Create a label for an organization * @param {string} org name of the organization * @param {CreateLabelOption} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} */ orgCreateLabel(org: string, body?: CreateLabelOption, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise