UNPKG

@microsoft/msgraph-beta-sdk-users

Version:
59 lines 3.46 kB
import { type SignInPreferences } from '@microsoft/msgraph-beta-sdk/models/index.js'; import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions'; /** * Builds and executes requests for operations under /users/{user-id}/authentication/signInPreferences */ export interface SignInPreferencesRequestBuilder extends BaseRequestBuilder<SignInPreferencesRequestBuilder> { /** * Read the properties of a user's authentication states. Use this API to retrieve the following information: * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<SignInPreferences>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code * @see {@link https://learn.microsoft.com/graph/api/authentication-get?view=graph-rest-beta|Find more info here} */ get(requestConfiguration?: RequestConfiguration<SignInPreferencesRequestBuilderGetQueryParameters> | undefined): Promise<SignInPreferences | undefined>; /** * Update the properties of a user's authentication method states. Use this API to update the following information: * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<SignInPreferences>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code * @see {@link https://learn.microsoft.com/graph/api/authentication-update?view=graph-rest-beta|Find more info here} */ patch(body: SignInPreferences, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<SignInPreferences | undefined>; /** * Read the properties of a user's authentication states. Use this API to retrieve the following information: * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toGetRequestInformation(requestConfiguration?: RequestConfiguration<SignInPreferencesRequestBuilderGetQueryParameters> | undefined): RequestInformation; /** * Update the properties of a user's authentication method states. Use this API to update the following information: * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toPatchRequestInformation(body: SignInPreferences, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; } /** * Read the properties of a user's authentication states. Use this API to retrieve the following information: */ export interface SignInPreferencesRequestBuilderGetQueryParameters { /** * Expand related entities */ expand?: string[]; /** * Select properties to be returned */ select?: string[]; } /** * Uri template for the request builder. */ export declare const SignInPreferencesRequestBuilderUriTemplate = "{+baseurl}/users/{user%2Did}/authentication/signInPreferences{?%24expand,%24select}"; /** * Metadata for all the requests in the request builder. */ export declare const SignInPreferencesRequestBuilderRequestsMetadata: RequestsMetadata; //# sourceMappingURL=index.d.ts.map