@learncard/partner-connect 0.4.4 → 0.5.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
@@ -468,15 +468,13 @@ interface LearnerContextRawData {
468
468
  /** Personal data if requested and available (name, bio, etc.) */
469
469
  personalData?: Record<string, unknown>;
470
470
  }
471
- type LearnerContextCacheStatus = 'browser-hit' | 'browser-miss' | 'backend-hit' | 'backend-miss' | 'structured';
471
+ type LearnerContextCacheStatus = 'backend-hit' | 'backend-miss' | 'structured';
472
472
  interface LearnerContextTimingBreakdown {
473
473
  totalMs: number;
474
474
  sdkRoundTripMs?: number;
475
475
  appEventMs?: number;
476
476
  credentialReadMs?: number;
477
477
  promptizerMs?: number;
478
- cacheLookupMs?: number;
479
- prewarmAgeMs?: number;
480
478
  }
481
479
  /**
482
480
  * Response from REQUEST_LEARNER_CONTEXT action
@@ -494,8 +492,10 @@ interface LearnerContextResponse {
494
492
  did: string;
495
493
  /** User's display name if available */
496
494
  displayName?: string;
497
- /** Optional metadata for cache and timing diagnostics */
495
+ /** Server authorization, server-cache, and request timing metadata. Prompts are not cached in the browser. */
498
496
  metadata?: {
497
+ /** Current AI consent revision for a formatted prompt; absent for structured-only responses. */
498
+ consentRevision?: string;
499
499
  cacheStatus?: LearnerContextCacheStatus;
500
500
  timings?: LearnerContextTimingBreakdown;
501
501
  backendMetadata?: Record<string, unknown>;