@shipstatic/types 0.8.3 → 0.8.5

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
@@ -457,6 +457,13 @@ export declare const AuthMethod: {
457
457
  };
458
458
  export type AuthMethodType = typeof AuthMethod[keyof typeof AuthMethod];
459
459
  export declare const DEPLOYMENT_CONFIG_FILENAME = "ship.json";
460
+ /** Default ship.json config for SPA routing. Single source of truth — used by both API and SDK. */
461
+ export declare const SPA_DEFAULT_CONFIG: {
462
+ readonly rewrites: readonly [{
463
+ readonly source: "/(.*)";
464
+ readonly destination: "/index.html";
465
+ }];
466
+ };
460
467
  /**
461
468
  * Validate API key format
462
469
  */
@@ -582,6 +589,8 @@ export interface DeploymentUploadOptions {
582
589
  build?: boolean;
583
590
  /** @internal Trigger server-side prerender. Only available via /upload endpoint. */
584
591
  prerender?: boolean;
592
+ /** @internal Trigger server-side SPA detection. Only available via /upload endpoint. */
593
+ spa?: boolean;
585
594
  }
586
595
  /**
587
596
  * Deployment resource interface - the contract all implementations must follow
package/dist/index.js CHANGED
@@ -318,6 +318,8 @@ export const AuthMethod = {
318
318
  };
319
319
  // Deployment Configuration
320
320
  export const DEPLOYMENT_CONFIG_FILENAME = 'ship.json';
321
+ /** Default ship.json config for SPA routing. Single source of truth — used by both API and SDK. */
322
+ export const SPA_DEFAULT_CONFIG = { rewrites: [{ source: '/(.*)', destination: '/index.html' }] };
321
323
  // =============================================================================
322
324
  // VALIDATION UTILITIES
323
325
  // =============================================================================
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipstatic/types",
3
- "version": "0.8.3",
3
+ "version": "0.8.5",
4
4
  "description": "Shared types for ShipStatic platform",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
package/src/index.ts CHANGED
@@ -675,6 +675,9 @@ export type AuthMethodType = typeof AuthMethod[keyof typeof AuthMethod];
675
675
  // Deployment Configuration
676
676
  export const DEPLOYMENT_CONFIG_FILENAME = 'ship.json';
677
677
 
678
+ /** Default ship.json config for SPA routing. Single source of truth — used by both API and SDK. */
679
+ export const SPA_DEFAULT_CONFIG = { rewrites: [{ source: '/(.*)', destination: '/index.html' }] } as const;
680
+
678
681
  // =============================================================================
679
682
  // VALIDATION UTILITIES
680
683
  // =============================================================================
@@ -889,6 +892,8 @@ export interface DeploymentUploadOptions {
889
892
  build?: boolean;
890
893
  /** @internal Trigger server-side prerender. Only available via /upload endpoint. */
891
894
  prerender?: boolean;
895
+ /** @internal Trigger server-side SPA detection. Only available via /upload endpoint. */
896
+ spa?: boolean;
892
897
  }
893
898
 
894
899
  /**