@shipstatic/types 0.2.5 → 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 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 */
@@ -53,7 +55,8 @@ export interface DeploymentListResponse {
53
55
  */
54
56
  export declare const AliasStatus: {
55
57
  readonly PENDING: "pending";
56
- readonly SUCCESS: "success";
58
+ readonly PARTIAL: "partial";
59
+ readonly CONFIRMED: "confirmed";
57
60
  readonly FAILED: "failed";
58
61
  };
59
62
  export type AliasStatusType = typeof AliasStatus[keyof typeof AliasStatus];
@@ -67,6 +70,8 @@ export interface Alias {
67
70
  deployment: string;
68
71
  /** Current alias status */
69
72
  status: AliasStatusType;
73
+ /** Optional array of tags for categorization and filtering (lowercase, alphanumeric with separators) */
74
+ tags?: string[];
70
75
  /** The alias URL - internal (subdomain) or external (custom domain) */
71
76
  readonly url: string;
72
77
  /** Unix timestamp (seconds) when alias was created */
@@ -341,11 +346,11 @@ export interface DeploymentResource {
341
346
  * Alias resource interface - the contract all implementations must follow
342
347
  */
343
348
  export interface AliasResource {
344
- set: (aliasName: string, deployment: string) => Promise<Alias>;
349
+ set: (aliasName: string, deployment: string, tags?: string[]) => Promise<Alias>;
345
350
  get: (aliasName: string) => Promise<Alias>;
346
351
  list: () => Promise<AliasListResponse>;
347
352
  remove: (aliasName: string) => Promise<void>;
348
- check: (aliasName: string) => Promise<{
353
+ confirm: (aliasName: string) => Promise<{
349
354
  message: string;
350
355
  }>;
351
356
  }
package/dist/index.js CHANGED
@@ -22,7 +22,8 @@ export const DeploymentStatus = {
22
22
  */
23
23
  export const AliasStatus = {
24
24
  PENDING: 'pending',
25
- SUCCESS: 'success',
25
+ PARTIAL: 'partial',
26
+ CONFIRMED: 'confirmed',
26
27
  FAILED: 'failed'
27
28
  };
28
29
  // =============================================================================
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipstatic/types",
3
- "version": "0.2.5",
3
+ "version": "0.2.7",
4
4
  "description": "Shared types for Shipstatic platform",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
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
  }
@@ -67,7 +69,8 @@ export interface DeploymentListResponse {
67
69
  */
68
70
  export const AliasStatus = {
69
71
  PENDING: 'pending',
70
- SUCCESS: 'success',
72
+ PARTIAL: 'partial',
73
+ CONFIRMED: 'confirmed',
71
74
  FAILED: 'failed'
72
75
  } as const;
73
76
 
@@ -83,6 +86,8 @@ export interface Alias {
83
86
  deployment: string; // Mutable - can be updated to point to different deployment
84
87
  /** Current alias status */
85
88
  status: AliasStatusType; // Mutable - can be updated
89
+ /** Optional array of tags for categorization and filtering (lowercase, alphanumeric with separators) */
90
+ tags?: string[];
86
91
  /** The alias URL - internal (subdomain) or external (custom domain) */
87
92
  readonly url: string;
88
93
  /** Unix timestamp (seconds) when alias was created */
@@ -587,11 +592,11 @@ export interface DeploymentResource {
587
592
  * Alias resource interface - the contract all implementations must follow
588
593
  */
589
594
  export interface AliasResource {
590
- set: (aliasName: string, deployment: string) => Promise<Alias>;
595
+ set: (aliasName: string, deployment: string, tags?: string[]) => Promise<Alias>;
591
596
  get: (aliasName: string) => Promise<Alias>;
592
597
  list: () => Promise<AliasListResponse>;
593
598
  remove: (aliasName: string) => Promise<void>;
594
- check: (aliasName: string) => Promise<{ message: string }>;
599
+ confirm: (aliasName: string) => Promise<{ message: string }>;
595
600
  }
596
601
 
597
602
  /**