import { BaseRequestBuilder, RequestConfiguration, RequestInformation, RequestsMetadata } from '@microsoft/kiota-abstractions'; /** * Canonicalize content */ export interface CanonicalizeRequestBuilder extends BaseRequestBuilder { /** * Canonicalizes the provided content using the rules for the specified artifact type. Canonicalization is specific to each artifact type, but typically involves removing extra whitespace, sorting object keys, and formatting the content in a consistent manner. The canonicalized content is returned as the response body.Note: this endpoint operates on the content as provided and does not resolve external references (`$ref`). To canonicalize content with references resolved, use `GET /groups/{groupId}/artifacts/{artifactId}/versions/{versionExpression}/content?canonical=true` on a stored artifact instead.This operation can fail for the following reasons:* Provided content (request body) was empty (HTTP error `400`)* The artifact type was not provided or was invalid (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; /** * Canonicalizes the provided content using the rules for the specified artifact type. Canonicalization is specific to each artifact type, but typically involves removing extra whitespace, sorting object keys, and formatting the content in a consistent manner. The canonicalized content is returned as the response body.Note: this endpoint operates on the content as provided and does not resolve external references (`$ref`). To canonicalize content with references resolved, use `GET /groups/{groupId}/artifacts/{artifactId}/versions/{versionExpression}/content?canonical=true` on a stored artifact instead.This operation can fail for the following reasons:* Provided content (request body) was empty (HTTP error `400`)* The artifact type was not provided or was invalid (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; } /** * Canonicalizes the provided content using the rules for the specified artifact type. Canonicalization is specific to each artifact type, but typically involves removing extra whitespace, sorting object keys, and formatting the content in a consistent manner. The canonicalized content is returned as the response body.Note: this endpoint operates on the content as provided and does not resolve external references (`$ref`). To canonicalize content with references resolved, use `GET /groups/{groupId}/artifacts/{artifactId}/versions/{versionExpression}/content?canonical=true` on a stored artifact instead.This operation can fail for the following reasons:* Provided content (request body) was empty (HTTP error `400`)* The artifact type was not provided or was invalid (HTTP error `400`)* A server error occurred (HTTP error `500`) */ export interface CanonicalizeRequestBuilderPostQueryParameters { /** * Indicates the type of artifact represented by the content. The server uses this to determine how to canonicalize the content. */ artifactType?: string; } /** * Uri template for the request builder. */ export declare const CanonicalizeRequestBuilderUriTemplate = "{+baseurl}/content/canonicalize?artifactType={artifactType}"; /** * Metadata for all the requests in the request builder. */ export declare const CanonicalizeRequestBuilderRequestsMetadata: RequestsMetadata;