UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

91 lines 2.77 kB
import { APIResource } from "../../../resource.js"; import * as Core from "../../../core.js"; import * as Shared from "../../shared.js"; export declare class Accounts extends APIResource { /** * Add an account as a member of a particular address map. */ update(addressMapId: string, params: AccountUpdateParams, options?: Core.RequestOptions): Core.APIPromise<AccountUpdateResponse>; /** * Remove an account as a member of a particular address map. */ delete(addressMapId: string, params: AccountDeleteParams, options?: Core.RequestOptions): Core.APIPromise<AccountDeleteResponse>; } export interface AccountUpdateResponse { errors: Array<Shared.ResponseInfo>; messages: Array<Shared.ResponseInfo>; /** * Whether the API call was successful */ success: true; result_info?: AccountUpdateResponse.ResultInfo; } export declare namespace AccountUpdateResponse { interface ResultInfo { /** * Total number of results for the requested service */ count?: number; /** * Current page within paginated list of results */ page?: number; /** * Number of results per page of results */ per_page?: number; /** * Total results available without any search parameters */ total_count?: number; } } export interface AccountDeleteResponse { errors: Array<Shared.ResponseInfo>; messages: Array<Shared.ResponseInfo>; /** * Whether the API call was successful */ success: true; result_info?: AccountDeleteResponse.ResultInfo; } export declare namespace AccountDeleteResponse { interface ResultInfo { /** * Total number of results for the requested service */ count?: number; /** * Current page within paginated list of results */ page?: number; /** * Number of results per page of results */ per_page?: number; /** * Total results available without any search parameters */ total_count?: number; } } export interface AccountUpdateParams { /** * Path param: Identifier of a Cloudflare account. */ account_id: string; /** * Body param: */ body: unknown; } export interface AccountDeleteParams { /** * Identifier of a Cloudflare account. */ account_id: string; } export declare namespace Accounts { export { type AccountUpdateResponse as AccountUpdateResponse, type AccountDeleteResponse as AccountDeleteResponse, type AccountUpdateParams as AccountUpdateParams, type AccountDeleteParams as AccountDeleteParams, }; } //# sourceMappingURL=accounts.d.ts.map