@shipstatic/types 0.4.14 → 0.4.15
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/dist/index.d.ts +14 -5
- package/package.json +1 -1
- package/src/index.ts +15 -1
package/dist/index.d.ts
CHANGED
|
@@ -135,6 +135,19 @@ export interface DomainRecordsResponse {
|
|
|
135
135
|
/** Required DNS records for configuration */
|
|
136
136
|
records: DnsRecord[];
|
|
137
137
|
}
|
|
138
|
+
/**
|
|
139
|
+
* Response for domain validation
|
|
140
|
+
*/
|
|
141
|
+
export interface DomainValidateResponse {
|
|
142
|
+
/** Whether the domain is valid */
|
|
143
|
+
valid: boolean;
|
|
144
|
+
/** Normalized domain name (only present when valid) */
|
|
145
|
+
normalized?: string;
|
|
146
|
+
/** Whether the domain is available (only present when valid) */
|
|
147
|
+
available?: boolean;
|
|
148
|
+
/** Error message (only present when invalid) */
|
|
149
|
+
error?: string;
|
|
150
|
+
}
|
|
138
151
|
/**
|
|
139
152
|
* Response for deployment removal
|
|
140
153
|
*/
|
|
@@ -512,11 +525,7 @@ export interface DomainResource {
|
|
|
512
525
|
verify: (name: string) => Promise<{
|
|
513
526
|
message: string;
|
|
514
527
|
}>;
|
|
515
|
-
validate: (name: string) => Promise<
|
|
516
|
-
valid: boolean;
|
|
517
|
-
normalized?: string;
|
|
518
|
-
error?: string;
|
|
519
|
-
}>;
|
|
528
|
+
validate: (name: string) => Promise<DomainValidateResponse>;
|
|
520
529
|
dns: (name: string) => Promise<DomainDnsResponse>;
|
|
521
530
|
records: (name: string) => Promise<DomainRecordsResponse>;
|
|
522
531
|
share: (name: string) => Promise<{
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -156,6 +156,20 @@ export interface DomainRecordsResponse {
|
|
|
156
156
|
records: DnsRecord[];
|
|
157
157
|
}
|
|
158
158
|
|
|
159
|
+
/**
|
|
160
|
+
* Response for domain validation
|
|
161
|
+
*/
|
|
162
|
+
export interface DomainValidateResponse {
|
|
163
|
+
/** Whether the domain is valid */
|
|
164
|
+
valid: boolean;
|
|
165
|
+
/** Normalized domain name (only present when valid) */
|
|
166
|
+
normalized?: string;
|
|
167
|
+
/** Whether the domain is available (only present when valid) */
|
|
168
|
+
available?: boolean;
|
|
169
|
+
/** Error message (only present when invalid) */
|
|
170
|
+
error?: string;
|
|
171
|
+
}
|
|
172
|
+
|
|
159
173
|
/**
|
|
160
174
|
* Response for deployment removal
|
|
161
175
|
*/
|
|
@@ -764,7 +778,7 @@ export interface DomainResource {
|
|
|
764
778
|
get: (name: string) => Promise<Domain>;
|
|
765
779
|
remove: (name: string) => Promise<void>;
|
|
766
780
|
verify: (name: string) => Promise<{ message: string }>;
|
|
767
|
-
validate: (name: string) => Promise<
|
|
781
|
+
validate: (name: string) => Promise<DomainValidateResponse>;
|
|
768
782
|
dns: (name: string) => Promise<DomainDnsResponse>;
|
|
769
783
|
records: (name: string) => Promise<DomainRecordsResponse>;
|
|
770
784
|
share: (name: string) => Promise<{ domain: string; hash: string }>;
|