@shipstatic/types 0.5.0 → 0.5.1
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 +3 -0
- package/dist/index.js +1 -0
- package/package.json +1 -1
- package/src/index.ts +3 -0
package/dist/index.d.ts
CHANGED
|
@@ -236,6 +236,8 @@ export interface Account {
|
|
|
236
236
|
readonly created: number;
|
|
237
237
|
/** Unix timestamp (seconds) when account was activated (first deployment) */
|
|
238
238
|
readonly activated?: number;
|
|
239
|
+
/** Last 4 characters of the API key for identification (null when no key generated) */
|
|
240
|
+
readonly hint?: string;
|
|
239
241
|
}
|
|
240
242
|
/**
|
|
241
243
|
* Account-specific configuration overrides
|
|
@@ -452,6 +454,7 @@ export interface PingResponse {
|
|
|
452
454
|
export declare const API_KEY_PREFIX = "ship-";
|
|
453
455
|
export declare const API_KEY_HEX_LENGTH = 64;
|
|
454
456
|
export declare const API_KEY_TOTAL_LENGTH: number;
|
|
457
|
+
export declare const API_KEY_HINT_LENGTH = 4;
|
|
455
458
|
export declare const DEPLOY_TOKEN_PREFIX = "token-";
|
|
456
459
|
export declare const DEPLOY_TOKEN_HEX_LENGTH = 64;
|
|
457
460
|
export declare const DEPLOY_TOKEN_TOTAL_LENGTH: number;
|
package/dist/index.js
CHANGED
|
@@ -413,6 +413,7 @@ export function isAllowedMimeType(mimeType) {
|
|
|
413
413
|
export const API_KEY_PREFIX = 'ship-';
|
|
414
414
|
export const API_KEY_HEX_LENGTH = 64;
|
|
415
415
|
export const API_KEY_TOTAL_LENGTH = API_KEY_PREFIX.length + API_KEY_HEX_LENGTH; // 69
|
|
416
|
+
export const API_KEY_HINT_LENGTH = 4;
|
|
416
417
|
// Deploy Token Configuration
|
|
417
418
|
export const DEPLOY_TOKEN_PREFIX = 'token-';
|
|
418
419
|
export const DEPLOY_TOKEN_HEX_LENGTH = 64;
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -272,6 +272,8 @@ export interface Account {
|
|
|
272
272
|
readonly created: number;
|
|
273
273
|
/** Unix timestamp (seconds) when account was activated (first deployment) */
|
|
274
274
|
readonly activated?: number;
|
|
275
|
+
/** Last 4 characters of the API key for identification (null when no key generated) */
|
|
276
|
+
readonly hint?: string;
|
|
275
277
|
}
|
|
276
278
|
|
|
277
279
|
/**
|
|
@@ -777,6 +779,7 @@ export interface PingResponse {
|
|
|
777
779
|
export const API_KEY_PREFIX = 'ship-';
|
|
778
780
|
export const API_KEY_HEX_LENGTH = 64;
|
|
779
781
|
export const API_KEY_TOTAL_LENGTH = API_KEY_PREFIX.length + API_KEY_HEX_LENGTH; // 69
|
|
782
|
+
export const API_KEY_HINT_LENGTH = 4;
|
|
780
783
|
|
|
781
784
|
// Deploy Token Configuration
|
|
782
785
|
export const DEPLOY_TOKEN_PREFIX = 'token-';
|