@casual-simulation/aux-records 4.1.3 → 4.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CachingConfigStore.d.ts +2 -1
- package/CachingConfigStore.js +48 -50
- package/CachingConfigStore.js.map +1 -1
- package/ComIdConfig.d.ts +4 -0
- package/ComIdConfig.js +2 -0
- package/ComIdConfig.js.map +1 -1
- package/ConfigurationStore.d.ts +53 -1
- package/ConfigurationStore.js +25 -0
- package/ConfigurationStore.js.map +1 -1
- package/MemoryStore.d.ts +1 -0
- package/MemoryStore.js +11 -0
- package/MemoryStore.js.map +1 -1
- package/RecordsController.d.ts +2 -2
- package/RecordsController.js +26 -4
- package/RecordsController.js.map +1 -1
- package/RecordsServer.d.ts +9 -3
- package/RecordsStore.d.ts +4 -0
- package/ServerConfig.d.ts +14 -6
- package/ServerConfig.js +5 -18
- package/ServerConfig.js.map +1 -1
- package/dns/DNSDomainNameValidator.d.ts +2 -2
- package/dns/DNSDomainNameValidator.js +24 -4
- package/dns/DNSDomainNameValidator.js.map +1 -1
- package/dns/DomainNameValidator.d.ts +8 -6
- package/package.json +2 -2
|
@@ -7,14 +7,16 @@ export interface DomainNameValidator {
|
|
|
7
7
|
* Validates the given domain name using the provided verification key.
|
|
8
8
|
* @param domainName The domain name to validate.
|
|
9
9
|
* @param verificationKey The verification key to use for validation.
|
|
10
|
+
* @param expectedHostName The expected host name that should be set in the CNAME record for validation.
|
|
10
11
|
*/
|
|
11
|
-
validateDomainName(domainName: string, verificationKey: string): Promise<Result<void, SimpleError>>;
|
|
12
|
+
validateDomainName(domainName: string, verificationKey: string, expectedHostName: string): Promise<Result<void, SimpleError>>;
|
|
12
13
|
/**
|
|
13
|
-
* Gets the DNS
|
|
14
|
-
* @param domainName The domain name to get the verification
|
|
15
|
-
* @param verificationKey The verification key to use for generating the
|
|
14
|
+
* Gets the DNS records that should be set for verifying the given domain name.
|
|
15
|
+
* @param domainName The domain name to get the verification records for.
|
|
16
|
+
* @param verificationKey The verification key to use for generating the records.
|
|
17
|
+
* @param expectedHostName The expected host name that should be set in the CNAME record for validation.
|
|
16
18
|
*/
|
|
17
|
-
getVerificationDNSRecord(domainName: string, verificationKey: string): Promise<Result<DomainNameVerificationDNSRecord, SimpleError>>;
|
|
19
|
+
getVerificationDNSRecord(domainName: string, verificationKey: string, expectedHostName: string): Promise<Result<DomainNameVerificationDNSRecord[], SimpleError>>;
|
|
18
20
|
}
|
|
19
21
|
/**
|
|
20
22
|
* Defines a DNS record that should be set for domain name verification.
|
|
@@ -23,7 +25,7 @@ export interface DomainNameVerificationDNSRecord {
|
|
|
23
25
|
/**
|
|
24
26
|
* The type of DNS record that should be set for the verification.
|
|
25
27
|
*/
|
|
26
|
-
recordType: 'TXT';
|
|
28
|
+
recordType: 'TXT' | 'CNAME';
|
|
27
29
|
/**
|
|
28
30
|
* The value that should be set for the verification record.
|
|
29
31
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@casual-simulation/aux-records",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.5",
|
|
4
4
|
"description": "Helpers and managers used by the CasualOS records system.",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "Casual Simulation, Inc.",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@anthropic-ai/sdk": "0.24.3",
|
|
34
|
-
"@casual-simulation/aux-common": "^4.1.
|
|
34
|
+
"@casual-simulation/aux-common": "^4.1.4",
|
|
35
35
|
"@casual-simulation/crypto": "^4.0.5",
|
|
36
36
|
"@casual-simulation/fast-json-stable-stringify": "^4.0.5",
|
|
37
37
|
"@casual-simulation/rate-limit-redis": "^4.0.0",
|