@shipstatic/types 2.2.1-beta.0 → 2.3.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 CHANGED
@@ -518,6 +518,14 @@ export interface PingResponse {
518
518
  /** Optional timestamp */
519
519
  timestamp?: number;
520
520
  }
521
+ /**
522
+ * Where human identity is mounted on the API host. The API mounts Better
523
+ * Auth at this path (sign-in, sign-out, session reads, admin impersonation)
524
+ * and the web console's auth client posts to it — shared here so the two
525
+ * halves of the auth pair agree by construction, the same way both sides
526
+ * already share the credential prefixes below.
527
+ */
528
+ export declare const AUTH_BASE_PATH = "/auth";
521
529
  /**
522
530
  * How a request (or recorded activity) was authorized.
523
531
  *
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: how a request is authorized
459
- // (AuthMethod), the shapes that distinguish populations on the wire
460
- // (API_KEY, DEPLOY_TOKEN, CALLER), the single dispatch over them (TokenKind,
461
- // classifyToken), and the delegated-access scopes (OAuthScope).
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipstatic/types",
3
- "version": "2.2.1-beta.0",
3
+ "version": "2.3.0-beta.0",
4
4
  "description": "Shared types for ShipStatic platform",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
package/src/index.ts CHANGED
@@ -834,10 +834,20 @@ export interface PingResponse {
834
834
  // =============================================================================
835
835
  // CREDENTIAL SHAPES
836
836
  // =============================================================================
837
- // The one address for credential vocabulary: how a request is authorized
838
- // (AuthMethod), the shapes that distinguish populations on the wire
839
- // (API_KEY, DEPLOY_TOKEN, CALLER), the single dispatch over them (TokenKind,
840
- // classifyToken), and the delegated-access scopes (OAuthScope).
837
+ // The one address for credential vocabulary: where human identity lives
838
+ // (AUTH_BASE_PATH), how a request is authorized (AuthMethod), the shapes
839
+ // that distinguish populations on the wire (API_KEY, DEPLOY_TOKEN, CALLER),
840
+ // the single dispatch over them (TokenKind, classifyToken), and the
841
+ // delegated-access scopes (OAuthScope).
842
+
843
+ /**
844
+ * Where human identity is mounted on the API host. The API mounts Better
845
+ * Auth at this path (sign-in, sign-out, session reads, admin impersonation)
846
+ * and the web console's auth client posts to it — shared here so the two
847
+ * halves of the auth pair agree by construction, the same way both sides
848
+ * already share the credential prefixes below.
849
+ */
850
+ export const AUTH_BASE_PATH = '/auth';
841
851
 
842
852
  /**
843
853
  * How a request (or recorded activity) was authorized.