@learncard/partner-connect 0.4.5 → 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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@learncard/partner-connect",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/learningeconomy/LearnCard"
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"license": "MIT",
|
|
44
44
|
"author": "Learning Economy Foundation (www.learningeconomy.io)",
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@learncard/types": "5.
|
|
46
|
+
"@learncard/types": "5.20.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@rollup/plugin-commonjs": "^22.0.2",
|
package/src/types.ts
CHANGED
|
@@ -423,8 +423,7 @@ export interface CheckCredentialResponse {
|
|
|
423
423
|
* The recipient can be either a DID (did:web:...) or a profileId.
|
|
424
424
|
*/
|
|
425
425
|
export type CheckIssuanceStatusInput =
|
|
426
|
-
| {
|
|
427
|
-
| { boostUri: string; recipient: string };
|
|
426
|
+
{ templateAlias: string; recipient: string } | { boostUri: string; recipient: string };
|
|
428
427
|
|
|
429
428
|
/**
|
|
430
429
|
* Response from getTemplateIssuanceStatus
|
|
@@ -520,12 +519,7 @@ export interface LearnerContextRawData {
|
|
|
520
519
|
personalData?: Record<string, unknown>;
|
|
521
520
|
}
|
|
522
521
|
|
|
523
|
-
export type LearnerContextCacheStatus =
|
|
524
|
-
| 'browser-hit'
|
|
525
|
-
| 'browser-miss'
|
|
526
|
-
| 'backend-hit'
|
|
527
|
-
| 'backend-miss'
|
|
528
|
-
| 'structured';
|
|
522
|
+
export type LearnerContextCacheStatus = 'backend-hit' | 'backend-miss' | 'structured';
|
|
529
523
|
|
|
530
524
|
export interface LearnerContextTimingBreakdown {
|
|
531
525
|
totalMs: number;
|
|
@@ -533,8 +527,6 @@ export interface LearnerContextTimingBreakdown {
|
|
|
533
527
|
appEventMs?: number;
|
|
534
528
|
credentialReadMs?: number;
|
|
535
529
|
promptizerMs?: number;
|
|
536
|
-
cacheLookupMs?: number;
|
|
537
|
-
prewarmAgeMs?: number;
|
|
538
530
|
}
|
|
539
531
|
|
|
540
532
|
/**
|
|
@@ -559,8 +551,10 @@ export interface LearnerContextResponse {
|
|
|
559
551
|
/** User's display name if available */
|
|
560
552
|
displayName?: string;
|
|
561
553
|
|
|
562
|
-
/**
|
|
554
|
+
/** Server authorization, server-cache, and request timing metadata. Prompts are not cached in the browser. */
|
|
563
555
|
metadata?: {
|
|
556
|
+
/** Current AI consent revision for a formatted prompt; absent for structured-only responses. */
|
|
557
|
+
consentRevision?: string;
|
|
564
558
|
cacheStatus?: LearnerContextCacheStatus;
|
|
565
559
|
timings?: LearnerContextTimingBreakdown;
|
|
566
560
|
backendMetadata?: Record<string, unknown>;
|