@shipstatic/types 0.3.19 → 0.3.21

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
@@ -36,8 +36,8 @@ export interface Deployment {
36
36
  readonly created: number;
37
37
  /** Unix timestamp (seconds) when deployment expires */
38
38
  expires?: number;
39
- /** Unix timestamp (seconds) when deployment was verified and ready */
40
- verified?: number;
39
+ /** Unix timestamp (seconds) when deployment was reviewed (content moderation) */
40
+ reviewed?: number;
41
41
  /** Short-lived JWT token for claiming this deployment (only present for public deployments) */
42
42
  claimToken?: string;
43
43
  }
@@ -81,6 +81,8 @@ export interface Domain {
81
81
  readonly isCreate?: boolean;
82
82
  /** Unix timestamp (seconds) when domain was verified */
83
83
  verified?: number;
84
+ /** Unix timestamp (seconds) when deployment binding last changed */
85
+ bound?: number;
84
86
  }
85
87
  /**
86
88
  * Response for listing domains
@@ -476,6 +478,7 @@ export interface DeploymentResource {
476
478
  */
477
479
  export interface DomainResource {
478
480
  set: (domainName: string, deployment?: string, tags?: string[]) => Promise<Domain>;
481
+ update: (domainName: string, tags: string[]) => Promise<Domain>;
479
482
  get: (domainName: string) => Promise<Domain>;
480
483
  list: () => Promise<DomainListResponse>;
481
484
  remove: (domainName: string) => Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipstatic/types",
3
- "version": "0.3.19",
3
+ "version": "0.3.21",
4
4
  "description": "Shared types for Shipstatic platform",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
package/src/index.ts CHANGED
@@ -43,8 +43,8 @@ export interface Deployment {
43
43
  readonly created: number;
44
44
  /** Unix timestamp (seconds) when deployment expires */
45
45
  expires?: number; // Mutable - can be updated
46
- /** Unix timestamp (seconds) when deployment was verified and ready */
47
- verified?: number; // Mutable - can be updated
46
+ /** Unix timestamp (seconds) when deployment was reviewed (content moderation) */
47
+ reviewed?: number; // Mutable - can be updated
48
48
  /** Short-lived JWT token for claiming this deployment (only present for public deployments) */
49
49
  claimToken?: string; // Mutable - can be updated
50
50
  }
@@ -97,6 +97,8 @@ export interface Domain {
97
97
  readonly isCreate?: boolean;
98
98
  /** Unix timestamp (seconds) when domain was verified */
99
99
  verified?: number; // Mutable - can be updated
100
+ /** Unix timestamp (seconds) when deployment binding last changed */
101
+ bound?: number;
100
102
  }
101
103
 
102
104
  /**
@@ -729,6 +731,7 @@ export interface DeploymentResource {
729
731
  */
730
732
  export interface DomainResource {
731
733
  set: (domainName: string, deployment?: string, tags?: string[]) => Promise<Domain>;
734
+ update: (domainName: string, tags: string[]) => Promise<Domain>;
732
735
  get: (domainName: string) => Promise<Domain>;
733
736
  list: () => Promise<DomainListResponse>;
734
737
  remove: (domainName: string) => Promise<void>;