import { ArtifactSearchResults, ArtifactSortBy, SortOrder } from '../../models/index.js'; import { BaseRequestBuilder, RequestConfiguration, RequestInformation, RequestsMetadata } from '@microsoft/kiota-abstractions'; /** * Search for artifacts in the registry. */ export interface ArtifactsRequestBuilder extends BaseRequestBuilder { /** * Returns a paginated list of all artifacts that match the provided filter criteria.This operation can fail for the following reasons:* A server error occurred (HTTP error `500`) * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} * @throws {ProblemDetails} error when the service returns a 401 status code * @throws {ProblemDetails} error when the service returns a 403 status code * @throws {ProblemDetails} error when the service returns a 500 status code */ get(requestConfiguration?: RequestConfiguration | undefined): Promise; /** * Returns a paginated list of all artifacts with at least one version that matches theposted content.This operation can fail for the following reasons:* Provided content (request body) was empty (HTTP error `400`)* A server error occurred (HTTP error `500`) * @param body Binary request body * @param contentType The request body content type. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} * @throws {ProblemDetails} error when the service returns a 400 status code * @throws {ProblemDetails} error when the service returns a 401 status code * @throws {ProblemDetails} error when the service returns a 403 status code * @throws {ProblemDetails} error when the service returns a 500 status code */ post(body: ArrayBuffer | undefined, contentType: string | undefined, requestConfiguration?: RequestConfiguration | undefined): Promise; /** * Returns a paginated list of all artifacts that match the provided filter criteria.This operation can fail for the following reasons:* A server error occurred (HTTP error `500`) * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined): RequestInformation; /** * Returns a paginated list of all artifacts with at least one version that matches theposted content.This operation can fail for the following reasons:* Provided content (request body) was empty (HTTP error `400`)* A server error occurred (HTTP error `500`) * @param body Binary request body * @param contentType The request body content type. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toPostRequestInformation(body: ArrayBuffer | undefined, contentType: string | undefined, requestConfiguration?: RequestConfiguration | undefined): RequestInformation; } /** * Returns a paginated list of all artifacts that match the provided filter criteria.This operation can fail for the following reasons:* A server error occurred (HTTP error `500`) */ export interface ArtifactsRequestBuilderGetQueryParameters { /** * Filter by artifactId. */ artifactId?: string; /** * Filter by artifact type (`AVRO`, `JSON`, etc). */ artifactType?: string; /** * Filter by contentId. */ contentId?: number; /** * Filter by description. */ description?: string; /** * Filter by globalId. */ globalId?: number; /** * Filter by artifact group. */ groupId?: string; /** * Filter by one or more name/value label. Separate each name/value pair using a colon, which splits on the last colon (e.g. `labels=foo:bar` matches key `foo` and value `bar`). Note: the key:value query treats the last colon as the delimiter, so values containing colons cannot be matched via this syntax (they remain matchable via key-only queries). */ labels?: string[]; /** * The number of artifacts to return. Defaults to 20. */ limit?: number; /** * Filter by artifact name. */ name?: string; /** * The number of artifacts to skip before starting to collect the result set. Defaults to 0. */ offset?: number; /** * Sort order, ascending (`asc`) or descending (`desc`). */ order?: SortOrder; /** * The field to sort by. Can be one of:* `name`* `createdOn` */ orderby?: ArtifactSortBy; /** * Indicates whether to skip the total count query. When true, the total count is not computed and count will be 0 in the response. This can improve performance for large datasets. */ skipCount?: boolean; } /** * Returns a paginated list of all artifacts with at least one version that matches theposted content.This operation can fail for the following reasons:* Provided content (request body) was empty (HTTP error `400`)* A server error occurred (HTTP error `500`) */ export interface ArtifactsRequestBuilderPostQueryParameters { /** * 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. */ artifactType?: string; /** * 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. */ canonical?: boolean; /** * Filter by artifact group. */ groupId?: string; /** * The number of artifacts to return. Defaults to 20. */ limit?: number; /** * The number of artifacts to skip before starting to collect the result set. Defaults to 0. */ offset?: number; /** * Sort order, ascending (`asc`) or descending (`desc`). */ order?: SortOrder; /** * The field to sort by. Can be one of:* `name`* `createdOn` */ orderby?: ArtifactSortBy; /** * Indicates whether to skip the total count query. When true, the total count is not computed and count will be 0 in the response. This can improve performance for large datasets. */ skipCount?: boolean; } /** * Uri template for the request builder. */ export declare const ArtifactsRequestBuilderUriTemplate = "{+baseurl}/search/artifacts{?artifactId*,artifactType*,canonical*,contentId*,description*,globalId*,groupId*,labels*,limit*,name*,offset*,order*,orderby*,skipCount*}"; /** * Metadata for all the requests in the request builder. */ export declare const ArtifactsRequestBuilderRequestsMetadata: RequestsMetadata;