@shipstatic/types 0.9.11 → 1.0.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 +5 -5
- package/package.json +1 -1
- package/src/index.ts +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -38,7 +38,7 @@ export interface Deployment {
|
|
|
38
38
|
readonly created: number;
|
|
39
39
|
/** Unix timestamp (seconds) when deployment expires, null if never */
|
|
40
40
|
expires: number | null;
|
|
41
|
-
/**
|
|
41
|
+
/** Full URL to the deployment screenshot (e.g., 'https://screenshots.shipstatic.com/happy-cat-abc1234/a3f2c1b4d5e6f789') */
|
|
42
42
|
readonly screenshot: string;
|
|
43
43
|
}
|
|
44
44
|
/**
|
|
@@ -188,7 +188,7 @@ export interface Token {
|
|
|
188
188
|
readonly account: string;
|
|
189
189
|
/** SHA256 hash of the raw credential (auth lookups only, never exposed to users) */
|
|
190
190
|
readonly hash: string;
|
|
191
|
-
/** IP
|
|
191
|
+
/** IP-lock. Non-null = single-use (claimable only from this IP, once); null = multi-use. */
|
|
192
192
|
readonly ip: string | null;
|
|
193
193
|
/** Labels for categorization and filtering (lowercase, alphanumeric with separators). Always present, empty array when none. */
|
|
194
194
|
labels: string[];
|
|
@@ -196,7 +196,7 @@ export interface Token {
|
|
|
196
196
|
readonly created: number;
|
|
197
197
|
/** Unix timestamp (seconds) when token expires, null for never */
|
|
198
198
|
readonly expires: number | null;
|
|
199
|
-
/**
|
|
199
|
+
/** Consumption timestamp. Single-use: gates re-use (set once). Multi-use: refreshed on every claim. Null = never claimed. */
|
|
200
200
|
readonly used: number | null;
|
|
201
201
|
}
|
|
202
202
|
/**
|
|
@@ -212,7 +212,7 @@ export interface TokenListItem {
|
|
|
212
212
|
readonly created: number;
|
|
213
213
|
/** Unix timestamp (seconds) when token expires, null for never */
|
|
214
214
|
readonly expires: number | null;
|
|
215
|
-
/**
|
|
215
|
+
/** Consumption timestamp. Single-use: gates re-use (set once). Multi-use: refreshed on every claim. Null = never claimed. */
|
|
216
216
|
readonly used: number | null;
|
|
217
217
|
}
|
|
218
218
|
/**
|
|
@@ -651,7 +651,7 @@ export interface ResolvedConfig {
|
|
|
651
651
|
apiUrl: string;
|
|
652
652
|
/** API key for authenticated deployments. */
|
|
653
653
|
apiKey?: string;
|
|
654
|
-
/** Deploy token
|
|
654
|
+
/** Deploy token used as the request credential (`token-{64-hex}`). */
|
|
655
655
|
deployToken?: string;
|
|
656
656
|
}
|
|
657
657
|
/**
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -45,7 +45,7 @@ export interface Deployment {
|
|
|
45
45
|
readonly created: number;
|
|
46
46
|
/** Unix timestamp (seconds) when deployment expires, null if never */
|
|
47
47
|
expires: number | null; // Mutable - can be updated
|
|
48
|
-
/**
|
|
48
|
+
/** Full URL to the deployment screenshot (e.g., 'https://screenshots.shipstatic.com/happy-cat-abc1234/a3f2c1b4d5e6f789') */
|
|
49
49
|
readonly screenshot: string;
|
|
50
50
|
}
|
|
51
51
|
|
|
@@ -216,7 +216,7 @@ export interface Token {
|
|
|
216
216
|
readonly account: string;
|
|
217
217
|
/** SHA256 hash of the raw credential (auth lookups only, never exposed to users) */
|
|
218
218
|
readonly hash: string;
|
|
219
|
-
/** IP
|
|
219
|
+
/** IP-lock. Non-null = single-use (claimable only from this IP, once); null = multi-use. */
|
|
220
220
|
readonly ip: string | null;
|
|
221
221
|
/** Labels for categorization and filtering (lowercase, alphanumeric with separators). Always present, empty array when none. */
|
|
222
222
|
labels: string[];
|
|
@@ -224,7 +224,7 @@ export interface Token {
|
|
|
224
224
|
readonly created: number;
|
|
225
225
|
/** Unix timestamp (seconds) when token expires, null for never */
|
|
226
226
|
readonly expires: number | null;
|
|
227
|
-
/**
|
|
227
|
+
/** Consumption timestamp. Single-use: gates re-use (set once). Multi-use: refreshed on every claim. Null = never claimed. */
|
|
228
228
|
readonly used: number | null;
|
|
229
229
|
}
|
|
230
230
|
|
|
@@ -241,7 +241,7 @@ export interface TokenListItem {
|
|
|
241
241
|
readonly created: number;
|
|
242
242
|
/** Unix timestamp (seconds) when token expires, null for never */
|
|
243
243
|
readonly expires: number | null;
|
|
244
|
-
/**
|
|
244
|
+
/** Consumption timestamp. Single-use: gates re-use (set once). Multi-use: refreshed on every claim. Null = never claimed. */
|
|
245
245
|
readonly used: number | null;
|
|
246
246
|
}
|
|
247
247
|
|
|
@@ -1008,7 +1008,7 @@ export interface ResolvedConfig {
|
|
|
1008
1008
|
apiUrl: string;
|
|
1009
1009
|
/** API key for authenticated deployments. */
|
|
1010
1010
|
apiKey?: string;
|
|
1011
|
-
/** Deploy token
|
|
1011
|
+
/** Deploy token used as the request credential (`token-{64-hex}`). */
|
|
1012
1012
|
deployToken?: string;
|
|
1013
1013
|
}
|
|
1014
1014
|
|