@linode/validation
Version:
Yup validation schemas for use with the Linode APIv4
193 lines • 6.59 kB
TypeScript
export declare const destinationFormSchema: import("yup").ObjectSchema<{
label: string;
type: NonNullable<"akamai_object_storage" | "custom_https" | undefined>;
details: NonNullable<{
path: string;
host: string;
bucket_name: string;
access_key_id: string;
access_key_secret: string;
} | {
client_certificate_details?: {
tls_hostname: string;
client_ca_certificate: string;
client_certificate: string;
client_private_key: string;
} | undefined;
custom_headers?: {
value: string;
name: string;
}[] | undefined;
authentication: {
details?: {
basic_authentication_user: string;
basic_authentication_password: string;
} | undefined;
type: NonNullable<"basic" | "none" | undefined>;
};
content_type: NonNullable<"application/json" | "application/json; charset=utf-8" | undefined>;
data_compression: NonNullable<"gzip" | "None" | undefined>;
endpoint_url: string;
}>;
}, import("yup").AnyObject, {
label: undefined;
type: undefined;
details: undefined;
}, "">;
export declare const createDestinationSchema: import("yup").ObjectSchema<{
label: string;
type: NonNullable<"akamai_object_storage" | "custom_https" | undefined>;
details: NonNullable<{
client_certificate_details?: {
tls_hostname: string;
client_ca_certificate: string;
client_certificate: string;
client_private_key: string;
} | undefined;
custom_headers?: {
value: string;
name: string;
}[] | undefined;
authentication: {
details?: {
basic_authentication_user: string;
basic_authentication_password: string;
} | undefined;
type: NonNullable<"basic" | "none" | undefined>;
};
content_type: NonNullable<"application/json" | "application/json; charset=utf-8" | undefined>;
data_compression: NonNullable<"gzip" | "None" | undefined>;
endpoint_url: string;
} | {
path?: string | undefined;
host: string;
bucket_name: string;
access_key_id: string;
access_key_secret: string;
}>;
}, import("yup").AnyObject, {
label: undefined;
type: undefined;
details: undefined;
}, "">;
export declare const updateDestinationSchema: import("yup").ObjectSchema<{
label: string;
details: {} | {
client_certificate_details?: {
tls_hostname: string;
client_ca_certificate: string;
client_certificate: string;
client_private_key: string;
} | undefined;
custom_headers?: {
value: string;
name: string;
}[] | undefined;
authentication: {
details?: {
basic_authentication_user: string;
basic_authentication_password: string;
} | undefined;
type: NonNullable<"basic" | "none" | undefined>;
};
content_type: NonNullable<"application/json" | "application/json; charset=utf-8" | undefined>;
data_compression: NonNullable<"gzip" | "None" | undefined>;
endpoint_url: string;
} | {
path?: string | undefined;
host: string;
bucket_name: string;
access_key_id: string;
access_key_secret: string;
} | undefined;
}, import("yup").AnyObject, {
label: undefined;
type: undefined;
details: undefined;
}, "">;
export declare const createStreamSchema: import("yup").ObjectSchema<{
label: string;
status: "active" | "inactive" | undefined;
type: NonNullable<"audit_logs" | "lke_audit_logs" | undefined>;
destinations: number[];
details: {} | undefined;
}, import("yup").AnyObject, {
label: undefined;
status: undefined;
type: undefined;
destinations: number[] | undefined;
details: undefined;
}, "">;
export declare const updateStreamSchema: import("yup").ObjectSchema<{
label: string;
status: NonNullable<"active" | "inactive" | undefined>;
details: {} | {
is_auto_add_all_clusters_enabled?: boolean | undefined;
cluster_ids?: number[] | undefined;
} | null | undefined;
destinations: number[];
}, import("yup").AnyObject, {
label: undefined;
status: undefined;
type: undefined;
destinations: number[] | undefined;
details: undefined;
}, "">;
export declare const streamAndDestinationFormSchema: import("yup").ObjectSchema<{
stream: {
status?: "active" | "inactive" | undefined;
label: string;
type: NonNullable<"audit_logs" | "lke_audit_logs" | undefined>;
details: {
is_auto_add_all_clusters_enabled?: boolean | undefined;
cluster_ids?: number[] | undefined;
} | null;
destinations: number[];
};
destination: {
label: string;
type: NonNullable<"akamai_object_storage" | "custom_https" | undefined>;
details: NonNullable<{
path: string;
host: string;
bucket_name: string;
access_key_id: string;
access_key_secret: string;
} | {
client_certificate_details?: {
tls_hostname: string;
client_ca_certificate: string;
client_certificate: string;
client_private_key: string;
} | undefined;
custom_headers?: {
value: string;
name: string;
}[] | undefined;
authentication: {
details?: {
basic_authentication_user: string;
basic_authentication_password: string;
} | undefined;
type: NonNullable<"basic" | "none" | undefined>;
};
content_type: NonNullable<"application/json" | "application/json; charset=utf-8" | undefined>;
data_compression: NonNullable<"gzip" | "None" | undefined>;
endpoint_url: string;
}>;
};
}, import("yup").AnyObject, {
stream: {
label: undefined;
status: undefined;
type: undefined;
destinations: number[] & "";
details: any;
};
destination: {
label: undefined;
type: undefined;
details: undefined;
};
}, "">;
//# sourceMappingURL=delivery.schema.d.ts.map