@shipstatic/types 0.6.1 → 0.7.0

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
@@ -252,6 +252,8 @@ export interface Account {
252
252
  readonly activated: number | null;
253
253
  /** Last 4 characters of the API key for identification, null when no key generated */
254
254
  readonly hint: string | null;
255
+ /** Grace period expiration (unix seconds), null if no grace period active */
256
+ readonly grace: number | null;
255
257
  }
256
258
  /**
257
259
  * Account-specific configuration overrides
@@ -527,7 +529,7 @@ export type DeployInput = File[] | string | string[];
527
529
  * Options for deployment creation at the API contract level.
528
530
  * SDK implementations may extend with additional options (timeout, signal, callbacks, etc.).
529
531
  */
530
- export interface DeploymentCreateOptions {
532
+ export interface DeploymentUploadOptions {
531
533
  /** Optional labels for categorization and filtering */
532
534
  labels?: string[];
533
535
  /** Optional subdomain suggestion for the deployment */
@@ -539,7 +541,7 @@ export interface DeploymentCreateOptions {
539
541
  * Deployment resource interface - the contract all implementations must follow
540
542
  */
541
543
  export interface DeploymentResource {
542
- create: (input: DeployInput, options?: DeploymentCreateOptions) => Promise<Deployment>;
544
+ upload: (input: DeployInput, options?: DeploymentUploadOptions) => Promise<Deployment>;
543
545
  list: () => Promise<DeploymentListResponse>;
544
546
  get: (id: string) => Promise<Deployment>;
545
547
  set: (id: string, options: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipstatic/types",
3
- "version": "0.6.1",
3
+ "version": "0.7.0",
4
4
  "description": "Shared types for Shipstatic platform",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
package/src/index.ts CHANGED
@@ -289,6 +289,8 @@ export interface Account {
289
289
  readonly activated: number | null;
290
290
  /** Last 4 characters of the API key for identification, null when no key generated */
291
291
  readonly hint: string | null;
292
+ /** Grace period expiration (unix seconds), null if no grace period active */
293
+ readonly grace: number | null;
292
294
  }
293
295
 
294
296
  /**
@@ -813,7 +815,7 @@ export type DeployInput = File[] | string | string[];
813
815
  * Options for deployment creation at the API contract level.
814
816
  * SDK implementations may extend with additional options (timeout, signal, callbacks, etc.).
815
817
  */
816
- export interface DeploymentCreateOptions {
818
+ export interface DeploymentUploadOptions {
817
819
  /** Optional labels for categorization and filtering */
818
820
  labels?: string[];
819
821
  /** Optional subdomain suggestion for the deployment */
@@ -826,7 +828,7 @@ export interface DeploymentCreateOptions {
826
828
  * Deployment resource interface - the contract all implementations must follow
827
829
  */
828
830
  export interface DeploymentResource {
829
- create: (input: DeployInput, options?: DeploymentCreateOptions) => Promise<Deployment>;
831
+ upload: (input: DeployInput, options?: DeploymentUploadOptions) => Promise<Deployment>;
830
832
  list: () => Promise<DeploymentListResponse>;
831
833
  get: (id: string) => Promise<Deployment>;
832
834
  set: (id: string, options: { labels: string[] }) => Promise<Deployment>;