import { APIResource } from "../../../core/resource.js"; import * as OptionsAPI from "./options.js"; import { OptionRetrieveParams, OptionRetrieveResponse, Options } from "./options.js"; import * as PreferenceAPI from "./preference.js"; import { PersonalizationOptionItem, Preference, PreferenceRetrieveParams, PreferenceUpdateParams, UserPersonalizationPreferenceResponse } from "./preference.js"; import { APIPromise } from "../../../core/api-promise.js"; import { RequestOptions } from "../../../internal/request-options.js"; export declare class Personalization extends APIResource { preference: PreferenceAPI.Preference; options: OptionsAPI.Options; /** * Update user personalization preference toggle status. */ enable(params: PersonalizationEnableParams, options?: RequestOptions): APIPromise; /** * Get user personalization preference toggle status. */ isEnabled(params?: PersonalizationIsEnabledParams | null | undefined, options?: RequestOptions): APIPromise; } /** * Response model for personalization preference toggle. * * Attributes: use_personalization (bool): Whether personalization is enabled for * the user. */ export interface UserPersonalizationPreferenceToggleResponse { /** * Whether personalization is enabled for the user */ use_personalization: boolean; } export interface PersonalizationEnableParams { /** * Body param: Whether to enable personalization for the user */ use_personalization: boolean; /** * Header param */ 'Accept-Language'?: string; /** * Header param: Set to `structured` to receive errors in the structured envelope. * Omit it to keep the legacy error body. */ 'X-Error-Format'?: string; } export interface PersonalizationIsEnabledParams { 'Accept-Language'?: string; /** * Set to `structured` to receive errors in the structured envelope. Omit it to * keep the legacy error body. */ 'X-Error-Format'?: string; } export declare namespace Personalization { export { type UserPersonalizationPreferenceToggleResponse as UserPersonalizationPreferenceToggleResponse, type PersonalizationEnableParams as PersonalizationEnableParams, type PersonalizationIsEnabledParams as PersonalizationIsEnabledParams, }; export { Preference as Preference, type PersonalizationOptionItem as PersonalizationOptionItem, type UserPersonalizationPreferenceResponse as UserPersonalizationPreferenceResponse, type PreferenceRetrieveParams as PreferenceRetrieveParams, type PreferenceUpdateParams as PreferenceUpdateParams, }; export { Options as Options, type OptionRetrieveResponse as OptionRetrieveResponse, type OptionRetrieveParams as OptionRetrieveParams, }; } //# sourceMappingURL=personalization.d.ts.map