import { type DomainName } from '../../models/redirect/index.js'; import { type DomainItemRequestBuilder } 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/Domain */ export interface DomainRequestBuilder extends BaseRequestBuilder { /** * Gets an item from the ApiSdk.Api.Domain.item collection * @param id Object ID that uniquely identifies the record. * @returns {DomainItemRequestBuilder} */ byId(id: Guid): DomainItemRequestBuilder; /** * Retrieves all domain name records from the database.This endpoint does not have implicit scope (permission) restrictions but includes an internal check on user's RBAC assignments. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} */ get(requestConfiguration?: RequestConfiguration | undefined): Promise; /** * Creates new domain name record in the database and returns information enriched with created metadata.This endpoint requires the `Domain.ReadWrite.All` or `Everything.ReadWrite.All` scope (permission). * @param body Object representing a domain name entry that will serve as a base for vanity URLs. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} */ post(body: DomainName, requestConfiguration?: RequestConfiguration | undefined): Promise; /** * Retrieves all domain name records from the database.This endpoint does not have implicit scope (permission) restrictions but includes an internal check on user's RBAC assignments. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined): RequestInformation; /** * Creates new domain name record in the database and returns information enriched with created metadata.This endpoint requires the `Domain.ReadWrite.All` or `Everything.ReadWrite.All` scope (permission). * @param body Object representing a domain name entry that will serve as a base for vanity URLs. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toPostRequestInformation(body: DomainName, requestConfiguration?: RequestConfiguration | undefined): RequestInformation; } /** * Retrieves all domain name records from the database.This endpoint does not have implicit scope (permission) restrictions but includes an internal check on user's RBAC assignments. */ export interface DomainRequestBuilderGetQueryParameters { /** * Filter by the `allowHttp` field. */ allowHttp?: boolean; /** * Filter by the `count` field. */ count?: number; /** * Filter by the `hidden` field. */ hidden?: boolean; /** * Filter by the `hostName` field. */ hostName?: 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 DomainRequestBuilderUriTemplate = "{+baseurl}/Api/Domain{?allowHttp*,count*,hidden*,hostName*,type*}"; /** * Metadata for all the navigation properties in the request builder. */ export declare const DomainRequestBuilderNavigationMetadata: Record, NavigationMetadata>; /** * Metadata for all the requests in the request builder. */ export declare const DomainRequestBuilderRequestsMetadata: RequestsMetadata; export declare const GetTypeQueryParameterTypeObject: { readonly Vanity: "vanity"; readonly IdNumber: "idNumber"; };