/** * 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 { ArtifactSearchResults } from '../model'; import { SortBy } from '../model'; import { SortOrder } from '../model'; /** * SearchApi - axios parameter creator * @export */ export declare const SearchApiAxiosParamCreator: (configuration?: Configuration) => { /** * Returns a paginated list of all artifacts that match the provided filter criteria. * @summary Search for artifacts * @param {string} [name] Filter by artifact name. * @param {number} [offset] The number of artifacts to skip before starting to collect the result set. Defaults to 0. * @param {number} [limit] The number of artifacts to return. Defaults to 20. * @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 {Array} [labels] Filter by label. Include one or more label to only return artifacts containing all of the specified labels. * @param {Array} [properties] Filter by one or more name/value property. Separate each name/value pair using a colon. For example `properties=foo:bar` will return only artifacts with a custom property named `foo` and value `bar`. * @param {string} [description] Filter by description. * @param {string} [group] Filter by artifact group. * @param {number} [globalId] Filter by globalId. * @param {number} [contentId] Filter by contentId. * @param {*} [options] Override http request option. * @throws {RequiredError} */ searchArtifacts: (name?: string, offset?: number, limit?: number, order?: SortOrder, orderby?: SortBy, labels?: Array, properties?: Array, description?: string, group?: string, globalId?: number, contentId?: number, options?: AxiosRequestConfig) => Promise; /** * Returns a paginated list of all artifacts with at least one version that matches the posted content. * @summary Search for artifacts by content * @param {any} body The content to search for. * @param {boolean} [canonical] Parameter that can be set to `true` to indicate that the server should \"canonicalize\" the content when searching for matching artifacts. Canonicalization is unique to each artifact type, but typically involves removing any extra whitespace and formatting the content in a consistent manner. Must be used along with the `artifactType` query parameter. * @param {string} [artifactType] Indicates the type of artifact represented by the content being used for the search. This is only needed when using the `canonical` query parameter, so that the server knows how to canonicalize the content prior to searching for matching artifacts. * @param {number} [offset] The number of artifacts to skip before starting to collect the result set. Defaults to 0. * @param {number} [limit] The number of artifacts to return. Defaults to 20. * @param {'asc' | 'desc'} [order] Sort order, ascending (`asc`) or descending (`desc`). * @param {'name' | 'createdOn'} [orderby] The field to sort by. Can be one of: * `name` * `createdOn` * @param {*} [options] Override http request option. * @throws {RequiredError} */ searchArtifactsByContent: (body: any, canonical?: boolean, artifactType?: string, offset?: number, limit?: number, order?: 'asc' | 'desc', orderby?: 'name' | 'createdOn', options?: AxiosRequestConfig) => Promise; }; /** * SearchApi - functional programming interface * @export */ export declare const SearchApiFp: (configuration?: Configuration) => { /** * Returns a paginated list of all artifacts that match the provided filter criteria. * @summary Search for artifacts * @param {string} [name] Filter by artifact name. * @param {number} [offset] The number of artifacts to skip before starting to collect the result set. Defaults to 0. * @param {number} [limit] The number of artifacts to return. Defaults to 20. * @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 {Array} [labels] Filter by label. Include one or more label to only return artifacts containing all of the specified labels. * @param {Array} [properties] Filter by one or more name/value property. Separate each name/value pair using a colon. For example `properties=foo:bar` will return only artifacts with a custom property named `foo` and value `bar`. * @param {string} [description] Filter by description. * @param {string} [group] Filter by artifact group. * @param {number} [globalId] Filter by globalId. * @param {number} [contentId] Filter by contentId. * @param {*} [options] Override http request option. * @throws {RequiredError} */ searchArtifacts(name?: string, offset?: number, limit?: number, order?: SortOrder, orderby?: SortBy, labels?: Array, properties?: Array, description?: string, group?: string, globalId?: number, contentId?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Returns a paginated list of all artifacts with at least one version that matches the posted content. * @summary Search for artifacts by content * @param {any} body The content to search for. * @param {boolean} [canonical] Parameter that can be set to `true` to indicate that the server should \"canonicalize\" the content when searching for matching artifacts. Canonicalization is unique to each artifact type, but typically involves removing any extra whitespace and formatting the content in a consistent manner. Must be used along with the `artifactType` query parameter. * @param {string} [artifactType] Indicates the type of artifact represented by the content being used for the search. This is only needed when using the `canonical` query parameter, so that the server knows how to canonicalize the content prior to searching for matching artifacts. * @param {number} [offset] The number of artifacts to skip before starting to collect the result set. Defaults to 0. * @param {number} [limit] The number of artifacts to return. Defaults to 20. * @param {'asc' | 'desc'} [order] Sort order, ascending (`asc`) or descending (`desc`). * @param {'name' | 'createdOn'} [orderby] The field to sort by. Can be one of: * `name` * `createdOn` * @param {*} [options] Override http request option. * @throws {RequiredError} */ searchArtifactsByContent(body: any, canonical?: boolean, artifactType?: string, offset?: number, limit?: number, order?: 'asc' | 'desc', orderby?: 'name' | 'createdOn', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; }; /** * SearchApi - factory interface * @export */ export declare const SearchApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { /** * Returns a paginated list of all artifacts that match the provided filter criteria. * @summary Search for artifacts * @param {string} [name] Filter by artifact name. * @param {number} [offset] The number of artifacts to skip before starting to collect the result set. Defaults to 0. * @param {number} [limit] The number of artifacts to return. Defaults to 20. * @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 {Array} [labels] Filter by label. Include one or more label to only return artifacts containing all of the specified labels. * @param {Array} [properties] Filter by one or more name/value property. Separate each name/value pair using a colon. For example `properties=foo:bar` will return only artifacts with a custom property named `foo` and value `bar`. * @param {string} [description] Filter by description. * @param {string} [group] Filter by artifact group. * @param {number} [globalId] Filter by globalId. * @param {number} [contentId] Filter by contentId. * @param {*} [options] Override http request option. * @throws {RequiredError} */ searchArtifacts(name?: string, offset?: number, limit?: number, order?: SortOrder, orderby?: SortBy, labels?: Array, properties?: Array, description?: string, group?: string, globalId?: number, contentId?: number, options?: any): AxiosPromise; /** * Returns a paginated list of all artifacts with at least one version that matches the posted content. * @summary Search for artifacts by content * @param {any} body The content to search for. * @param {boolean} [canonical] Parameter that can be set to `true` to indicate that the server should \"canonicalize\" the content when searching for matching artifacts. Canonicalization is unique to each artifact type, but typically involves removing any extra whitespace and formatting the content in a consistent manner. Must be used along with the `artifactType` query parameter. * @param {string} [artifactType] Indicates the type of artifact represented by the content being used for the search. This is only needed when using the `canonical` query parameter, so that the server knows how to canonicalize the content prior to searching for matching artifacts. * @param {number} [offset] The number of artifacts to skip before starting to collect the result set. Defaults to 0. * @param {number} [limit] The number of artifacts to return. Defaults to 20. * @param {'asc' | 'desc'} [order] Sort order, ascending (`asc`) or descending (`desc`). * @param {'name' | 'createdOn'} [orderby] The field to sort by. Can be one of: * `name` * `createdOn` * @param {*} [options] Override http request option. * @throws {RequiredError} */ searchArtifactsByContent(body: any, canonical?: boolean, artifactType?: string, offset?: number, limit?: number, order?: 'asc' | 'desc', orderby?: 'name' | 'createdOn', options?: any): AxiosPromise; }; /** * SearchApi - interface * @export * @interface SearchApi */ export interface SearchApiInterface { /** * Returns a paginated list of all artifacts that match the provided filter criteria. * @summary Search for artifacts * @param {string} [name] Filter by artifact name. * @param {number} [offset] The number of artifacts to skip before starting to collect the result set. Defaults to 0. * @param {number} [limit] The number of artifacts to return. Defaults to 20. * @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 {Array} [labels] Filter by label. Include one or more label to only return artifacts containing all of the specified labels. * @param {Array} [properties] Filter by one or more name/value property. Separate each name/value pair using a colon. For example `properties=foo:bar` will return only artifacts with a custom property named `foo` and value `bar`. * @param {string} [description] Filter by description. * @param {string} [group] Filter by artifact group. * @param {number} [globalId] Filter by globalId. * @param {number} [contentId] Filter by contentId. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SearchApiInterface */ searchArtifacts(name?: string, offset?: number, limit?: number, order?: SortOrder, orderby?: SortBy, labels?: Array, properties?: Array, description?: string, group?: string, globalId?: number, contentId?: number, options?: AxiosRequestConfig): AxiosPromise; /** * Returns a paginated list of all artifacts with at least one version that matches the posted content. * @summary Search for artifacts by content * @param {any} body The content to search for. * @param {boolean} [canonical] Parameter that can be set to `true` to indicate that the server should \"canonicalize\" the content when searching for matching artifacts. Canonicalization is unique to each artifact type, but typically involves removing any extra whitespace and formatting the content in a consistent manner. Must be used along with the `artifactType` query parameter. * @param {string} [artifactType] Indicates the type of artifact represented by the content being used for the search. This is only needed when using the `canonical` query parameter, so that the server knows how to canonicalize the content prior to searching for matching artifacts. * @param {number} [offset] The number of artifacts to skip before starting to collect the result set. Defaults to 0. * @param {number} [limit] The number of artifacts to return. Defaults to 20. * @param {'asc' | 'desc'} [order] Sort order, ascending (`asc`) or descending (`desc`). * @param {'name' | 'createdOn'} [orderby] The field to sort by. Can be one of: * `name` * `createdOn` * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SearchApiInterface */ searchArtifactsByContent(body: any, canonical?: boolean, artifactType?: string, offset?: number, limit?: number, order?: 'asc' | 'desc', orderby?: 'name' | 'createdOn', options?: AxiosRequestConfig): AxiosPromise; } /** * SearchApi - object-oriented interface * @export * @class SearchApi * @extends {BaseAPI} */ export declare class SearchApi extends BaseAPI implements SearchApiInterface { /** * Returns a paginated list of all artifacts that match the provided filter criteria. * @summary Search for artifacts * @param {string} [name] Filter by artifact name. * @param {number} [offset] The number of artifacts to skip before starting to collect the result set. Defaults to 0. * @param {number} [limit] The number of artifacts to return. Defaults to 20. * @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 {Array} [labels] Filter by label. Include one or more label to only return artifacts containing all of the specified labels. * @param {Array} [properties] Filter by one or more name/value property. Separate each name/value pair using a colon. For example `properties=foo:bar` will return only artifacts with a custom property named `foo` and value `bar`. * @param {string} [description] Filter by description. * @param {string} [group] Filter by artifact group. * @param {number} [globalId] Filter by globalId. * @param {number} [contentId] Filter by contentId. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SearchApi */ searchArtifacts(name?: string, offset?: number, limit?: number, order?: SortOrder, orderby?: SortBy, labels?: Array, properties?: Array, description?: string, group?: string, globalId?: number, contentId?: number, options?: AxiosRequestConfig): Promise>; /** * Returns a paginated list of all artifacts with at least one version that matches the posted content. * @summary Search for artifacts by content * @param {any} body The content to search for. * @param {boolean} [canonical] Parameter that can be set to `true` to indicate that the server should \"canonicalize\" the content when searching for matching artifacts. Canonicalization is unique to each artifact type, but typically involves removing any extra whitespace and formatting the content in a consistent manner. Must be used along with the `artifactType` query parameter. * @param {string} [artifactType] Indicates the type of artifact represented by the content being used for the search. This is only needed when using the `canonical` query parameter, so that the server knows how to canonicalize the content prior to searching for matching artifacts. * @param {number} [offset] The number of artifacts to skip before starting to collect the result set. Defaults to 0. * @param {number} [limit] The number of artifacts to return. Defaults to 20. * @param {'asc' | 'desc'} [order] Sort order, ascending (`asc`) or descending (`desc`). * @param {'name' | 'createdOn'} [orderby] The field to sort by. Can be one of: * `name` * `createdOn` * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SearchApi */ searchArtifactsByContent(body: any, canonical?: boolean, artifactType?: string, offset?: number, limit?: number, order?: 'asc' | 'desc', orderby?: 'name' | 'createdOn', options?: AxiosRequestConfig): Promise>; }