@shipstatic/types 2.5.0-beta.18 → 2.5.0-beta.19

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
@@ -1094,6 +1094,21 @@ export interface StaticFile {
1094
1094
  }
1095
1095
  /** Default API URL if not otherwise configured. */
1096
1096
  export declare const DEFAULT_API = "https://api.shipstatic.com";
1097
+ /**
1098
+ * How long an anonymous deployment lives before it expires.
1099
+ *
1100
+ * The lifetime of the public tier, and one fact with several readers. The API
1101
+ * stamps a deployment's `expires` from it and gives a claim code exactly the
1102
+ * same window — a live site with a dead claim link is a coherence bug, so the
1103
+ * two are one constant rather than two that agree. Both MCP transports quote
1104
+ * the duration in prose an agent reads, and derive it from here rather than
1105
+ * writing it out, which they did in eight places until this export existed.
1106
+ *
1107
+ * Seconds, spelled in the name: this platform has both second- and
1108
+ * millisecond-valued durations, and the pair is only safe when each says which
1109
+ * it is.
1110
+ */
1111
+ export declare const PUBLIC_DEPLOYMENT_TTL_SECONDS: number;
1097
1112
  /**
1098
1113
  * Universal deploy input — the union of every shape the SDK accepts.
1099
1114
  *
@@ -1145,8 +1160,8 @@ export interface DeploymentUploadOptions {
1145
1160
  *
1146
1161
  * **Agents are the audience.** A human notices a duplicate; an automated
1147
1162
  * retry does not. Pick a key that identifies the ATTEMPT — a run id, a
1148
- * commit sha, a uuid minted before the first try — never one that varies
1149
- * per attempt, which would defeat the point.
1163
+ * commit sha, a uuid minted before the first try — never one minted fresh
1164
+ * on each retry, which would defeat the point.
1150
1165
  *
1151
1166
  * The replay is per-caller, and it stores successes only: a failed deploy
1152
1167
  * retries fresh under the same key.
package/dist/index.js CHANGED
@@ -1039,6 +1039,21 @@ export function isDeployment(input) {
1039
1039
  // =============================================================================
1040
1040
  /** Default API URL if not otherwise configured. */
1041
1041
  export const DEFAULT_API = 'https://api.shipstatic.com';
1042
+ /**
1043
+ * How long an anonymous deployment lives before it expires.
1044
+ *
1045
+ * The lifetime of the public tier, and one fact with several readers. The API
1046
+ * stamps a deployment's `expires` from it and gives a claim code exactly the
1047
+ * same window — a live site with a dead claim link is a coherence bug, so the
1048
+ * two are one constant rather than two that agree. Both MCP transports quote
1049
+ * the duration in prose an agent reads, and derive it from here rather than
1050
+ * writing it out, which they did in eight places until this export existed.
1051
+ *
1052
+ * Seconds, spelled in the name: this platform has both second- and
1053
+ * millisecond-valued durations, and the pair is only safe when each says which
1054
+ * it is.
1055
+ */
1056
+ export const PUBLIC_DEPLOYMENT_TTL_SECONDS = 3 * 24 * 60 * 60;
1042
1057
  // =============================================================================
1043
1058
  // FILE UPLOAD TYPES
1044
1059
  // =============================================================================
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipstatic/types",
3
- "version": "2.5.0-beta.18",
3
+ "version": "2.5.0-beta.19",
4
4
  "description": "Shared types for ShipStatic platform",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
package/src/index.ts CHANGED
@@ -1772,6 +1772,22 @@ export interface StaticFile {
1772
1772
  /** Default API URL if not otherwise configured. */
1773
1773
  export const DEFAULT_API = 'https://api.shipstatic.com';
1774
1774
 
1775
+ /**
1776
+ * How long an anonymous deployment lives before it expires.
1777
+ *
1778
+ * The lifetime of the public tier, and one fact with several readers. The API
1779
+ * stamps a deployment's `expires` from it and gives a claim code exactly the
1780
+ * same window — a live site with a dead claim link is a coherence bug, so the
1781
+ * two are one constant rather than two that agree. Both MCP transports quote
1782
+ * the duration in prose an agent reads, and derive it from here rather than
1783
+ * writing it out, which they did in eight places until this export existed.
1784
+ *
1785
+ * Seconds, spelled in the name: this platform has both second- and
1786
+ * millisecond-valued durations, and the pair is only safe when each says which
1787
+ * it is.
1788
+ */
1789
+ export const PUBLIC_DEPLOYMENT_TTL_SECONDS = 3 * 24 * 60 * 60;
1790
+
1775
1791
  // =============================================================================
1776
1792
  // RESOURCE INTERFACE CONTRACTS
1777
1793
  // =============================================================================
@@ -1828,8 +1844,8 @@ export interface DeploymentUploadOptions {
1828
1844
  *
1829
1845
  * **Agents are the audience.** A human notices a duplicate; an automated
1830
1846
  * retry does not. Pick a key that identifies the ATTEMPT — a run id, a
1831
- * commit sha, a uuid minted before the first try — never one that varies
1832
- * per attempt, which would defeat the point.
1847
+ * commit sha, a uuid minted before the first try — never one minted fresh
1848
+ * on each retry, which would defeat the point.
1833
1849
  *
1834
1850
  * The replay is per-caller, and it stores successes only: a failed deploy
1835
1851
  * retries fresh under the same key.