import { APIResource } from "../../../../resource.js"; import * as Core from "../../../../core.js"; import * as StatusAPI from "./status.js"; import { Status, StatusGetParams } from "./status.js"; export declare class OutgoingResource extends APIResource { status: StatusAPI.Status; /** * Create primary zone configuration for outgoing zone transfers. * * @example * ```ts * const outgoing = * await client.dns.zoneTransfers.outgoing.create({ * zone_id: '269d8f4853475ca241c4e730be286b20', * name: 'www.example.com.', * peers: [ * '23ff594956f20c2a721606e94745a8aa', * '00920f38ce07c2e2f4df50b1f61d4194', * ], * }); * ``` */ create(params: OutgoingCreateParams, options?: Core.RequestOptions): Core.APIPromise; /** * Update primary zone configuration for outgoing zone transfers. * * @example * ```ts * const outgoing = * await client.dns.zoneTransfers.outgoing.update({ * zone_id: '269d8f4853475ca241c4e730be286b20', * name: 'www.example.com.', * peers: [ * '23ff594956f20c2a721606e94745a8aa', * '00920f38ce07c2e2f4df50b1f61d4194', * ], * }); * ``` */ update(params: OutgoingUpdateParams, options?: Core.RequestOptions): Core.APIPromise; /** * Delete primary zone configuration for outgoing zone transfers. * * @example * ```ts * const outgoing = * await client.dns.zoneTransfers.outgoing.delete({ * zone_id: '269d8f4853475ca241c4e730be286b20', * }); * ``` */ delete(params: OutgoingDeleteParams, options?: Core.RequestOptions): Core.APIPromise; /** * Disable outgoing zone transfers for primary zone and clears IXFR backlog of * primary zone. * * @example * ```ts * const disableTransfer = * await client.dns.zoneTransfers.outgoing.disable({ * zone_id: '269d8f4853475ca241c4e730be286b20', * body: {}, * }); * ``` */ disable(params: OutgoingDisableParams, options?: Core.RequestOptions): Core.APIPromise; /** * Enable outgoing zone transfers for primary zone. * * @example * ```ts * const enableTransfer = * await client.dns.zoneTransfers.outgoing.enable({ * zone_id: '269d8f4853475ca241c4e730be286b20', * body: {}, * }); * ``` */ enable(params: OutgoingEnableParams, options?: Core.RequestOptions): Core.APIPromise; /** * Notifies the secondary nameserver(s) and clears IXFR backlog of primary zone. * * @example * ```ts * const response = * await client.dns.zoneTransfers.outgoing.forceNotify({ * zone_id: '269d8f4853475ca241c4e730be286b20', * body: {}, * }); * ``` */ forceNotify(params: OutgoingForceNotifyParams, options?: Core.RequestOptions): Core.APIPromise; /** * Get primary zone configuration for outgoing zone transfers. * * @example * ```ts * const outgoing = * await client.dns.zoneTransfers.outgoing.get({ * zone_id: '269d8f4853475ca241c4e730be286b20', * }); * ``` */ get(params: OutgoingGetParams, options?: Core.RequestOptions): Core.APIPromise; } /** * The zone transfer status of a primary zone. */ export type DisableTransfer = string; /** * The zone transfer status of a primary zone. */ export type EnableTransfer = string; export interface Outgoing { id?: string; /** * The time for a specific event. */ checked_time?: string; /** * The time for a specific event. */ created_time?: string; /** * The time for a specific event. */ last_transferred_time?: string; /** * Zone name. */ name?: string; /** * A list of peer tags. */ peers?: Array; /** * The serial number of the SOA for the given zone. */ soa_serial?: number; } /** * The zone transfer status of a primary zone. */ export type OutgoingStatus = string | null; export interface OutgoingCreateResponse { id?: string; /** * The time for a specific event. */ checked_time?: string; /** * The time for a specific event. */ created_time?: string; /** * The time for a specific event. */ last_transferred_time?: string; /** * Zone name. */ name?: string; /** * A list of peer tags. */ peers?: Array; /** * The serial number of the SOA for the given zone. */ soa_serial?: number; } export interface OutgoingUpdateResponse { id?: string; /** * The time for a specific event. */ checked_time?: string; /** * The time for a specific event. */ created_time?: string; /** * The time for a specific event. */ last_transferred_time?: string; /** * Zone name. */ name?: string; /** * A list of peer tags. */ peers?: Array; /** * The serial number of the SOA for the given zone. */ soa_serial?: number; } export interface OutgoingDeleteResponse { id?: string; } /** * When force_notify query parameter is set to true, the response is a simple * string. */ export type OutgoingForceNotifyResponse = string; export interface OutgoingGetResponse { id?: string; /** * The time for a specific event. */ checked_time?: string; /** * The time for a specific event. */ created_time?: string; /** * The time for a specific event. */ last_transferred_time?: string; /** * Zone name. */ name?: string; /** * A list of peer tags. */ peers?: Array; /** * The serial number of the SOA for the given zone. */ soa_serial?: number; } export interface OutgoingCreateParams { /** * Path param: */ zone_id: string; /** * Body param: Zone name. */ name: string; /** * Body param: A list of peer tags. */ peers: Array; } export interface OutgoingUpdateParams { /** * Path param: */ zone_id: string; /** * Body param: Zone name. */ name: string; /** * Body param: A list of peer tags. */ peers: Array; } export interface OutgoingDeleteParams { zone_id: string; } export interface OutgoingDisableParams { /** * Path param: */ zone_id: string; /** * Body param: */ body: unknown; } export interface OutgoingEnableParams { /** * Path param: */ zone_id: string; /** * Body param: */ body: unknown; } export interface OutgoingForceNotifyParams { /** * Path param: */ zone_id: string; /** * Body param: */ body: unknown; } export interface OutgoingGetParams { zone_id: string; } export declare namespace OutgoingResource { export { type DisableTransfer as DisableTransfer, type EnableTransfer as EnableTransfer, type Outgoing as Outgoing, type OutgoingStatus as OutgoingStatus, type OutgoingCreateResponse as OutgoingCreateResponse, type OutgoingUpdateResponse as OutgoingUpdateResponse, type OutgoingDeleteResponse as OutgoingDeleteResponse, type OutgoingForceNotifyResponse as OutgoingForceNotifyResponse, type OutgoingGetResponse as OutgoingGetResponse, type OutgoingCreateParams as OutgoingCreateParams, type OutgoingUpdateParams as OutgoingUpdateParams, type OutgoingDeleteParams as OutgoingDeleteParams, type OutgoingDisableParams as OutgoingDisableParams, type OutgoingEnableParams as OutgoingEnableParams, type OutgoingForceNotifyParams as OutgoingForceNotifyParams, type OutgoingGetParams as OutgoingGetParams, }; export { Status as Status, type StatusGetParams as StatusGetParams }; } //# sourceMappingURL=outgoing.d.ts.map