kyd-shared-badge 0.3.50 → 0.3.51
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 +1 -1
- package/src/types.ts +5 -27
package/package.json
CHANGED
package/src/types.ts
CHANGED
|
@@ -11,16 +11,8 @@ export type Provider = {
|
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
13
|
|
|
14
|
-
export type AssessmentSummary = {
|
|
15
|
-
badgeId: string;
|
|
16
|
-
status: string;
|
|
17
|
-
createdAt: string;
|
|
18
|
-
updatedAt: string;
|
|
19
|
-
assessmentError?: string;
|
|
20
|
-
kyd_self_check_score?: number;
|
|
21
|
-
};
|
|
22
|
-
|
|
23
14
|
export interface PublicBadgeData {
|
|
15
|
+
status: string;
|
|
24
16
|
badgeId: string;
|
|
25
17
|
developerName?: string;
|
|
26
18
|
assessmentResult: AssessmentResult;
|
|
@@ -33,34 +25,26 @@ export interface PublicBadgeData {
|
|
|
33
25
|
observedAt?: string;
|
|
34
26
|
}[];
|
|
35
27
|
optOutScreening?: boolean;
|
|
36
|
-
isPublic
|
|
28
|
+
isPublic: boolean;
|
|
37
29
|
companyName?: string;
|
|
30
|
+
providersToReconnect?: string[];
|
|
38
31
|
}
|
|
39
32
|
|
|
40
|
-
export type VerifiedBadge = {
|
|
41
|
-
badgeName: string;
|
|
42
|
-
issuedOn: string;
|
|
43
|
-
issuerName: string;
|
|
44
|
-
recipientName: string;
|
|
45
|
-
url: string;
|
|
46
|
-
};
|
|
47
|
-
|
|
48
33
|
export type User = {
|
|
49
34
|
userId: string;
|
|
50
35
|
name: string;
|
|
51
36
|
email: string;
|
|
52
37
|
fullName:string;
|
|
53
38
|
profilePictureUrl?: string;
|
|
54
|
-
verifiedBadges: VerifiedBadge[];
|
|
55
39
|
assessmentStatus: 'idle' | 'in-progress' | 'completed' | 'failed' | 'pending_payment';
|
|
56
40
|
assessmentResult?: AssessmentResult;
|
|
57
41
|
assessmentError?: string;
|
|
58
42
|
assessmentUpdatedAt?: string;
|
|
59
43
|
latestBadgeId?: string;
|
|
60
44
|
latestBadgeImageUrl?: string;
|
|
61
|
-
|
|
62
|
-
assessments: AssessmentSummary[];
|
|
45
|
+
assessments: PublicBadgeData[];
|
|
63
46
|
connectedAccounts?: { name: string; url: string | null; handle: string | null; observedAt?: string }[];
|
|
47
|
+
userPendingRetryBadgeId?: string;
|
|
64
48
|
};
|
|
65
49
|
|
|
66
50
|
export interface SummaryScore {
|
|
@@ -216,12 +200,6 @@ export interface AssessmentResult {
|
|
|
216
200
|
findings_by_repo?: Record<string, Array<{ file_path?: string; snippet?: string; reason?: string }>>;
|
|
217
201
|
};
|
|
218
202
|
key_skills?: string[];
|
|
219
|
-
summary_scores?: {
|
|
220
|
-
developer_trust?: SummaryScore;
|
|
221
|
-
risk_score?: SummaryScore;
|
|
222
|
-
kyd_self_check?: SummaryScore;
|
|
223
|
-
ai_usage?: SummaryScore;
|
|
224
|
-
};
|
|
225
203
|
// Deprecated: previously per-provider narrative and datapoints
|
|
226
204
|
provider_insights?: {
|
|
227
205
|
[provider: string]: ProviderInsight;
|