import { inspect, InspectOptions } from "util"; import V1 from "../V1"; import { ApiResponse } from "../../../base/ApiResponse"; /** * The results of the requested signals. */ export declare class AccountsV1ComplianceSignalsCheckSignals { "quietHours"?: AccountsV1ComplianceSignalsCheckSignalsQuietHours | null; constructor(payload: any); } /** * The quiet hours evaluation for the recipient. */ export declare class AccountsV1ComplianceSignalsCheckSignalsQuietHours { /** * Whether quiet hours are in effect for the recipient. */ "isActive"?: boolean; /** * Why quiet hours are or are not in effect. */ "reason"?: string; /** * Whether the evaluated use case is essential or non-essential. It is null when it does not apply. */ "evaluatedUseCase"?: string | null; "location"?: AccountsV1ComplianceSignalsCheckSignalsQuietHoursLocation; "sendingWindow"?: AccountsV1ComplianceSignalsCheckSignalsQuietHoursSendingWindow | null; constructor(payload: any); } /** * The location of the recipient used for the evaluation. */ export declare class AccountsV1ComplianceSignalsCheckSignalsQuietHoursLocation { /** * The ISO 3166-1 alpha-2 country of the recipient. */ "countryIsoCode"?: string | null; /** * The state of the recipient. */ "stateCode"?: string | null; constructor(payload: any); } /** * The time window in which the message can be sent outside quiet hours. When the requested time is already outside quiet hours, `startAt` is that time and `endAt` is when quiet hours begin. It is null when it does not apply or the use case is exempt. */ export declare class AccountsV1ComplianceSignalsCheckSignalsQuietHoursSendingWindow { /** * The start of the window in UTC. */ "startAt"?: Date; /** * The end of the window in UTC. */ "endAt"?: Date; constructor(payload: any); } export declare class CreateComplianceSignalsCheckRequest { /** * The signals to evaluate. Only `QUIET_HOURS` is supported. */ "signals": Array; /** * The recipient phone number in [E.164 format](https://www.twilio.com/docs/glossary/what-e164). */ "to": string; /** * The content of the message, at most 1600 characters. Required if `useCase` is not provided. */ "body"?: string; /** * The intent of the message, one of `OTP`, `NOTIFICATIONS`, `FRAUD`, `SECURITY`, `CUSTOMERCARE`, `DELIVERY`, `EDUCATION`, `EVENTS`, `POLLING`, `ANNOUNCEMENTS` or `MARKETING`. Required if `body` is not provided. It is used instead of the body when both are given. */ "useCase"?: string; /** * The channel the message is sent on, one of `SMS`, `MMS`, `RCS` or `CALL`. Defaults to `SMS`. */ "channel"?: string; /** * The ISO 3166-1 alpha-2 country of the recipient. Only `US` is supported. */ "countryIsoCode": string; /** * The US zip code of the recipient, 5 digits or ZIP+4. When it is not given or not known, the location is inferred from the phone number. */ "zipCode"?: string; /** * An [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339) timestamp, in UTC or with an offset, to evaluate a scheduled delivery instead of the current time. It must not be in the past. */ "sendAt"?: string; constructor(payload: any); } /** * Options to pass to create a ComplianceSignalsCheckInstance */ export interface ComplianceSignalsCheckListInstanceCreateOptions { /** */ createComplianceSignalsCheckRequest?: CreateComplianceSignalsCheckRequest; } export interface ComplianceSignalsCheckSolution { } export interface ComplianceSignalsCheckListInstance { _version: V1; _solution: ComplianceSignalsCheckSolution; _uri: string; /** * Create a ComplianceSignalsCheckInstance * * @param callback - Callback to handle processed record * * @returns Resolves to processed ComplianceSignalsCheckInstance */ create(callback?: (error: Error | null, item?: ComplianceSignalsCheckInstance) => any): Promise; /** * Create a ComplianceSignalsCheckInstance * * @param params - Body for request * @param headers - header params for request * @param callback - Callback to handle processed record * * @returns Resolves to processed ComplianceSignalsCheckInstance */ create(params: CreateComplianceSignalsCheckRequest, headers?: any, callback?: (error: Error | null, item?: ComplianceSignalsCheckInstance) => any): Promise; /** * Create a ComplianceSignalsCheckInstance and return HTTP info * * @param callback - Callback to handle processed record * * @returns Resolves to processed ComplianceSignalsCheckInstance with HTTP metadata */ createWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse) => any): Promise>; /** * Create a ComplianceSignalsCheckInstance and return HTTP info * * @param params - Body for request * @param headers - header params for request * @param callback - Callback to handle processed record * * @returns Resolves to processed ComplianceSignalsCheckInstance with HTTP metadata */ createWithHttpInfo(params: CreateComplianceSignalsCheckRequest, headers?: any, callback?: (error: Error | null, item?: ApiResponse) => any): Promise>; /** * Provide a user-friendly representation */ toJSON(): any; [inspect.custom](_depth: any, options: InspectOptions): any; } export declare function ComplianceSignalsCheckListInstance(version: V1): ComplianceSignalsCheckListInstance; interface ComplianceSignalsCheckResource { signals: AccountsV1ComplianceSignalsCheckSignals; } export declare class ComplianceSignalsCheckInstance { protected _version: V1; constructor(_version: V1, payload: ComplianceSignalsCheckResource); signals: AccountsV1ComplianceSignalsCheckSignals; /** * Provide a user-friendly representation * * @returns Object */ toJSON(): { signals: AccountsV1ComplianceSignalsCheckSignals; }; [inspect.custom](_depth: any, options: InspectOptions): string; } export {};