import { type BannedTerm } from '../../models/redirect/index.js'; import { type BannedNameItemRequestBuilder } from './item/index.js'; import { type BaseRequestBuilder, type Guid, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions'; /** * Builds and executes requests for operations under /Api/BannedName */ export interface BannedNameRequestBuilder extends BaseRequestBuilder { /** * Gets an item from the ApiSdk.Api.BannedName.item collection * @param id Object ID that uniquely identifies the record. * @returns {BannedNameItemRequestBuilder} */ byId(id: Guid): BannedNameItemRequestBuilder; /** * Retrieves all records of the banned terms that are not allowed to be used as targets.This endpoint does not have implicit scope (permission) restrictions but includes an internal check on user's RBAC assignments to be able to view bans. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} */ get(requestConfiguration?: RequestConfiguration | undefined): Promise; /** * Create new record of the banned term.This endpoint requires the `BanList.ReadWrite.All` or `Everything.ReadWrite.All` scope (permission). * @param body Object representing a banned term that cannot be used in the vanity URLs. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} */ post(body: BannedTerm, requestConfiguration?: RequestConfiguration | undefined): Promise; /** * Retrieves all records of the banned terms that are not allowed to be used as targets.This endpoint does not have implicit scope (permission) restrictions but includes an internal check on user's RBAC assignments to be able to view bans. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined): RequestInformation; /** * Create new record of the banned term.This endpoint requires the `BanList.ReadWrite.All` or `Everything.ReadWrite.All` scope (permission). * @param body Object representing a banned term that cannot be used in the vanity URLs. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toPostRequestInformation(body: BannedTerm, requestConfiguration?: RequestConfiguration | undefined): RequestInformation; } /** * Retrieves all records of the banned terms that are not allowed to be used as targets.This endpoint does not have implicit scope (permission) restrictions but includes an internal check on user's RBAC assignments to be able to view bans. */ export interface BannedNameRequestBuilderGetQueryParameters { /** * Filter by the `name` field. */ name?: string; /** * Filter by the `type` field. */ type?: GetTypeQueryParameterType; } export type GetTypeQueryParameterType = (typeof GetTypeQueryParameterTypeObject)[keyof typeof GetTypeQueryParameterTypeObject]; /** * Uri template for the request builder. */ export declare const BannedNameRequestBuilderUriTemplate = "{+baseurl}/Api/BannedName{?name*,type*}"; /** * Metadata for all the navigation properties in the request builder. */ export declare const BannedNameRequestBuilderNavigationMetadata: Record, NavigationMetadata>; /** * Metadata for all the requests in the request builder. */ export declare const BannedNameRequestBuilderRequestsMetadata: RequestsMetadata; export declare const GetTypeQueryParameterTypeObject: { readonly RootSegment: "rootSegment"; readonly Global: "global"; };