@shipstatic/types 0.2.6 → 0.2.7
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 +6 -2
- package/package.json +1 -1
- package/src/index.ts +7 -3
package/dist/index.d.ts
CHANGED
|
@@ -26,6 +26,8 @@ export interface Deployment {
|
|
|
26
26
|
status: DeploymentStatusType;
|
|
27
27
|
/** Whether deployment has configuration */
|
|
28
28
|
readonly config?: boolean;
|
|
29
|
+
/** Optional array of tags for categorization and filtering (lowercase, alphanumeric with separators) */
|
|
30
|
+
tags?: string[];
|
|
29
31
|
/** The deployment URL */
|
|
30
32
|
readonly url: string;
|
|
31
33
|
/** Unix timestamp (seconds) when deployment was created */
|
|
@@ -68,6 +70,8 @@ export interface Alias {
|
|
|
68
70
|
deployment: string;
|
|
69
71
|
/** Current alias status */
|
|
70
72
|
status: AliasStatusType;
|
|
73
|
+
/** Optional array of tags for categorization and filtering (lowercase, alphanumeric with separators) */
|
|
74
|
+
tags?: string[];
|
|
71
75
|
/** The alias URL - internal (subdomain) or external (custom domain) */
|
|
72
76
|
readonly url: string;
|
|
73
77
|
/** Unix timestamp (seconds) when alias was created */
|
|
@@ -342,11 +346,11 @@ export interface DeploymentResource {
|
|
|
342
346
|
* Alias resource interface - the contract all implementations must follow
|
|
343
347
|
*/
|
|
344
348
|
export interface AliasResource {
|
|
345
|
-
set: (aliasName: string, deployment: string) => Promise<Alias>;
|
|
349
|
+
set: (aliasName: string, deployment: string, tags?: string[]) => Promise<Alias>;
|
|
346
350
|
get: (aliasName: string) => Promise<Alias>;
|
|
347
351
|
list: () => Promise<AliasListResponse>;
|
|
348
352
|
remove: (aliasName: string) => Promise<void>;
|
|
349
|
-
|
|
353
|
+
confirm: (aliasName: string) => Promise<{
|
|
350
354
|
message: string;
|
|
351
355
|
}>;
|
|
352
356
|
}
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -33,6 +33,8 @@ export interface Deployment {
|
|
|
33
33
|
status: DeploymentStatusType; // Mutable - can be updated
|
|
34
34
|
/** Whether deployment has configuration */
|
|
35
35
|
readonly config?: boolean;
|
|
36
|
+
/** Optional array of tags for categorization and filtering (lowercase, alphanumeric with separators) */
|
|
37
|
+
tags?: string[];
|
|
36
38
|
/** The deployment URL */
|
|
37
39
|
readonly url: string;
|
|
38
40
|
/** Unix timestamp (seconds) when deployment was created */
|
|
@@ -40,7 +42,7 @@ export interface Deployment {
|
|
|
40
42
|
/** Unix timestamp (seconds) when deployment expires */
|
|
41
43
|
expires?: number; // Mutable - can be updated
|
|
42
44
|
/** Unix timestamp (seconds) when deployment was verified and ready */
|
|
43
|
-
verified?: number; // Mutable - can be updated
|
|
45
|
+
verified?: number; // Mutable - can be updated
|
|
44
46
|
/** Short-lived JWT token for claiming this deployment (only present for public deployments) */
|
|
45
47
|
claimToken?: string; // Mutable - can be updated
|
|
46
48
|
}
|
|
@@ -84,6 +86,8 @@ export interface Alias {
|
|
|
84
86
|
deployment: string; // Mutable - can be updated to point to different deployment
|
|
85
87
|
/** Current alias status */
|
|
86
88
|
status: AliasStatusType; // Mutable - can be updated
|
|
89
|
+
/** Optional array of tags for categorization and filtering (lowercase, alphanumeric with separators) */
|
|
90
|
+
tags?: string[];
|
|
87
91
|
/** The alias URL - internal (subdomain) or external (custom domain) */
|
|
88
92
|
readonly url: string;
|
|
89
93
|
/** Unix timestamp (seconds) when alias was created */
|
|
@@ -588,11 +592,11 @@ export interface DeploymentResource {
|
|
|
588
592
|
* Alias resource interface - the contract all implementations must follow
|
|
589
593
|
*/
|
|
590
594
|
export interface AliasResource {
|
|
591
|
-
set: (aliasName: string, deployment: string) => Promise<Alias>;
|
|
595
|
+
set: (aliasName: string, deployment: string, tags?: string[]) => Promise<Alias>;
|
|
592
596
|
get: (aliasName: string) => Promise<Alias>;
|
|
593
597
|
list: () => Promise<AliasListResponse>;
|
|
594
598
|
remove: (aliasName: string) => Promise<void>;
|
|
595
|
-
|
|
599
|
+
confirm: (aliasName: string) => Promise<{ message: string }>;
|
|
596
600
|
}
|
|
597
601
|
|
|
598
602
|
/**
|