@iblai/data-layer 1.41.0 → 1.42.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iblai/data-layer",
3
- "version": "1.40.0",
3
+ "version": "1.41.0",
4
4
  "description": "ibl.ai data layer",
5
5
  "main": "dist/index.esm.js",
6
6
  "types": "dist/index.d.ts",
@@ -25,12 +25,21 @@ export type PrivacyEntityType = (typeof PRIVACY_ENTITY_TYPES)[number];
25
25
  export declare const SUGGESTED_PRIVACY_ENTITIES: readonly PrivacyEntityType[];
26
26
  export declare const DEFAULT_PRIVACY_RESPONSE = "Your message contains sensitive personal information and cannot be processed. Please remove any personal data and try again.";
27
27
  export declare const DEFAULT_PRIVACY_ACTION: PrivacyAction;
28
+ export declare const PHI_ENTITY_TYPES: readonly ["DISEASE_DISORDER", "MEDICATION", "THERAPEUTIC_PROCEDURE", "BIOLOGICAL_STRUCTURE", "CLINICAL_EVENT", "BIOLOGICAL_ATTRIBUTE", "HISTORY", "FAMILY_HISTORY", "MEDICAL_RECORD_NUMBER", "HEALTH_PLAN_BENEFICIARY_NUMBER", "ACCOUNT_NUMBER", "DEVICE_SERIAL_NUMBER"];
29
+ export type PhiEntityType = (typeof PHI_ENTITY_TYPES)[number];
30
+ export declare const DEFAULT_PHI_ACTION: PrivacyAction;
28
31
  export interface MentorPrivacySettings {
29
32
  enable_privacy_router: boolean;
30
33
  privacy_action: PrivacyAction;
31
34
  privacy_entities: PrivacyEntityType[];
32
35
  privacy_response: string;
33
36
  enable_privacy_output_filter: boolean;
37
+ filter_pii: boolean;
38
+ filter_phi: boolean;
39
+ phi_action: PrivacyAction;
40
+ /** Empty = every supported PHI entity. */
41
+ phi_entities: PhiEntityType[];
42
+ phi_response: string;
34
43
  }
35
44
  export type MentorPrivacySettingsUpdate = Partial<MentorPrivacySettings>;
36
45
  /** Subset of mentor public-settings that exposes the privacy toggle anonymously. */