@shipstatic/types 2.2.1-beta.0 → 2.4.0-beta.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 +10 -0
- package/dist/index.js +13 -4
- package/package.json +1 -1
- package/src/index.ts +16 -4
package/dist/index.d.ts
CHANGED
|
@@ -258,6 +258,8 @@ export interface Account {
|
|
|
258
258
|
readonly activated: number | null;
|
|
259
259
|
/** Last 4 characters of the API key for identification, null when no key generated */
|
|
260
260
|
readonly hint: string | null;
|
|
261
|
+
/** Unix timestamp (seconds) of the API key's last use, null when never used or no key generated */
|
|
262
|
+
readonly used: number | null;
|
|
261
263
|
/** Grace period expiration (unix seconds), null if no grace period active */
|
|
262
264
|
readonly grace: number | null;
|
|
263
265
|
}
|
|
@@ -518,6 +520,14 @@ export interface PingResponse {
|
|
|
518
520
|
/** Optional timestamp */
|
|
519
521
|
timestamp?: number;
|
|
520
522
|
}
|
|
523
|
+
/**
|
|
524
|
+
* Where human identity is mounted on the API host. The API mounts Better
|
|
525
|
+
* Auth at this path (sign-in, sign-out, session reads, admin impersonation)
|
|
526
|
+
* and the web console's auth client posts to it — shared here so the two
|
|
527
|
+
* halves of the auth pair agree by construction, the same way both sides
|
|
528
|
+
* already share the credential prefixes below.
|
|
529
|
+
*/
|
|
530
|
+
export declare const AUTH_BASE_PATH = "/auth";
|
|
521
531
|
/**
|
|
522
532
|
* How a request (or recorded activity) was authorized.
|
|
523
533
|
*
|
package/dist/index.js
CHANGED
|
@@ -455,10 +455,19 @@ export function hasUnbuiltMarker(filePath) {
|
|
|
455
455
|
// =============================================================================
|
|
456
456
|
// CREDENTIAL SHAPES
|
|
457
457
|
// =============================================================================
|
|
458
|
-
// The one address for credential vocabulary:
|
|
459
|
-
// (
|
|
460
|
-
// (API_KEY, DEPLOY_TOKEN, CALLER),
|
|
461
|
-
// classifyToken), and the
|
|
458
|
+
// The one address for credential vocabulary: where human identity lives
|
|
459
|
+
// (AUTH_BASE_PATH), how a request is authorized (AuthMethod), the shapes
|
|
460
|
+
// that distinguish populations on the wire (API_KEY, DEPLOY_TOKEN, CALLER),
|
|
461
|
+
// the single dispatch over them (TokenKind, classifyToken), and the
|
|
462
|
+
// delegated-access scopes (OAuthScope).
|
|
463
|
+
/**
|
|
464
|
+
* Where human identity is mounted on the API host. The API mounts Better
|
|
465
|
+
* Auth at this path (sign-in, sign-out, session reads, admin impersonation)
|
|
466
|
+
* and the web console's auth client posts to it — shared here so the two
|
|
467
|
+
* halves of the auth pair agree by construction, the same way both sides
|
|
468
|
+
* already share the credential prefixes below.
|
|
469
|
+
*/
|
|
470
|
+
export const AUTH_BASE_PATH = '/auth';
|
|
462
471
|
/**
|
|
463
472
|
* How a request (or recorded activity) was authorized.
|
|
464
473
|
*
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -295,6 +295,8 @@ export interface Account {
|
|
|
295
295
|
readonly activated: number | null;
|
|
296
296
|
/** Last 4 characters of the API key for identification, null when no key generated */
|
|
297
297
|
readonly hint: string | null;
|
|
298
|
+
/** Unix timestamp (seconds) of the API key's last use, null when never used or no key generated */
|
|
299
|
+
readonly used: number | null;
|
|
298
300
|
/** Grace period expiration (unix seconds), null if no grace period active */
|
|
299
301
|
readonly grace: number | null;
|
|
300
302
|
}
|
|
@@ -834,10 +836,20 @@ export interface PingResponse {
|
|
|
834
836
|
// =============================================================================
|
|
835
837
|
// CREDENTIAL SHAPES
|
|
836
838
|
// =============================================================================
|
|
837
|
-
// The one address for credential vocabulary:
|
|
838
|
-
// (
|
|
839
|
-
// (API_KEY, DEPLOY_TOKEN, CALLER),
|
|
840
|
-
// classifyToken), and the
|
|
839
|
+
// The one address for credential vocabulary: where human identity lives
|
|
840
|
+
// (AUTH_BASE_PATH), how a request is authorized (AuthMethod), the shapes
|
|
841
|
+
// that distinguish populations on the wire (API_KEY, DEPLOY_TOKEN, CALLER),
|
|
842
|
+
// the single dispatch over them (TokenKind, classifyToken), and the
|
|
843
|
+
// delegated-access scopes (OAuthScope).
|
|
844
|
+
|
|
845
|
+
/**
|
|
846
|
+
* Where human identity is mounted on the API host. The API mounts Better
|
|
847
|
+
* Auth at this path (sign-in, sign-out, session reads, admin impersonation)
|
|
848
|
+
* and the web console's auth client posts to it — shared here so the two
|
|
849
|
+
* halves of the auth pair agree by construction, the same way both sides
|
|
850
|
+
* already share the credential prefixes below.
|
|
851
|
+
*/
|
|
852
|
+
export const AUTH_BASE_PATH = '/auth';
|
|
841
853
|
|
|
842
854
|
/**
|
|
843
855
|
* How a request (or recorded activity) was authorized.
|