feat:Update pnpm-lock.yaml to link shared package; modify API routes to utilize new schemas for domain and service management; enhance DNS record handling with CNAME support; refactor service and subdomain routes for improved functionality; implement confirm dialog for domain deletion in the frontend; clean up unused components and improve UI consistency.
Build, Test, and Push CFDM Docker Image / test (push) Failing after 51s
Build, Test, and Push CFDM Docker Image / build-and-push (push) Has been skipped
Build, Test, and Push CFDM Docker Image / update-wiki (push) Has been skipped
Build, Test, and Push CFDM Docker Image / create-release (push) Has been skipped
Build, Test, and Push CFDM Docker Image / test (push) Failing after 51s
Build, Test, and Push CFDM Docker Image / build-and-push (push) Has been skipped
Build, Test, and Push CFDM Docker Image / update-wiki (push) Has been skipped
Build, Test, and Push CFDM Docker Image / create-release (push) Has been skipped
This commit is contained in:
Vendored
+257
-83
@@ -10,16 +10,136 @@ declare const CERT_WARNING = "warning";
|
||||
declare const CERT_EXPIRED = "expired";
|
||||
declare const CERT_ERROR = "error";
|
||||
declare const CERT_UNKNOWN = "unknown";
|
||||
declare const CERT_MONITOR_AUTO = "auto";
|
||||
declare const CERT_MONITOR_REQUIRED = "required";
|
||||
declare const CERT_MONITOR_SKIPPED = "skipped";
|
||||
declare const CERT_MONITORING_VALUES: readonly ["auto", "required", "skipped"];
|
||||
|
||||
interface ServiceGroup$1 {
|
||||
id: number;
|
||||
name: string;
|
||||
type: string;
|
||||
icon: string | null;
|
||||
domain: string | null;
|
||||
enabled: boolean;
|
||||
created_at: string;
|
||||
updated_at: string;
|
||||
}
|
||||
interface Service$1 {
|
||||
id: number;
|
||||
name: string;
|
||||
slug: string;
|
||||
service_group_id: number | null;
|
||||
subdomain: string;
|
||||
enabled: boolean;
|
||||
sort_order: number;
|
||||
created_at: string;
|
||||
updated_at: string;
|
||||
}
|
||||
interface Subdomain {
|
||||
id: number;
|
||||
domain_id: number;
|
||||
name: string;
|
||||
fqdn: string;
|
||||
enabled: boolean;
|
||||
cert_monitoring: string;
|
||||
created_at: string;
|
||||
updated_at: string;
|
||||
}
|
||||
interface ServiceBinding {
|
||||
id: number;
|
||||
domain_id: number;
|
||||
service_id: number;
|
||||
hostname: string;
|
||||
cname_target: string | null;
|
||||
dns_record_id: number | null;
|
||||
created_at: string;
|
||||
updated_at: string;
|
||||
}
|
||||
interface ServiceBindingView {
|
||||
id: number;
|
||||
domain_id: number;
|
||||
service_id: number;
|
||||
hostname: string;
|
||||
dns_record_id: number | null;
|
||||
zone_name: string;
|
||||
group_id: number | null;
|
||||
group_name: string | null;
|
||||
service_name: string;
|
||||
service_slug: string;
|
||||
target_ip: string | null;
|
||||
target_ips: string[];
|
||||
sync_status: string | null;
|
||||
created_at: string;
|
||||
updated_at: string;
|
||||
}
|
||||
interface ServiceDomainBindingView {
|
||||
binding_id: number;
|
||||
domain_id: number;
|
||||
zone_name: string;
|
||||
hostname: string;
|
||||
fqdn: string;
|
||||
record_type: "A" | "CNAME";
|
||||
target_ips: string[];
|
||||
target_cname: string | null;
|
||||
sync_status: string | null;
|
||||
}
|
||||
interface SyncJob {
|
||||
id: string;
|
||||
status: string;
|
||||
domain_id: number | null;
|
||||
message: string | null;
|
||||
created_at: string;
|
||||
finished_at: string | null;
|
||||
}
|
||||
interface CfZone {
|
||||
id: string;
|
||||
name: string;
|
||||
status: string;
|
||||
}
|
||||
interface CfDnsRecord {
|
||||
id?: string;
|
||||
type: string;
|
||||
name: string;
|
||||
content: string;
|
||||
ttl: number;
|
||||
proxied?: boolean;
|
||||
priority?: number;
|
||||
}
|
||||
interface CreateDnsRecordPayload {
|
||||
type: string;
|
||||
name: string;
|
||||
content: string;
|
||||
ttl: number;
|
||||
proxied?: boolean;
|
||||
priority?: number;
|
||||
}
|
||||
interface LoginRequest {
|
||||
username: string;
|
||||
password: string;
|
||||
}
|
||||
interface LoginResponse {
|
||||
token: string;
|
||||
expires_at: string;
|
||||
}
|
||||
interface JwtClaims {
|
||||
sub: string;
|
||||
exp: number;
|
||||
}
|
||||
|
||||
declare class ValidationError extends Error {
|
||||
constructor(message: string);
|
||||
}
|
||||
declare function validateDnsRecord(recordType: string, name: string, content: string, ttl: number, proxied: boolean): void;
|
||||
declare function certStatusFromExpiry(daysLeft: number): string;
|
||||
declare function shouldMonitorService(service: Pick<Service$1, "enabled" | "service_group_id">, group?: Pick<ServiceGroup$1, "enabled"> | null): boolean;
|
||||
declare function isValidIpv4(ip: string): boolean;
|
||||
|
||||
declare function dnsNameToSubdomainLabel(recordName: string, zoneName: string): string | null;
|
||||
declare function subdomainLabelToFqdn(label: string, zoneName: string): string;
|
||||
/** Canonical DNS record name as returned by Cloudflare for a zone. */
|
||||
declare function normalizeDnsRecordName(recordName: string, zoneName: string): string;
|
||||
declare function dnsRecordNamesMatch(left: string, right: string, zoneName: string): boolean;
|
||||
|
||||
interface ParsedFqdn {
|
||||
zoneName: string;
|
||||
@@ -34,6 +154,12 @@ declare function bindingToFqdn(binding: {
|
||||
fqdn?: string;
|
||||
}): string;
|
||||
|
||||
declare const certMonitoringSchema: z.ZodEnum<{
|
||||
auto: "auto";
|
||||
required: "required";
|
||||
skipped: "skipped";
|
||||
}>;
|
||||
type CertMonitoring = z.infer<typeof certMonitoringSchema>;
|
||||
declare const groupSchema: z.ZodObject<{
|
||||
id: z.ZodNumber;
|
||||
name: z.ZodString;
|
||||
@@ -89,11 +215,18 @@ declare const serviceDomainBindingSchema: z.ZodPipe<z.ZodObject<{
|
||||
zone_name: z.ZodString;
|
||||
hostname: z.ZodString;
|
||||
fqdn: z.ZodString;
|
||||
record_type: z.ZodDefault<z.ZodEnum<{
|
||||
A: "A";
|
||||
CNAME: "CNAME";
|
||||
}>>;
|
||||
target_ips: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
||||
target_ip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
||||
target_cname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
||||
sync_status: z.ZodNullable<z.ZodString>;
|
||||
}, z.core.$strip>, z.ZodTransform<{
|
||||
target_ips: string[];
|
||||
target_cname: string | null;
|
||||
record_type: "A" | "CNAME";
|
||||
binding_id: number;
|
||||
domain_id: number;
|
||||
zone_name: string;
|
||||
@@ -107,9 +240,11 @@ declare const serviceDomainBindingSchema: z.ZodPipe<z.ZodObject<{
|
||||
zone_name: string;
|
||||
hostname: string;
|
||||
fqdn: string;
|
||||
record_type: "A" | "CNAME";
|
||||
sync_status: string | null;
|
||||
target_ips?: string[] | undefined;
|
||||
target_ip?: string | null | undefined;
|
||||
target_cname?: string | null | undefined;
|
||||
}>>;
|
||||
declare const serviceViewSchema: z.ZodObject<{
|
||||
id: z.ZodNumber;
|
||||
@@ -128,11 +263,18 @@ declare const serviceViewSchema: z.ZodObject<{
|
||||
zone_name: z.ZodString;
|
||||
hostname: z.ZodString;
|
||||
fqdn: z.ZodString;
|
||||
record_type: z.ZodDefault<z.ZodEnum<{
|
||||
A: "A";
|
||||
CNAME: "CNAME";
|
||||
}>>;
|
||||
target_ips: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
||||
target_ip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
||||
target_cname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
||||
sync_status: z.ZodNullable<z.ZodString>;
|
||||
}, z.core.$strip>, z.ZodTransform<{
|
||||
target_ips: string[];
|
||||
target_cname: string | null;
|
||||
record_type: "A" | "CNAME";
|
||||
binding_id: number;
|
||||
domain_id: number;
|
||||
zone_name: string;
|
||||
@@ -146,9 +288,11 @@ declare const serviceViewSchema: z.ZodObject<{
|
||||
zone_name: string;
|
||||
hostname: string;
|
||||
fqdn: string;
|
||||
record_type: "A" | "CNAME";
|
||||
sync_status: string | null;
|
||||
target_ips?: string[] | undefined;
|
||||
target_ip?: string | null | undefined;
|
||||
target_cname?: string | null | undefined;
|
||||
}>>>>;
|
||||
}, z.core.$strip>;
|
||||
declare const serviceGroupViewSchema: z.ZodObject<{
|
||||
@@ -183,11 +327,18 @@ declare const serviceGroupViewSchema: z.ZodObject<{
|
||||
zone_name: z.ZodString;
|
||||
hostname: z.ZodString;
|
||||
fqdn: z.ZodString;
|
||||
record_type: z.ZodDefault<z.ZodEnum<{
|
||||
A: "A";
|
||||
CNAME: "CNAME";
|
||||
}>>;
|
||||
target_ips: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
||||
target_ip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
||||
target_cname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
||||
sync_status: z.ZodNullable<z.ZodString>;
|
||||
}, z.core.$strip>, z.ZodTransform<{
|
||||
target_ips: string[];
|
||||
target_cname: string | null;
|
||||
record_type: "A" | "CNAME";
|
||||
binding_id: number;
|
||||
domain_id: number;
|
||||
zone_name: string;
|
||||
@@ -201,9 +352,11 @@ declare const serviceGroupViewSchema: z.ZodObject<{
|
||||
zone_name: string;
|
||||
hostname: string;
|
||||
fqdn: string;
|
||||
record_type: "A" | "CNAME";
|
||||
sync_status: string | null;
|
||||
target_ips?: string[] | undefined;
|
||||
target_ip?: string | null | undefined;
|
||||
target_cname?: string | null | undefined;
|
||||
}>>>>;
|
||||
}, z.core.$strip>>>;
|
||||
}, z.core.$strip>;
|
||||
@@ -240,11 +393,18 @@ declare const serviceGroupsResponseSchema: z.ZodObject<{
|
||||
zone_name: z.ZodString;
|
||||
hostname: z.ZodString;
|
||||
fqdn: z.ZodString;
|
||||
record_type: z.ZodDefault<z.ZodEnum<{
|
||||
A: "A";
|
||||
CNAME: "CNAME";
|
||||
}>>;
|
||||
target_ips: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
||||
target_ip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
||||
target_cname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
||||
sync_status: z.ZodNullable<z.ZodString>;
|
||||
}, z.core.$strip>, z.ZodTransform<{
|
||||
target_ips: string[];
|
||||
target_cname: string | null;
|
||||
record_type: "A" | "CNAME";
|
||||
binding_id: number;
|
||||
domain_id: number;
|
||||
zone_name: string;
|
||||
@@ -258,9 +418,11 @@ declare const serviceGroupsResponseSchema: z.ZodObject<{
|
||||
zone_name: string;
|
||||
hostname: string;
|
||||
fqdn: string;
|
||||
record_type: "A" | "CNAME";
|
||||
sync_status: string | null;
|
||||
target_ips?: string[] | undefined;
|
||||
target_ip?: string | null | undefined;
|
||||
target_cname?: string | null | undefined;
|
||||
}>>>>;
|
||||
}, z.core.$strip>>>;
|
||||
}, z.core.$strip>>>;
|
||||
@@ -281,11 +443,18 @@ declare const serviceGroupsResponseSchema: z.ZodObject<{
|
||||
zone_name: z.ZodString;
|
||||
hostname: z.ZodString;
|
||||
fqdn: z.ZodString;
|
||||
record_type: z.ZodDefault<z.ZodEnum<{
|
||||
A: "A";
|
||||
CNAME: "CNAME";
|
||||
}>>;
|
||||
target_ips: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
||||
target_ip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
||||
target_cname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
||||
sync_status: z.ZodNullable<z.ZodString>;
|
||||
}, z.core.$strip>, z.ZodTransform<{
|
||||
target_ips: string[];
|
||||
target_cname: string | null;
|
||||
record_type: "A" | "CNAME";
|
||||
binding_id: number;
|
||||
domain_id: number;
|
||||
zone_name: string;
|
||||
@@ -299,9 +468,11 @@ declare const serviceGroupsResponseSchema: z.ZodObject<{
|
||||
zone_name: string;
|
||||
hostname: string;
|
||||
fqdn: string;
|
||||
record_type: "A" | "CNAME";
|
||||
sync_status: string | null;
|
||||
target_ips?: string[] | undefined;
|
||||
target_ip?: string | null | undefined;
|
||||
target_cname?: string | null | undefined;
|
||||
}>>>>;
|
||||
}, z.core.$strip>>>;
|
||||
}, z.core.$strip>;
|
||||
@@ -311,6 +482,11 @@ declare const domainSchema: z.ZodObject<{
|
||||
zone_name: z.ZodString;
|
||||
cf_zone_id: z.ZodString;
|
||||
status: z.ZodString;
|
||||
cert_monitoring: z.ZodDefault<z.ZodEnum<{
|
||||
auto: "auto";
|
||||
required: "required";
|
||||
skipped: "skipped";
|
||||
}>>;
|
||||
last_synced_at: z.ZodNullable<z.ZodString>;
|
||||
created_at: z.ZodString;
|
||||
updated_at: z.ZodString;
|
||||
@@ -321,13 +497,18 @@ declare const domainListItemSchema: z.ZodObject<{
|
||||
zone_name: z.ZodString;
|
||||
cf_zone_id: z.ZodString;
|
||||
status: z.ZodString;
|
||||
cert_monitoring: z.ZodDefault<z.ZodEnum<{
|
||||
auto: "auto";
|
||||
required: "required";
|
||||
skipped: "skipped";
|
||||
}>>;
|
||||
last_synced_at: z.ZodNullable<z.ZodString>;
|
||||
created_at: z.ZodString;
|
||||
updated_at: z.ZodString;
|
||||
group_name: z.ZodNullable<z.ZodString>;
|
||||
service_count: z.ZodNumber;
|
||||
}, z.core.$strip>;
|
||||
declare const serviceBindingSchema: z.ZodObject<{
|
||||
declare const serviceBindingSchema: z.ZodPipe<z.ZodObject<{
|
||||
id: z.ZodNumber;
|
||||
domain_id: z.ZodNumber;
|
||||
service_id: z.ZodNumber;
|
||||
@@ -339,10 +520,43 @@ declare const serviceBindingSchema: z.ZodObject<{
|
||||
service_name: z.ZodString;
|
||||
service_slug: z.ZodString;
|
||||
target_ip: z.ZodNullable<z.ZodString>;
|
||||
target_ips: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
||||
sync_status: z.ZodNullable<z.ZodString>;
|
||||
created_at: z.ZodString;
|
||||
updated_at: z.ZodString;
|
||||
}, z.core.$strip>;
|
||||
}, z.core.$strip>, z.ZodTransform<{
|
||||
target_ips: string[];
|
||||
id: number;
|
||||
domain_id: number;
|
||||
service_id: number;
|
||||
hostname: string;
|
||||
dns_record_id: number | null;
|
||||
zone_name: string;
|
||||
group_id: number | null;
|
||||
group_name: string | null;
|
||||
service_name: string;
|
||||
service_slug: string;
|
||||
target_ip: string | null;
|
||||
sync_status: string | null;
|
||||
created_at: string;
|
||||
updated_at: string;
|
||||
}, {
|
||||
id: number;
|
||||
domain_id: number;
|
||||
service_id: number;
|
||||
hostname: string;
|
||||
dns_record_id: number | null;
|
||||
zone_name: string;
|
||||
group_id: number | null;
|
||||
group_name: string | null;
|
||||
service_name: string;
|
||||
service_slug: string;
|
||||
target_ip: string | null;
|
||||
sync_status: string | null;
|
||||
created_at: string;
|
||||
updated_at: string;
|
||||
target_ips?: string[] | undefined;
|
||||
}>>;
|
||||
declare const dnsRecordSchema: z.ZodObject<{
|
||||
id: z.ZodNumber;
|
||||
domain_id: z.ZodNumber;
|
||||
@@ -381,7 +595,6 @@ type ServiceGroupView = z.infer<typeof serviceGroupViewSchema>;
|
||||
type ServiceGroupsResponse = z.infer<typeof serviceGroupsResponseSchema>;
|
||||
type Domain = z.infer<typeof domainSchema>;
|
||||
type DomainListItem = z.infer<typeof domainListItemSchema>;
|
||||
type ServiceBinding = z.infer<typeof serviceBindingSchema>;
|
||||
type DnsRecord = z.infer<typeof dnsRecordSchema>;
|
||||
type Certificate = z.infer<typeof certificateSchema>;
|
||||
declare const createGroupSchema: z.ZodObject<{
|
||||
@@ -399,7 +612,8 @@ declare const createServiceWithConfigSchema: z.ZodObject<{
|
||||
ips: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
||||
domains: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
||||
fqdn: z.ZodString;
|
||||
target_ips: z.ZodArray<z.ZodString>;
|
||||
target_ips: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
||||
target_cname: z.ZodOptional<z.ZodString>;
|
||||
}, z.core.$strip>>>;
|
||||
}, z.core.$strip>;
|
||||
declare const createServiceBindingSchema: z.ZodObject<{
|
||||
@@ -423,8 +637,8 @@ declare const loginSchema: z.ZodObject<{
|
||||
declare const createDnsRecordSchema: z.ZodObject<{
|
||||
record_type: z.ZodEnum<{
|
||||
A: "A";
|
||||
AAAA: "AAAA";
|
||||
CNAME: "CNAME";
|
||||
AAAA: "AAAA";
|
||||
TXT: "TXT";
|
||||
MX: "MX";
|
||||
}>;
|
||||
@@ -438,10 +652,40 @@ declare const subdomainSchema: z.ZodObject<{
|
||||
domain_id: z.ZodNumber;
|
||||
name: z.ZodString;
|
||||
fqdn: z.ZodString;
|
||||
enabled: z.ZodBoolean;
|
||||
cert_monitoring: z.ZodDefault<z.ZodEnum<{
|
||||
auto: "auto";
|
||||
required: "required";
|
||||
skipped: "skipped";
|
||||
}>>;
|
||||
created_at: z.ZodString;
|
||||
updated_at: z.ZodString;
|
||||
}, z.core.$strip>;
|
||||
type SubdomainRecord = z.infer<typeof subdomainSchema>;
|
||||
declare const createSubdomainSchema: z.ZodObject<{
|
||||
name: z.ZodString;
|
||||
}, z.core.$strip>;
|
||||
declare const updateSubdomainSchema: z.ZodObject<{
|
||||
name: z.ZodOptional<z.ZodString>;
|
||||
enabled: z.ZodOptional<z.ZodBoolean>;
|
||||
cert_monitoring: z.ZodOptional<z.ZodEnum<{
|
||||
auto: "auto";
|
||||
required: "required";
|
||||
skipped: "skipped";
|
||||
}>>;
|
||||
}, z.core.$strip>;
|
||||
declare const updateDomainSchema: z.ZodObject<{
|
||||
group_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
||||
status: z.ZodOptional<z.ZodString>;
|
||||
cert_monitoring: z.ZodOptional<z.ZodEnum<{
|
||||
auto: "auto";
|
||||
required: "required";
|
||||
skipped: "skipped";
|
||||
}>>;
|
||||
}, z.core.$strip>;
|
||||
type CreateSubdomainInput = z.infer<typeof createSubdomainSchema>;
|
||||
type UpdateSubdomainInput = z.infer<typeof updateSubdomainSchema>;
|
||||
type UpdateDomainInput = z.infer<typeof updateDomainSchema>;
|
||||
type CreateGroupInput = z.infer<typeof createGroupSchema>;
|
||||
type CreateServiceInput = z.infer<typeof createServiceSchema>;
|
||||
type CreateServiceWithConfigInput = z.infer<typeof createServiceWithConfigSchema>;
|
||||
@@ -452,7 +696,8 @@ declare const updateServiceConfigSchema: z.ZodObject<{
|
||||
ips: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
||||
domains: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
||||
fqdn: z.ZodString;
|
||||
target_ips: z.ZodArray<z.ZodString>;
|
||||
target_ips: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
||||
target_cname: z.ZodOptional<z.ZodString>;
|
||||
}, z.core.$strip>>>;
|
||||
}, z.core.$strip>;
|
||||
type UpdateServiceConfigInput = z.infer<typeof updateServiceConfigSchema>;
|
||||
@@ -471,87 +716,16 @@ declare const createServiceGroupSchema: z.ZodObject<{
|
||||
declare const toggleEnabledSchema: z.ZodObject<{
|
||||
enabled: z.ZodBoolean;
|
||||
}, z.core.$strip>;
|
||||
declare const reorderServicesSchema: z.ZodObject<{
|
||||
group_id: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>>;
|
||||
service_ids: z.ZodArray<z.ZodNumber>;
|
||||
}, z.core.$strip>;
|
||||
type CreateServiceGroupInput = z.infer<typeof createServiceGroupSchema>;
|
||||
type ToggleEnabledInput = z.infer<typeof toggleEnabledSchema>;
|
||||
type ReorderServicesInput = z.infer<typeof reorderServicesSchema>;
|
||||
type CreateServiceBindingInput = z.infer<typeof createServiceBindingSchema>;
|
||||
type CreateDomainInput = z.infer<typeof createDomainSchema>;
|
||||
type LoginInput = z.infer<typeof loginSchema>;
|
||||
type CreateDnsRecordInput = z.infer<typeof createDnsRecordSchema>;
|
||||
|
||||
interface Subdomain {
|
||||
id: number;
|
||||
domain_id: number;
|
||||
name: string;
|
||||
fqdn: string;
|
||||
created_at: string;
|
||||
updated_at: string;
|
||||
}
|
||||
interface ServiceBindingView {
|
||||
id: number;
|
||||
domain_id: number;
|
||||
service_id: number;
|
||||
hostname: string;
|
||||
dns_record_id: number | null;
|
||||
zone_name: string;
|
||||
group_id: number | null;
|
||||
group_name: string | null;
|
||||
service_name: string;
|
||||
service_slug: string;
|
||||
target_ip: string | null;
|
||||
sync_status: string | null;
|
||||
created_at: string;
|
||||
updated_at: string;
|
||||
}
|
||||
interface ServiceDomainBindingView {
|
||||
binding_id: number;
|
||||
domain_id: number;
|
||||
zone_name: string;
|
||||
hostname: string;
|
||||
fqdn: string;
|
||||
target_ips: string[];
|
||||
sync_status: string | null;
|
||||
}
|
||||
interface SyncJob {
|
||||
id: string;
|
||||
status: string;
|
||||
domain_id: number | null;
|
||||
message: string | null;
|
||||
created_at: string;
|
||||
finished_at: string | null;
|
||||
}
|
||||
interface CfZone {
|
||||
id: string;
|
||||
name: string;
|
||||
status: string;
|
||||
}
|
||||
interface CfDnsRecord {
|
||||
id?: string;
|
||||
type: string;
|
||||
name: string;
|
||||
content: string;
|
||||
ttl: number;
|
||||
proxied?: boolean;
|
||||
priority?: number;
|
||||
}
|
||||
interface CreateDnsRecordPayload {
|
||||
type: string;
|
||||
name: string;
|
||||
content: string;
|
||||
ttl: number;
|
||||
proxied?: boolean;
|
||||
priority?: number;
|
||||
}
|
||||
interface LoginRequest {
|
||||
username: string;
|
||||
password: string;
|
||||
}
|
||||
interface LoginResponse {
|
||||
token: string;
|
||||
expires_at: string;
|
||||
}
|
||||
interface JwtClaims {
|
||||
sub: string;
|
||||
exp: number;
|
||||
}
|
||||
|
||||
export { CERT_ERROR, CERT_EXPIRED, CERT_OK, CERT_UNKNOWN, CERT_WARNING, type Certificate, type CfDnsRecord, type CfZone, type CreateDnsRecordInput, type CreateDnsRecordPayload, type CreateDomainInput, type CreateGroupInput, type CreateServiceBindingInput, type CreateServiceGroupInput, type CreateServiceInput, type CreateServiceWithConfigInput, type DnsRecord, type Domain, type DomainListItem, type Group, type GroupWithStats, type JwtClaims, type LoginInput, type LoginRequest, type LoginResponse, type ParsedFqdn, SYNC_CONFLICT, SYNC_ERROR, SYNC_PENDING_DELETE, SYNC_PENDING_PUSH, SYNC_SYNCED, type Service, type ServiceBinding, type ServiceBindingView, type ServiceDomainBinding, type ServiceDomainBindingView, type ServiceGroup, type ServiceGroupView, type ServiceGroupsResponse, type ServiceView, type Subdomain, type SubdomainRecord, type SyncJob, type ToggleEnabledInput, type UpdateServiceConfigInput, ValidationError, bindingToFqdn, certStatusFromExpiry, certificateSchema, createDnsRecordSchema, createDomainSchema, createGroupSchema, createServiceBindingSchema, createServiceGroupSchema, createServiceSchema, createServiceWithConfigSchema, dnsNameToSubdomainLabel, dnsRecordSchema, domainListItemSchema, domainSchema, fqdnToDisplay, groupSchema, groupWithStatsSchema, isValidIpv4, loginSchema, parseFqdn, serviceBindingSchema, serviceDomainBindingSchema, serviceGroupSchema, serviceGroupTypeSchema, serviceGroupViewSchema, serviceGroupsResponseSchema, serviceSchema, serviceViewSchema, subdomainLabelToFqdn, subdomainSchema, toggleEnabledSchema, updateDomainGroupSchema, updateServiceConfigSchema, validateDnsRecord };
|
||||
export { CERT_ERROR, CERT_EXPIRED, CERT_MONITORING_VALUES, CERT_MONITOR_AUTO, CERT_MONITOR_REQUIRED, CERT_MONITOR_SKIPPED, CERT_OK, CERT_UNKNOWN, CERT_WARNING, type CertMonitoring, type Certificate, type CfDnsRecord, type CfZone, type CreateDnsRecordInput, type CreateDnsRecordPayload, type CreateDomainInput, type CreateGroupInput, type CreateServiceBindingInput, type CreateServiceGroupInput, type CreateServiceInput, type CreateServiceWithConfigInput, type CreateSubdomainInput, type DnsRecord, type Domain, type DomainListItem, type Group, type GroupWithStats, type JwtClaims, type LoginInput, type LoginRequest, type LoginResponse, type ParsedFqdn, type ReorderServicesInput, SYNC_CONFLICT, SYNC_ERROR, SYNC_PENDING_DELETE, SYNC_PENDING_PUSH, SYNC_SYNCED, type Service, type ServiceBinding, type ServiceBindingView, type ServiceDomainBinding, type ServiceDomainBindingView, type ServiceGroup, type ServiceGroupView, type ServiceGroupsResponse, type ServiceView, type Subdomain, type SubdomainRecord, type SyncJob, type ToggleEnabledInput, type UpdateDomainInput, type UpdateServiceConfigInput, type UpdateSubdomainInput, ValidationError, bindingToFqdn, certMonitoringSchema, certStatusFromExpiry, certificateSchema, createDnsRecordSchema, createDomainSchema, createGroupSchema, createServiceBindingSchema, createServiceGroupSchema, createServiceSchema, createServiceWithConfigSchema, createSubdomainSchema, dnsNameToSubdomainLabel, dnsRecordNamesMatch, dnsRecordSchema, domainListItemSchema, domainSchema, fqdnToDisplay, groupSchema, groupWithStatsSchema, isValidIpv4, loginSchema, normalizeDnsRecordName, parseFqdn, reorderServicesSchema, serviceBindingSchema, serviceDomainBindingSchema, serviceGroupSchema, serviceGroupTypeSchema, serviceGroupViewSchema, serviceGroupsResponseSchema, serviceSchema, serviceViewSchema, shouldMonitorService, subdomainLabelToFqdn, subdomainSchema, toggleEnabledSchema, updateDomainGroupSchema, updateDomainSchema, updateServiceConfigSchema, updateSubdomainSchema, validateDnsRecord };
|
||||
|
||||
Reference in New Issue
Block a user