@shipstatic/types 0.2.6 → 0.2.8

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 */
@@ -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,13 +346,25 @@ 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
- check: (aliasName: string) => Promise<{
353
+ confirm: (aliasName: string) => Promise<{
350
354
  message: string;
351
355
  }>;
356
+ dns: (aliasName: string) => Promise<{
357
+ alias: string;
358
+ dns: any;
359
+ }>;
360
+ records: (aliasName: string) => Promise<{
361
+ alias: string;
362
+ records: any[];
363
+ }>;
364
+ share: (aliasName: string) => Promise<{
365
+ alias: string;
366
+ hash: string;
367
+ }>;
352
368
  }
353
369
  /**
354
370
  * Account resource interface - the contract all implementations must follow
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipstatic/types",
3
- "version": "0.2.6",
3
+ "version": "0.2.8",
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
  }
@@ -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,14 @@ 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
- check: (aliasName: string) => Promise<{ message: string }>;
599
+ confirm: (aliasName: string) => Promise<{ message: string }>;
600
+ dns: (aliasName: string) => Promise<{ alias: string; dns: any }>;
601
+ records: (aliasName: string) => Promise<{ alias: string; records: any[] }>;
602
+ share: (aliasName: string) => Promise<{ alias: string; hash: string }>;
596
603
  }
597
604
 
598
605
  /**