import type { Region, ReplicationRegion, StorageZone } from "../types"; export interface AddStorageZoneRequestBase { /** * User-specific [API Key](https://dash.bunny.net/account/settings) * @example "cb1a7c68-89a0-462a-9495-13ebd7366cfe" */ apiKey?: string; /** * The name of the storage zone * @example "mywebsite" */ Name: string; /** * The origin URL of the storage zone that will be added * * The origin URL is a very important part of your Pull Zone. It tells our servers where to fetch files that we don't yet have in cache. In the majority of cases, this will simply be the URL of your website or storage service. Please make sure that if your website is using HTTPS, that you make sure your origin URL is set up with HTTPS as well to keep the connection encrypted throughout the network. * * @example "https://mywebsite.com" */ OriginUrl?: string; /** * The code of the main storage zone region (Possible values: DE, NY, LA, SG) * @example "NY" */ Region: Region; } export interface AddStorageZoneRequestEdgeSsd extends AddStorageZoneRequestBase { /** * The code of the main storage zone region (Possible values: DE, NY, LA, SG, SYD) * @example "DE" */ ReplicationRegions?: never; /** * Determines the storage zone tier that will be storing the data * * 0 - Standard * * 1 - Edge (SSD) * * @example 0 */ ZoneTier: 1; } export interface AddStorageZoneRequestReplicationRegion extends AddStorageZoneRequestBase { /** * The code of the main storage zone region (Possible values: DE, NY, LA, SG, SYD) * @example "DE" */ ReplicationRegions?: ReplicationRegion[]; /** * Determines the storage zone tier that will be storing the data * @example 0 */ ZoneTier: 0; } export type AddStorageZoneRequest = AddStorageZoneRequestEdgeSsd | AddStorageZoneRequestReplicationRegion; export type AddStorageZoneResponse = StorageZone; export declare const addStorageZone: import("untypeable/dist/client-ca591958").g; export declare const addStorageZoneEndpoints: { readonly addStorageZone: "addStorageZone"; readonly "POST /storagezone": "POST /storagezone"; }; export declare function addStorageZoneClient(defaultRequestInit: RequestInit, { apiKey, ...input }: AddStorageZoneRequest): Promise; //# sourceMappingURL=addStorageZone.d.ts.map