forked from tarampampam/domains
-
Notifications
You must be signed in to change notification settings - Fork 0
/
domains.d.ts
67 lines (53 loc) · 1.87 KB
/
domains.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/**
* DNS record configuration.
*/
interface IRecord {
/**
* Originally for arbitrary human-readable text in a DNS record. Since the early 1990s, however, this record more
* often carries machine-readable data, such as specified by RFC 1464, opportunistic encryption, Sender Policy
* Framework, DKIM, DMARC, DNS-SD, etc.
*/
TXT?: string[]
/**
* Returns a 32-bit IPv4 address, most commonly used to map hostnames to an IP address of the host, but it is also
* used for DNSBLs, storing subnet masks in RFC 1101, etc.
*/
A?: string[]
/** Returns a 128-bit IPv6 address, most commonly used to map hostnames to an IP address of the host. */
AAAA?: string[]
/** Alias of one name to another: the DNS lookup will continue by retrying the lookup with the new name. */
CNAME?: string
/** Delegates a DNS zone to use the given authoritative name servers. */
NS?: string[]
}
/**
* Subdomain configuration.
*/
interface ISubDomain {
/** Describe your project in this field. */
description: string
/** Select the required root domain. */
domain: '1bt.uk' | 'is-an.app'
/** The subdomain you want to use (e.g.: "foo" means "foo.example.com"). */
subdomain: string
/** Subdomain owner information. */
owner?: {
/** URL to the repository where project source code is located. */
repo?: string
/** Email address (for example, for sending notifications in future). */
email?: string
}
/** DNS record configuration. */
record: IRecord
/** Enable Cloudflare proxy for this subdomain or not. */
proxy?: boolean
/** Nested subdomains configuration. */
nested?: {
/** The nested subdomain name (e.g.: "bar" means "bar.foo.example.com"). */
subdomain: string
/** Nested subdomain DNS record configuration. */
record: IRecord
/** Enable Cloudflare proxy for this subdomain or not. */
proxy?: boolean
}[]
}