@shipstatic/types 0.8.0 → 0.8.2

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
@@ -35,6 +35,14 @@ export interface Deployment {
35
35
  /** Unix timestamp (seconds) when deployment expires, null if never */
36
36
  expires: number | null;
37
37
  }
38
+ /**
39
+ * Response from deployment creation. Extends Deployment with one-time fields
40
+ * only present on creation (not on subsequent GET requests).
41
+ */
42
+ export interface DeploymentCreateResponse extends Deployment {
43
+ /** Claim token for public deployments. Present when deployed without credentials. */
44
+ readonly claim?: string;
45
+ }
38
46
  /**
39
47
  * Response for listing deployments
40
48
  */
@@ -564,8 +572,6 @@ export type DeployInput = File[] | string | string[];
564
572
  export interface DeploymentUploadOptions {
565
573
  /** Optional labels for categorization and filtering */
566
574
  labels?: string[];
567
- /** Optional subdomain suggestion for the deployment */
568
- subdomain?: string;
569
575
  /** Client identifier (e.g., 'cli', 'sdk', 'web') */
570
576
  via?: string;
571
577
  /** @internal Trigger server-side build. Only available via /upload endpoint. */
@@ -577,7 +583,7 @@ export interface DeploymentUploadOptions {
577
583
  * Deployment resource interface - the contract all implementations must follow
578
584
  */
579
585
  export interface DeploymentResource {
580
- upload: (input: DeployInput, options?: DeploymentUploadOptions) => Promise<Deployment>;
586
+ upload: (input: DeployInput, options?: DeploymentUploadOptions) => Promise<DeploymentCreateResponse>;
581
587
  list: () => Promise<DeploymentListResponse>;
582
588
  get: (id: string) => Promise<Deployment>;
583
589
  set: (id: string, options: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipstatic/types",
3
- "version": "0.8.0",
3
+ "version": "0.8.2",
4
4
  "description": "Shared types for ShipStatic platform",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
package/src/index.ts CHANGED
@@ -44,6 +44,15 @@ export interface Deployment {
44
44
  }
45
45
 
46
46
 
47
+ /**
48
+ * Response from deployment creation. Extends Deployment with one-time fields
49
+ * only present on creation (not on subsequent GET requests).
50
+ */
51
+ export interface DeploymentCreateResponse extends Deployment {
52
+ /** Claim token for public deployments. Present when deployed without credentials. */
53
+ readonly claim?: string;
54
+ }
55
+
47
56
  /**
48
57
  * Response for listing deployments
49
58
  */
@@ -870,8 +879,6 @@ export type DeployInput = File[] | string | string[];
870
879
  export interface DeploymentUploadOptions {
871
880
  /** Optional labels for categorization and filtering */
872
881
  labels?: string[];
873
- /** Optional subdomain suggestion for the deployment */
874
- subdomain?: string;
875
882
  /** Client identifier (e.g., 'cli', 'sdk', 'web') */
876
883
  via?: string;
877
884
  /** @internal Trigger server-side build. Only available via /upload endpoint. */
@@ -884,7 +891,7 @@ export interface DeploymentUploadOptions {
884
891
  * Deployment resource interface - the contract all implementations must follow
885
892
  */
886
893
  export interface DeploymentResource {
887
- upload: (input: DeployInput, options?: DeploymentUploadOptions) => Promise<Deployment>;
894
+ upload: (input: DeployInput, options?: DeploymentUploadOptions) => Promise<DeploymentCreateResponse>;
888
895
  list: () => Promise<DeploymentListResponse>;
889
896
  get: (id: string) => Promise<Deployment>;
890
897
  set: (id: string, options: { labels: string[] }) => Promise<Deployment>;