/** * Apicurio Registry API [v2] * Apicurio Registry is a datastore for standard event schemas and API designs. Apicurio Registry enables developers to manage and share the structure of their data using a REST interface. For example, client applications can dynamically push or pull the latest updates to or from the registry without needing to redeploy. Apicurio Registry also enables developers to create rules that govern how registry content can evolve over time. For example, this includes rules for content validation and version compatibility. The Apicurio Registry REST API enables client applications to manage the artifacts in the registry. This API provides create, read, update, and delete operations for schema and API artifacts, rules, versions, and metadata. The supported artifact types include: - Apache Avro schema - AsyncAPI specification - Google protocol buffers - GraphQL schema - JSON Schema - Kafka Connect schema - OpenAPI specification - Web Services Description Language - XML Schema Definition **Important**: The Apicurio Registry REST API is available from `https://MY-REGISTRY-URL/apis/registry/v2` by default. Therefore you must prefix all API operation paths with `../apis/registry/v2` in this case. For example: `../apis/registry/v2/ids/globalIds/{globalId}`. * * The version of the OpenAPI document: 2.4.x * Contact: apicurio@lists.jboss.org * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; import { Configuration } from '../configuration'; import { RequestArgs, BaseAPI } from '../base'; import { CreateGroupMetaData } from '../model'; import { GroupMetaData } from '../model'; import { GroupSearchResults } from '../model'; import { SortBy } from '../model'; import { SortOrder } from '../model'; /** * GroupsApi - axios parameter creator * @export */ export declare const GroupsApiAxiosParamCreator: (configuration?: Configuration) => { /** * Creates a new group. This operation can fail for the following reasons: * A server error occurred (HTTP error `500`) * The group already exist (HTTP error `409`) * @summary Create a new group * @param {CreateGroupMetaData} createGroupMetaData * @param {*} [options] Override http request option. * @throws {RequiredError} */ createGroup: (createGroupMetaData: CreateGroupMetaData, options?: AxiosRequestConfig) => Promise; /** * Deletes a group by identifier. This operation can fail for the following reasons: * A server error occurred (HTTP error `500`) * The group does not exist (HTTP error `404`) * @summary Delete a group by the specified ID. * @param {string} groupId The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteGroupById: (groupId: string, options?: AxiosRequestConfig) => Promise; /** * Returns a group using the specified id. This operation can fail for the following reasons: * No group exists with the specified ID (HTTP error `404`) * A server error occurred (HTTP error `500`) * @summary Get a group by the specified ID. * @param {string} groupId The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getGroupById: (groupId: string, options?: AxiosRequestConfig) => Promise; /** * Returns a list of all groups. This list is paged. * @summary List groups * @param {number} [limit] The number of groups to return. Defaults to 20. * @param {number} [offset] The number of groups to skip before starting the result set. Defaults to 0. * @param {SortOrder} [order] Sort order, ascending (`asc`) or descending (`desc`). * @param {SortBy} [orderby] The field to sort by. Can be one of: * `name` * `createdOn` * @param {*} [options] Override http request option. * @throws {RequiredError} */ listGroups: (limit?: number, offset?: number, order?: SortOrder, orderby?: SortBy, options?: AxiosRequestConfig) => Promise; }; /** * GroupsApi - functional programming interface * @export */ export declare const GroupsApiFp: (configuration?: Configuration) => { /** * Creates a new group. This operation can fail for the following reasons: * A server error occurred (HTTP error `500`) * The group already exist (HTTP error `409`) * @summary Create a new group * @param {CreateGroupMetaData} createGroupMetaData * @param {*} [options] Override http request option. * @throws {RequiredError} */ createGroup(createGroupMetaData: CreateGroupMetaData, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Deletes a group by identifier. This operation can fail for the following reasons: * A server error occurred (HTTP error `500`) * The group does not exist (HTTP error `404`) * @summary Delete a group by the specified ID. * @param {string} groupId The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteGroupById(groupId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Returns a group using the specified id. This operation can fail for the following reasons: * No group exists with the specified ID (HTTP error `404`) * A server error occurred (HTTP error `500`) * @summary Get a group by the specified ID. * @param {string} groupId The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getGroupById(groupId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Returns a list of all groups. This list is paged. * @summary List groups * @param {number} [limit] The number of groups to return. Defaults to 20. * @param {number} [offset] The number of groups to skip before starting the result set. Defaults to 0. * @param {SortOrder} [order] Sort order, ascending (`asc`) or descending (`desc`). * @param {SortBy} [orderby] The field to sort by. Can be one of: * `name` * `createdOn` * @param {*} [options] Override http request option. * @throws {RequiredError} */ listGroups(limit?: number, offset?: number, order?: SortOrder, orderby?: SortBy, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; }; /** * GroupsApi - factory interface * @export */ export declare const GroupsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { /** * Creates a new group. This operation can fail for the following reasons: * A server error occurred (HTTP error `500`) * The group already exist (HTTP error `409`) * @summary Create a new group * @param {CreateGroupMetaData} createGroupMetaData * @param {*} [options] Override http request option. * @throws {RequiredError} */ createGroup(createGroupMetaData: CreateGroupMetaData, options?: any): AxiosPromise; /** * Deletes a group by identifier. This operation can fail for the following reasons: * A server error occurred (HTTP error `500`) * The group does not exist (HTTP error `404`) * @summary Delete a group by the specified ID. * @param {string} groupId The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteGroupById(groupId: string, options?: any): AxiosPromise; /** * Returns a group using the specified id. This operation can fail for the following reasons: * No group exists with the specified ID (HTTP error `404`) * A server error occurred (HTTP error `500`) * @summary Get a group by the specified ID. * @param {string} groupId The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getGroupById(groupId: string, options?: any): AxiosPromise; /** * Returns a list of all groups. This list is paged. * @summary List groups * @param {number} [limit] The number of groups to return. Defaults to 20. * @param {number} [offset] The number of groups to skip before starting the result set. Defaults to 0. * @param {SortOrder} [order] Sort order, ascending (`asc`) or descending (`desc`). * @param {SortBy} [orderby] The field to sort by. Can be one of: * `name` * `createdOn` * @param {*} [options] Override http request option. * @throws {RequiredError} */ listGroups(limit?: number, offset?: number, order?: SortOrder, orderby?: SortBy, options?: any): AxiosPromise; }; /** * GroupsApi - interface * @export * @interface GroupsApi */ export interface GroupsApiInterface { /** * Creates a new group. This operation can fail for the following reasons: * A server error occurred (HTTP error `500`) * The group already exist (HTTP error `409`) * @summary Create a new group * @param {CreateGroupMetaData} createGroupMetaData * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof GroupsApiInterface */ createGroup(createGroupMetaData: CreateGroupMetaData, options?: AxiosRequestConfig): AxiosPromise; /** * Deletes a group by identifier. This operation can fail for the following reasons: * A server error occurred (HTTP error `500`) * The group does not exist (HTTP error `404`) * @summary Delete a group by the specified ID. * @param {string} groupId The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof GroupsApiInterface */ deleteGroupById(groupId: string, options?: AxiosRequestConfig): AxiosPromise; /** * Returns a group using the specified id. This operation can fail for the following reasons: * No group exists with the specified ID (HTTP error `404`) * A server error occurred (HTTP error `500`) * @summary Get a group by the specified ID. * @param {string} groupId The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof GroupsApiInterface */ getGroupById(groupId: string, options?: AxiosRequestConfig): AxiosPromise; /** * Returns a list of all groups. This list is paged. * @summary List groups * @param {number} [limit] The number of groups to return. Defaults to 20. * @param {number} [offset] The number of groups to skip before starting the result set. Defaults to 0. * @param {SortOrder} [order] Sort order, ascending (`asc`) or descending (`desc`). * @param {SortBy} [orderby] The field to sort by. Can be one of: * `name` * `createdOn` * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof GroupsApiInterface */ listGroups(limit?: number, offset?: number, order?: SortOrder, orderby?: SortBy, options?: AxiosRequestConfig): AxiosPromise; } /** * GroupsApi - object-oriented interface * @export * @class GroupsApi * @extends {BaseAPI} */ export declare class GroupsApi extends BaseAPI implements GroupsApiInterface { /** * Creates a new group. This operation can fail for the following reasons: * A server error occurred (HTTP error `500`) * The group already exist (HTTP error `409`) * @summary Create a new group * @param {CreateGroupMetaData} createGroupMetaData * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof GroupsApi */ createGroup(createGroupMetaData: CreateGroupMetaData, options?: AxiosRequestConfig): Promise>; /** * Deletes a group by identifier. This operation can fail for the following reasons: * A server error occurred (HTTP error `500`) * The group does not exist (HTTP error `404`) * @summary Delete a group by the specified ID. * @param {string} groupId The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof GroupsApi */ deleteGroupById(groupId: string, options?: AxiosRequestConfig): Promise>; /** * Returns a group using the specified id. This operation can fail for the following reasons: * No group exists with the specified ID (HTTP error `404`) * A server error occurred (HTTP error `500`) * @summary Get a group by the specified ID. * @param {string} groupId The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof GroupsApi */ getGroupById(groupId: string, options?: AxiosRequestConfig): Promise>; /** * Returns a list of all groups. This list is paged. * @summary List groups * @param {number} [limit] The number of groups to return. Defaults to 20. * @param {number} [offset] The number of groups to skip before starting the result set. Defaults to 0. * @param {SortOrder} [order] Sort order, ascending (`asc`) or descending (`desc`). * @param {SortBy} [orderby] The field to sort by. Can be one of: * `name` * `createdOn` * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof GroupsApi */ listGroups(limit?: number, offset?: number, order?: SortOrder, orderby?: SortBy, options?: AxiosRequestConfig): Promise>; }