@shipstatic/types 0.4.14 → 0.4.16

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 CHANGED
@@ -52,11 +52,17 @@ export interface DeploymentListResponse {
52
52
  }
53
53
  /**
54
54
  * Domain status constants
55
+ *
56
+ * - PENDING: DNS not configured
57
+ * - PARTIAL: DNS partially configured
58
+ * - SUCCESS: DNS fully verified
59
+ * - PAUSED: Domain paused due to plan enforcement (billing)
55
60
  */
56
61
  export declare const DomainStatus: {
57
62
  readonly PENDING: "pending";
58
63
  readonly PARTIAL: "partial";
59
64
  readonly SUCCESS: "success";
65
+ readonly PAUSED: "paused";
60
66
  };
61
67
  export type DomainStatusType = typeof DomainStatus[keyof typeof DomainStatus];
62
68
  /**
@@ -135,6 +141,19 @@ export interface DomainRecordsResponse {
135
141
  /** Required DNS records for configuration */
136
142
  records: DnsRecord[];
137
143
  }
144
+ /**
145
+ * Response for domain validation
146
+ */
147
+ export interface DomainValidateResponse {
148
+ /** Whether the domain is valid */
149
+ valid: boolean;
150
+ /** Normalized domain name (only present when valid) */
151
+ normalized?: string;
152
+ /** Whether the domain is available (only present when valid) */
153
+ available?: boolean;
154
+ /** Error message (only present when invalid) */
155
+ error?: string;
156
+ }
138
157
  /**
139
158
  * Response for deployment removal
140
159
  */
@@ -512,11 +531,7 @@ export interface DomainResource {
512
531
  verify: (name: string) => Promise<{
513
532
  message: string;
514
533
  }>;
515
- validate: (name: string) => Promise<{
516
- valid: boolean;
517
- normalized?: string;
518
- error?: string;
519
- }>;
534
+ validate: (name: string) => Promise<DomainValidateResponse>;
520
535
  dns: (name: string) => Promise<DomainDnsResponse>;
521
536
  records: (name: string) => Promise<DomainRecordsResponse>;
522
537
  share: (name: string) => Promise<{
package/dist/index.js CHANGED
@@ -19,11 +19,17 @@ export const DeploymentStatus = {
19
19
  // =============================================================================
20
20
  /**
21
21
  * Domain status constants
22
+ *
23
+ * - PENDING: DNS not configured
24
+ * - PARTIAL: DNS partially configured
25
+ * - SUCCESS: DNS fully verified
26
+ * - PAUSED: Domain paused due to plan enforcement (billing)
22
27
  */
23
28
  export const DomainStatus = {
24
29
  PENDING: 'pending',
25
30
  PARTIAL: 'partial',
26
- SUCCESS: 'success'
31
+ SUCCESS: 'success',
32
+ PAUSED: 'paused'
27
33
  };
28
34
  // =============================================================================
29
35
  // ACCOUNT TYPES
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipstatic/types",
3
- "version": "0.4.14",
3
+ "version": "0.4.16",
4
4
  "description": "Shared types for Shipstatic platform",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
package/src/index.ts CHANGED
@@ -66,11 +66,17 @@ export interface DeploymentListResponse {
66
66
 
67
67
  /**
68
68
  * Domain status constants
69
+ *
70
+ * - PENDING: DNS not configured
71
+ * - PARTIAL: DNS partially configured
72
+ * - SUCCESS: DNS fully verified
73
+ * - PAUSED: Domain paused due to plan enforcement (billing)
69
74
  */
70
75
  export const DomainStatus = {
71
76
  PENDING: 'pending',
72
77
  PARTIAL: 'partial',
73
- SUCCESS: 'success'
78
+ SUCCESS: 'success',
79
+ PAUSED: 'paused'
74
80
  } as const;
75
81
 
76
82
  export type DomainStatusType = typeof DomainStatus[keyof typeof DomainStatus];
@@ -156,6 +162,20 @@ export interface DomainRecordsResponse {
156
162
  records: DnsRecord[];
157
163
  }
158
164
 
165
+ /**
166
+ * Response for domain validation
167
+ */
168
+ export interface DomainValidateResponse {
169
+ /** Whether the domain is valid */
170
+ valid: boolean;
171
+ /** Normalized domain name (only present when valid) */
172
+ normalized?: string;
173
+ /** Whether the domain is available (only present when valid) */
174
+ available?: boolean;
175
+ /** Error message (only present when invalid) */
176
+ error?: string;
177
+ }
178
+
159
179
  /**
160
180
  * Response for deployment removal
161
181
  */
@@ -764,7 +784,7 @@ export interface DomainResource {
764
784
  get: (name: string) => Promise<Domain>;
765
785
  remove: (name: string) => Promise<void>;
766
786
  verify: (name: string) => Promise<{ message: string }>;
767
- validate: (name: string) => Promise<{ valid: boolean; normalized?: string; error?: string }>;
787
+ validate: (name: string) => Promise<DomainValidateResponse>;
768
788
  dns: (name: string) => Promise<DomainDnsResponse>;
769
789
  records: (name: string) => Promise<DomainRecordsResponse>;
770
790
  share: (name: string) => Promise<{ domain: string; hash: string }>;