kyd-shared-badge 0.3.50 → 0.3.52

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": "kyd-shared-badge",
3
- "version": "0.3.50",
3
+ "version": "0.3.52",
4
4
  "private": false,
5
5
  "main": "./src/index.ts",
6
6
  "module": "./src/index.ts",
@@ -179,7 +179,7 @@ const SharedBadgeDisplay = ({ badgeData, chatProps, headless }: { badgeData: Pub
179
179
  setActiveTab(t.key);
180
180
  try { if (typeof window !== 'undefined') window.history.replaceState(null, '', `#${t.key}`); } catch {}
181
181
  }}
182
- className={`px-3 sm:px-4 py-2 text-sm rounded-t flex items-center gap-2 cursor-pointer ${activeTab === t.key ? 'font-semibold' : ''}`}
182
+ className={`px-3 text-xs sm:text-base sm:px-4 py-2 text-sm rounded-t flex items-center gap-2 cursor-pointer ${activeTab === t.key ? 'font-semibold' : ''}`}
183
183
  style={{
184
184
  color: 'var(--text-main)',
185
185
  background: activeTab === t.key ? 'var(--content-card-background)' : 'transparent',
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?: boolean;
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
- isPublic?: boolean;
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;
@@ -488,4 +466,14 @@ export interface TopBusinessRule {
488
466
  label: string;
489
467
  weight: number;
490
468
  uid: string;
491
- }
469
+ }
470
+
471
+ export type Role = {
472
+ roleId: string;
473
+ name: string;
474
+ description?: string;
475
+ organization?: string;
476
+ createdAt?: string;
477
+ userId?: string;
478
+ }
479
+